![]() |
Example 15A large electronic scoreboard in a sports stadium displays the scores of the two teams during a match. At the end of the game we want it to display a 'congratulations' message to the winning team. A program is required which asks the user to enter the names of the two teams and the number of points scored by each. The program will then print out an appropriate message. 1. Design a Solution
2. Code the Program
3. Test the Program
There is an obvious flaw in the specification. Does your test data reveal the problem? See your teacher if you're not sure. 4. Evaluate the Solution Can you describe the problem with the design and suggest how it might be solved?
|
© 1998 John Brewer |