Question
The process of finding the largest and lowest value (i.e., the maximum or minimum of a group of values) is used frequently in computer applications.
The process of finding the largest and lowest value (i.e., the maximum or minimum of a group of values) is used frequently in computer applications. Use a do..while loop to write a java application that inputs a series of 10 integers then determines the number of negative and positive values. Your program should also determine and print the lowest and highest values among the set of inputs. Your program should use at least the following variables: A) counter: a counter to count to 10 (i.e., to keep track of how many numbers have been input and to determine when all 10 numbers have been processed). B) positive: keep track of the number of positive values. C) negative: keep track of the number of negative values. D) number: stores the input value E) highest: determines the highest value so far F) lowest: determine the lowest value so far
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started