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.
Step by Step Answer:
Microsoft Visual C# An Introduction to Object-Oriented Programming
ISBN: 978-1337102100
7th edition
Authors: Joyce Farrell