Who won?

Write a program to show who won a contest. Was it the good guys, the bad guys, or a draw?

The user inputs scores, and clicks a button. The program shows one of three messages:

  • Yay! Good guys won!
  • Boo! Bad guys won.
  • A draw. We'll get them next time.

For example:

Output

As always: comments, good variable names, etc.

Upload your Excel file.

(If you were logged in as a student, you could submit an exercise solution, and get some feedback.)

Referenced in: