Question: Write a program that will ask for two integers that represent the score of the game. The scores will be between 0 and 100 inclusively.

Write a program that will ask for two integers that represent the score of the game. The scores will be between 0 and 100 inclusively. Count how many games UCF will win before they lose one. Once they lose one, print "The season is over" and print out the number of games UCF won. There will be no ties in the game.

Example:

Game #1
What did UCF score: 54
What did the opponent score: 6
Game #2
What did UCF score: 18
What did the opponent score: 16
Game #3
What did UCF score: 70
What did the opponent score: 0
Game #4
What did UCF score: 30
What did the opponent score: 32
The season is over.
UCF won 3 games.

Step by Step Solution

3.37 Rating (153 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres a Python program that will ask for the scores of the games and count how many gam... View full answer

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