Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Knightro has been celebrating the recent wins of our basketball teams! Petey was thinking about trying to build up the hype of a win streak

Knightro has been celebrating the recent wins of our basketball teams! Petey was thinking about trying to build up the hype of a win streak so much so that when the team loses a game, everyone will think the season is over.
Write a program that will ask for two integers that represent the score of the game. The scores will be between 0 and 120 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 scores.
Example:
Game #1
What did UCF score: 54
What did the opponent score: 46
Game #2
What did UCF score: 78
What did the opponent score: 61
Game #3
What did UCF score: 90
What did the opponent score: 80
Game #4
What did UCF score: 46
What did the opponent score: 72
The season is over.
UCF won 3 games.
Lab 4 Challenge 3
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Step: 3

blur-text-image

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

SQL Database Programming

Authors: Chris Fehily

1st Edition

1937842312, 978-1937842314

More Books

Students also viewed these Databases questions

Question

3. Is IBMs program really a mentoring program? Why or why not?

Answered: 1 week ago