1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Goryan [66]
3 years ago
14

. Each ____ on a menu performs a specific action.

Computers and Technology
1 answer:
Fofino [41]3 years ago
4 0
The answer would be d, none kf the above.
You might be interested in
Using a text editor, create a file that contains a list of at least 15 six-digit account numbers. Read in each account number an
grigory [225]

Answer:

Explanation:

The following code is written in Java. It reads every input and checks to see if it is valid. If it is it writes it to the output file.

import java.io.File;

import java.io.FileNotFoundException;

import java.io.FileWriter;

import java.io.IOException;

import java.util.Scanner;

class Brainly {

           public static void main(String[] args) {

               try {

                   File myObj = new File("C:/Users/Gabriel2/AppData/Roaming/JetBrains/IdeaIC2020.2/scratches/input.txt");

                   Scanner myReader = new Scanner(myObj);

                   FileWriter myWriter = new FileWriter("C:/Users/Gabriel2/AppData/Roaming/JetBrains/IdeaIC2020.2/scratches/output.txt");

                   while (myReader.hasNextLine()) {

                       String data = myReader.nextLine();

                       int sum = 0;

                       for (int x = 0; x < 5; x++ ) {

                           sum += data.charAt(x);

                       }

                       int remainder = (sum % 10);

                       System.out.println(remainder);

                       System.out.println(data.charAt(5));

                       if (remainder == Integer.parseInt(String.valueOf(data.charAt(5)))) {

                           System.out.println("entered");

                           try {

                               myWriter.write(data + "\n");

                               System.out.println("Successfully wrote to the file.");

                           } catch (IOException e) {

                               System.out.println("An error occurred.");

                               e.printStackTrace();

                           }

                       }

                       sum = 0;

                   }

                   myWriter.close();

                   myReader.close();

               } catch (FileNotFoundException e) {

                   System.out.println("An error occurred.");

                   e.printStackTrace();

               } catch (IOException e) {

                   e.printStackTrace();

               }

           }

       }

3 0
3 years ago
Suppose that a list contains integers that are in order of largest to smallest and an integer can appear repeatedly in this list
salantis [7]

Answer:

(a) The algorithm is as follows:

count = 0

for i = 1 to n:

  if x = xi:

       count++

print(count)

(b) n comparisons

Explanation:

Solving (a):

Assume the integer to locate is x and the elements of the list are: x_1, x_2, x_3, x_4..... x_n

Such that: x_1 \ge x_2 \ge x_3 ...... \ge x_n

The algorithm is as follows:

<em>count = 0</em>

<em>for i = 1 to n:</em>

<em>   if x = xi:</em>

<em>        count++</em>

<em>print(count)</em>

<em />

The above iterates through the count of the list (i.e. n) and makes comparison with each element of the list (i.e. element 1 to element n).

When a match is found, the count variable is incremented by 1 and printed at the end of the loop

Furthermore:

If there are 3 elements in the list, the algorithm makes 3 comparisons.

It makes 10 comparisons if there are 10 elements in the list.

<em>So: it makes n elements if there are n elements in the list</em>

6 0
3 years ago
Justify the following statement: “Some Americans’ sedentary lifestyles contribute to their poor health.”
lidiya [134]
It is essential that people are active in their lives to fulfill that basic biological need. This will allow blood flow to increase, which is beneficial for health. In addition, it can release healthy chemicals into the brain, which is beneficial for mood, energy, and well-being.
5 0
3 years ago
Read 2 more answers
What happens when you press the Enter key at the end of a line of bulleted text?
sladkih [1.3K]

i think the  answer is d

6 0
4 years ago
Read 2 more answers
Why does messenger keep saying waiting for network
nalin [4]

you prob need to fix your data or redownload it again

4 0
3 years ago
Other questions:
  • To employ an access key, press and hold down the ____ key as you tap the access key.
    14·1 answer
  • Digital Subscriber Line (DSL) is a way for traditional telephone companies to provide Internet access a way for traditional cabl
    10·2 answers
  • What is a credit card reader usually paired up with in order to take a credit card transaction?
    11·1 answer
  • Which is a correct way to test whether two variables representing numbers, numOne and numTwo, are equal?
    8·1 answer
  • What are some examples for Environmental Technology? Also some negative and positive effects?
    5·1 answer
  • What type of media is a hard disk​
    9·1 answer
  • What charts the cost to the company of the unavailability of information and technology and the cost to the company of recoverin
    15·1 answer
  • can you follow my ikok? its that_enby_skye and my youube Cactus Face with 241 subscribe er s &amp; my twith Mx_Skye
    10·2 answers
  • NFPA 780, Standard for the Installation of Lightning Protection Systems provides information on the installation of _____ for li
    6·1 answer
  • What is the duty of WHH? (white hat hackers)<br><br><br>ANY WHH HERE?<br>​
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!