Question: develop a computer program in C for a football game score. Asking the user to input any score from 0-99 and the program outputs all

 develop a computer program in C for a football game score.

develop a computer program in C for a football game score. Asking the user to input any score from 0-99 and the program outputs all possible scenarios. This is a sample program output for all possible scenarios for a score of 13. This is the sample output of a computer program in C, that I must create a new computer program in C to output the same results by asking the user to input any number from 0-99. Depending on the number the computer program in C will determine how many scenarios are possible with that particular score. The score is determined by a touchdown=6, point after touchdown=1, two-point conversion=2, safety=2, fieldgoal=3. The program combines any of these point to in order to meet the user's input score. The sample is of the user's input of 13 total points.

Please input a score 0-99 for a team in a football game: 13 score I Number of scenarios Number of Searches 10290 13 For a score of 13, 10290 searches are used to find 7 different scenarios: case I Touchdown I PAT | 2-pt Conversion II Field Goal | safety II score 13 13 13 13 13 1 13 13 Press Enter to return to Quincy

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