Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

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

Step: 1

Heres a Python program that will ask for the scores of the games and count how many gam... blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Java An Introduction To Problem Solving And Programming

Authors: Walter Savitch

8th Edition

0134462033, 978-0134462035

More Books

Students explore these related Programming questions

Question

What is quality of work life ?

Answered: 3 weeks ago