Menu

[solved] – Question 83163

Adam regularly challenges one of his teachers to a pool competition. The winner of their matches is the person who wins the most individual games of pool. Adam wishes to write a computer program to calculate the total number of times each player wins a game and display a message congratulating the winner of the overall match.

a) Adam wants the program to:

* repeatedly ask the user to input the winner of each game

* stop asking for input when the character “X” is entered

* add up the number of wins for each player as the winner of each game is inputted

* display a message congratulating the player who won the most games or display a message saying that the match was tied.

Write a program below that meets Adam’s requirements.

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *