Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write an algorithm that uses a loop ( 1 ) to input 1 0 pairs of numbers, where each pair represents the score of a
Write an algorithm that uses a loop
to input pairs of numbers, where each pair represents the score of a football
game with the Computer State University CSU score listed first, and
for each pair of numbers, to determine whether CSU won or lost.
After reading in these pairs of values, print the wonlosttie record of CSU. In
addition, if this record is a perfect then print the message 'Congratulations on
your undefeated season'.
Step : Set the value of to
Step : Set the values of Won, Lost, and Tied all to
Step : While
Step : Get the value of and
Step : then
Step : Set the value of Won to Won
Step : then
Step : Set the value Lost Lost
Step : Else
Step : Set the value Tied
Step : Set the value
End the While loop
Step : Print the values Won, Lost, and Tied
Step : Won then
Step : Print the message, 'Congratulations your undefeated season.
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