Question: Write a program using a do-while loop. During execution of the loop, ask the user for decimal values from -100.0 - 100.0 and determine the

Write a program using a do-while loop. During execution of the loop, ask the user for decimal values from -100.0 - 100.0 and determine the largest and smallest of those numbers. Any numbers outside of the range should be ignored. The loop should exit once the user enters a value of -19.5.1 After the loop exits, provide descriptive text to indicate both the smallest and largest values entered up to one decimal place. The sentinel value should not be included in any calculations.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!