I recently had an extra credit problem for my c++ class. Although no one got it and its too late to hand it in, I would like to know how this program could be coded. Here it is:<br>
Have a user input the number of points they scored, then tell them how they could have scored those points. <br>
(using cout<<"How many points: ";<br>
cin>>score;<br>
<br>
Example:<br>
Enter the amount of points: 5<br>
You could have made a 3 point and a 2 point shot<br>
Or you could have made a 3 point shot and two free throws<br>
Or a two point shot and 3 free throws<br>
Or you could have made 5 free throws.<br>
There are three possible combinations<br>
:::::::::::::::::::::::::::::::::::::::::::::::::<br>
Please help if you can<br>
thanks
Have a user input the number of points they scored, then tell them how they could have scored those points. <br>
(using cout<<"How many points: ";<br>
cin>>score;<br>
<br>
Example:<br>
Enter the amount of points: 5<br>
You could have made a 3 point and a 2 point shot<br>
Or you could have made a 3 point shot and two free throws<br>
Or a two point shot and 3 free throws<br>
Or you could have made 5 free throws.<br>
There are three possible combinations<br>
:::::::::::::::::::::::::::::::::::::::::::::::::<br>
Please help if you can<br>
thanks