Mr nields has given a test to his class he would like to


Iterative problems

1. The Main Street Boutique is having a five-day sale. Each day, starting on Monday, the price will drop 10% off the previous day's price. For example, if the original price of a product is $20.00, the sale price on Monday would be $18.00 (10% less than original price). On Tuesday the price would be $16.20 (10% less than Monday). On Wednesday the price would be $14.58; on Thursday the sale price would be $13.12 and on Friday the sale price would be 11>81. Develop a solution that will calculate the price of an item for each of the five days, given the original price. Test the solution for an item costing $10.00.

2. Make changes in the solution to problem 1 to set the price at wholesale when the price drops below the wholesale price. Test the solution with the following prices:

Retail Prices:        $20.00, $25.00

Wholesale Prices  $10.00, $20.00

3. Develop a solution that will calculate the average temperature, given a set of temperatures. The number of temperatures may vary from time to time. (Use a trip value (counter) to stop the processing of the loop.) Test the solution with the following 10 temperatures

78, 90, 85, 80, 87, 83, 75, 90, 86 and 70

4. Mr. Nields has given a test to his class. He would like to have the average score for the class as well as the highest and lowest scores. Develop a solution to calculate and display these values. (Use a counter to stop the processing of the loop.)

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Mr nields has given a test to his class he would like to
Reference No:- TGS02729926

Now Priced at $20 (50% Discount)

Recommended (94%)

Rated (4.6/5)