Lab Exercise – Max Number Draw a flowchart and write the corresponding C++ program that that will…
Lab Exercise – Max Number Draw a flowchart and write the corresponding C++ program that that will read a sequence of positive integer numbers (1 to 999) from the user. After reading in the numbers, the program will output the largest of those numbers. This program will use a negative number as the last input from the user as a way to stop the user input loop. This sentinel value will not be part of the data processed. If the user inputs are 23, 65, 47, 15, and -999, then the output should be 65. The-999 is the sentinel value that indicates the end of the data has been reached. Test the program a number of times with a different sequence of data and a different number of input numbers. Three test runs to be turn in (in this order) should be made as follows: a. the largest value as the first item input (use any 5 different numbers) b. the largest value included between the first and last data items (use any 8 different numbers) c. the largest value as the last data item input before the sentinel value (use any 4 different numbers) You will need an integer variable to store the maximum number and the program must initialize it.
Any citation style (APA, MLA, Chicago/Turabian, Harvard)
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.