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. 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 QuincyStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started