Question: 5 . Write a C + + program that does the following: a . Create a C + + file with the name problem 5

5.Write a C++ program that does the following:
a.Create a C++ file with the name problem5.cpp.
b.Prompt the user for the number of 3-pointers scored in the basketball game.
c.Prompt the user for the number of 2-pointers scored in the basketball game.
d.Compute and print the total score for the basketball game.
Sample run of the program:
How many 3-pointers? 10
How many 2-pointers? 7
Total points scored: 44

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 Programming Questions!