subject

Marty stepp (on 2016/09/08) write a sentinel loop that repeatedly prompts the user to enter a number and, once the number -1 is typed, displays the maximum and minimum numbers that the user entered. here is a sample dialogue: type a number (or -1 to stop): 5
type a number (or -1 to stop): 2
type a number (or -1 to stop): 17
type a number (or -1 to stop): 8
type a number (or -1 to stop): -1
maximum was 17
minimum was 2

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 05:00
Write a loop that reads positive integers from standard input and that terminates when it reads an integer that is not positive. after the loop terminates, it prints out, on a line by itself and separated by spaces, the sum of all the even integers read, the sum of all the odd integers read, a count of the number of even integers read, and a count of the number of odd integers read, all separated by at least one space. declare any variables that are needed. assume the availability of a variable, stdin, that references a scanner object associated with standard input. that is, stdin = new scanner(system.in); is given.
Answers: 3
question
Computers and Technology, 22.06.2019 21:10
Dameas communication challenge is due to which factor
Answers: 2
question
Computers and Technology, 23.06.2019 19:30
What are loans to a company or government for a set amount of time
Answers: 1
question
Computers and Technology, 23.06.2019 21:40
Draw the resistor’s voltage and current phasors at t=15ms. draw the vectors with their tails at the origin. the orientation of your vectors will be graded. the exact length of your vectors will not be graded.
Answers: 2
You know the right answer?
Marty stepp (on 2016/09/08) write a sentinel loop that repeatedly prompts the user to enter a number...
Questions
question
History, 07.11.2020 01:40
question
Physics, 07.11.2020 01:40
question
History, 07.11.2020 01:40
question
History, 07.11.2020 01:40
question
Mathematics, 07.11.2020 01:40
Questions on the website: 13722359