Answered step by step
Verified Expert Solution
Question
1 Approved Answer
python!!! In this program, you will use what you know about if-statements and whether a football team should pass, run, or punt. Objectives This lab
python!!!
In this program, you will use what you know about if-statements and whether a football team should pass, run, or punt. Objectives This lab will give you practice using: - branching logic with if-statements Description In American football, when a team gets possession of the ball, they have 4 tries, called downs to move the ball to a line across the field 10 yards from where they start. If they make it to that spot, it is called a First Down because they now have an additional 4 tries to gain an additional 10 yards. If they fail to make it to that line in 4 tries, they give up possession of the ball to the other team. They can move the ball by passing it, by running with it, of-by punting it. If they punt, they automatically give up possession to-the other tearn, so that is a last resort when they are on the 4 th down. Passing plays often result in more yards gained than running plays. This program will decide which of the three types of play to recommend, given the down and yards-to-90, according to the following (simplified) rules: - Always pass on first down - Always punt on fourth down - on second or third down, pass if the remaining yards are 5 or more, run if the remaining yards are less than 5 The program will run only once, and take as input what down it is, and how many yards to go Your input prompts must be exactly as shown below, or you will not pass the test cases. You should run it several times with multiple different inputs to make sure it works for all possible inputs Same of the test cases may be "hidden", meaning that you da not know what the input will be. The program will nun only once, and take as input what down it is, and how many yards to go. Your input prompts must be exactly as shown below, or you will not pass the test cases. You should run it several times with multiple different inputs to make sure it works for all possible inputs. Some of the test cases may be "hidden", meaning that you do not know what the input will be. Sample run Step 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