Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In C++ 2. Write a program that allows the user to enter a series of positive numbers between 1 and 100 and displays the smallest
In C++
2. Write a program that allows the user to enter a series of positive numbers between 1 and 100 and displays the smallest and largest of the numbers entered. The program should not store the numbers that were entered, only keep track of the smallest and largest ones. The program should continue accepting numbers until the value 0 is entered and then display the results. If a number out of range is entered, tell the user it is out of range and ignore it. This program should use a do while loop. Problem 2: Find Highest and Lowest Numbers in a Set Does the program compile and run without warnings or errors? Does it work correctly for the following sequences of entries? 1, 25, 75, 100: Highest 100 and Lowest 1 Does the program allow the user to enter an arbitrary number of values? Does the program terminate when a zero is entered? Does the program produce an error message for negative numbers? Does the program produce an error message for numbers 101 or higherStep 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