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
N76 [4]
2 years ago
14

Create a flowchart that will accept 10 whole numbers one at a time and print the highest and the lowest. Use Switch.

Computers and Technology
1 answer:
frutty [35]2 years ago
3 0

I will create a sequence of steps that would accept 10 whole numbers one at a time and print the highest and the lowest in Java:

Import javax.swing.JOptionPane;

public class loop_exer2 {

public static void main(String agrs[])

{ String input; int trial=10, sc=0, h=0, l=0, test=0;

System.out.print("Scores: ");

for (int ctr=1;ctr<=10;ctr ) {

input=JOptionPane.showInputDialog("Enter the Scores [" trial "] trials "); sc=Integer.valueOf(input); System.out.print(sc ", ");

if(test==0){h=sc;l=sc;test=1;}

if(sc>h){h=sc;}

else if(sc>h){

h=sc; {

else if(sc<1) {

l=sc;

}

JOptionPane.showMessageDialog (null, "Highest score is:" h "Lowest score is:" l);
System.out.println();

System.out.println ("Highest score is: " h);

System.out.println ( "Lowest score is: "l);

}

}

<h3>What is a Flowchart?</h3>

This refers to a diagram which is used to represent the various steps which a system uses to create a step by step solution.

From the above code, there is the command to accept whole numbers in String and then request for them one at a time and after the computation, display the highest and lowest numbers.

Read more about flowcharts here:
brainly.com/question/6532130

You might be interested in
What type of file is MyFile.dll?
vampirchik [111]

Answer:

The answer to this question is given below in the explanation section

Explanation:

A DLL  (Dynamic Link Library ) file is a compiled library that contains a set of procedures and/or drivers that are referenced and executed by a Windows program. It allows multiple programs to access shared functions through common libraries. DLL file has .dll extension at the end of file name.

When a program is launched, links to the necessary .dll files are created. If a static link is created, the .dll files will be in use as long as the program is active. If a dynamic link is created, the .dll files will only be used when needed. Dynamic links help programs use resources, such as memory and hard drive space, more efficiently. These files can be used in more than one program and in multiple programs at the same time. Some .dll files come with windows operating system while others are added as a new program is installed on system.

7 0
3 years ago
Read 2 more answers
You play guitar and keep two files on your computer. One file, called strings, lists the different brands of strings you keep on
Hoochie [10]

Answer is given below

Explanation:

  • when performing in computer and we have two files on the computer first one is string and another one is the music list                
  • so when we enter the command paste strings music than there will they display side by side on the screen.
  • and on the left side of lists the string in screen and the right side is columns list the music book              
7 0
3 years ago
What is a blog that is set up for advertising purposes and used to send website links and other spam? A. splog B. adlog C. qlog
Alex_Xolod [135]

A. Splog. also known as "spam blog"

3 0
3 years ago
Read 2 more answers
Alison is having a hard time at work because her Inbox is flooded with emails every day. Some of these emails are unsolicited. S
rosijanka [135]

Answer:

<u><em>(1) Spam, (2) Trash.</em></u>

Explanation:

"<u><em>Emails are unsolicited-" is another word for spam</em></u> lol. <u><em>And then "Others she doesn’t need." is, again, another word for trash</em></u>. I mean if you don't need it is trash then.

WELP I hope I helped you even tho this is late. Ahem, well. <u><em>Stay awesome!</em></u>

8 0
3 years ago
Explain how science and technology might have worked together to lead to the invention of the refrigerator
s2008m [1.1K]
Technology in a refrigerator is it needs electricity and science is i dont know
5 0
4 years ago
Other questions:
  • Use a web browser to find three examples of static webpages and three examples of dynamic webpages, and note the URLs for each p
    11·1 answer
  • Most GUIs provide all of the following except _____.
    7·1 answer
  • 5. How can a budget prepare you to become financially secure?
    10·2 answers
  • What can emulate a fully configured PC or server?
    15·1 answer
  • A 6.7 kg object moves with a velocity of 8 m/s. What's its kinetic energy?
    6·2 answers
  • You are the systems administrator for a scientific research company that employs over 100 scientists who write and run Linux pro
    13·1 answer
  • Write a program that computes the sum of the first tenpositive integers, 1 + 2 + ..+ 10.
    12·1 answer
  • What Is one reason that more personal computers have windows operating systems as opposed to Mac operating systems
    7·2 answers
  • Is there anything I can do to fix my laptop? It is a chrome book and my school provided it. Everything is still working.If anyon
    14·2 answers
  • Hyperlinks are a part of an HTML element called a(n) _____.
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!