CSC 160 Fall 2015 - Lab #10 (20 points)
Assigned W 12/9, Due M 12/14
The NFL (National Football League) wants to run a simulation of two-minute drills for its games. As a first step to implementing this simulation, use the Software Development Process to write a program that will tell the user if the team scored a touchdown or if time expired. The program takes in a number of seconds and a number of yards. Then the program needs to repeatedly ask the user how many yards were covered on a given play and how many seconds it took.
The yards covered and seconds taken are subtracted from the previous numbers of yards and seconds. This continues until
a touchdown is scored (number of yards = 0) or time expires. Then, the program ends and prints out either "touchdown scored" or "time expired".
For extra credit, have the program print out appropriate messages if the user enters inappropriate initial values. The initial number of yards needs to be between 0 and 100, not including 0 or 100. The initial number of seconds needs to be between 0 and 120, not including 0 but including 120.
Submit the module file only (lab10-LASTNAMES.py) to the Lab10 link on Moodle.
Last Modified: 12/14/15