11.9k views
3 votes
Develop a complete solution (PAC, Interactivity chart, IPO chart and algorithm) and a data dictionary (do not do the flowchart) for three of the following problems: 1. The Last Stop Boutique is having a five-day sale. Each day, starting on Monday, the price will drop 10% of the previous day’s price. For example, if the original price of a product is 18.00 (10% less than the original price). On Tuesday the sale price would be 14.58; on Thursday the sale price would be 11.81. The solution should 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. Develop a solution that will calculate the average temperature, given a set of temperatures. The number of temperatures may differ from time to time. (Use a trip value to stop the processing of the loop.) Test the solution with the following 10 temperatures: 78° 90° 85° 80° 87° 83° 75° 90° 86° 70° 3. Write a solution to find the average miles per gallon on a car after six fillups at a gas station. Additional data kept included the number of gallons of gas at each fillup, the starting odometer reading, and the odometer reading at each fillup. 4. A student wants to know his grade point average for the semester. The grades are given in letter grades with numeric equivalents. Develop a solution to calculate a grade point average given the letter grades. (Remember, the grade point average is figured per unit of credit, not per course.) An A = 4.0, B = 3.0, C = 2.0, D = 1.0, F = 0.0. Test the solution with the following data: History B 3 units Economics A 3 units PE A 1 unit Chemistry C 4 units Art B 3 units (Hint: Use a trip value to stop the processing of the loop.)

User Idrougge
by
7.2k points

1 Answer

6 votes

Final answer:

The solutions include calculating daily prices of an item on sale, determining the average temperature from a set of temperatures, and computing a student's GPA based on letter grades and credit units.

Step-by-step explanation:

Calculate Prices at The Last Stop Boutique Sale

To calculate the price of an item for each of the five days given the original price, we can set up a straightforward mathematical formula where each day's price is 90% (100% - 10%) of the previous day's. For a starting price of $10.00, the calculation would be as follows:

  • Day 1 (Monday): $10.00
  • Day 2 (Tuesday): $10.00 * 0.90 = $9.00
  • Day 3 (Wednesday): $9.00 * 0.90 = $8.10
  • Day 4 (Thursday): $8.10 * 0.90 = $7.29
  • Day 5 (Friday): $7.29 * 0.90 = $6.56

Each day's price rounds to three digits as directed.

Calculate the Average Temperature

For the average temperature, we collect the set of temperatures and then apply the following formula for the average:

Average = (Sum of the temperatures) / (Total number of temperatures)

Using the given data set: (78 + 90 + 85 + 80 + 87 + 83 + 75 + 90 + 86 + 70) / 10 = 82.4°F

Calculate a Student's Grade Point Average (GPA)

To calculate the grade point average (GPA), we multiply each letter grade by its unit credit and then divide by the total units. The provided data gives us:

  • History B (3 units): 3.0 * 3 = 9.0
  • Economics A (3 units): 4.0 * 3 = 12.0
  • PE A (1 unit): 4.0 * 1 = 4.0
  • Chemistry C (4 units): 2.0 * 4 = 8.0
  • Art B (3 units): 3.0 * 3 = 9.0

Total units = 14, Total grade points = 42.0, GPA = 42.0 / 14 = 3.0

User Nick Larsen
by
8.6k points