Michael wants a program that calculates and displays the percentage of the total points he contributed to

Question:

Michael wants a program that calculates and displays the percentage of the total points he contributed to his basketball team’s final score. Michael will provide the number of twopoint baskets, the number of three-point baskets, and the number of free throw points his team made. He will also provide the number of two-point baskets, number of threepoint baskets, and number of free throw points he made. First, create an IPO chart for this problem, and then desk-check the algorithm twice. For the first desk-check, use 25, 14, 10, 11, 4, and 3. The first three values represent the team’s two-point baskets, threepoint baskets, and free throw points. The last three values represent Michael’s two-point baskets, three-point baskets, and free throw points. For the second desk-check, use your own set of data. When recording the percentage in the desk-check table, you can round it to one decimal place—for example, 36.3. After desk-checking the algorithm, list the input, processing, and output items in a chart similar to the one shown in Figure 3-25, and then enter the appropriate C++ declaration statements.


IPO chart information C++ instructions Input Latex price Mylar price Latex purchased Mylar purchased sales tax rate (6%) Processing total Latex cost total Mylar cost subtotal sales tax Output total cost Figure 3-25

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: