Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
