Question: 18. Write a program that reads the prices of a shops products continuously until the user enters -1. The program should display the lowest price,

18. Write a program that reads the prices of a shops products continuously until the user enters -1. The program should display the lowest price, the highest, and the average of those prices within [5, 30], before it terminates. Assume that the highest price is $100.

Using C please answer the above question. Commenting your code is always appreciated!

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!