Goal+of+the+Month

Specification
BBC are running a goal of the month competition. They show the viewers 5 goals (labelled A, B, C, D, E) and viewers have to choose which goal they think is best. BBC require a program to keep a total of the number of votes for each goal.

Here is the algorithm:

1. Loop 2. Get user input 3. Validate user input 4. Add item to array of goal_votes 5. End Loop 6. Display votes for each goal

3.1 Get user input A-E or Z 3.2. While input is not valid 3.3. Get user input A-E or Z

4.1 While input is not "Z" 4.2. If input = "A" then 4.3. Add 1 to goals votes 0th element 4.4. Else if input = "B" then 4.5. Add 1 to goals votes 1st element 4.6. Else if input = "C" then 4.7. Add 1 to goals votes 2nd element 4.8. Else if input = "D" then 4.9. Add 1 to goals votes 3rd element 4.10. Else if input = "E" then 4.11. Add 1 to goals votes 4th element 4.12 End While

6.1. Repeat 5 times 6.2. Display goal letter and goal votes 6.3 End Repeat

Hints
The program should use a single array with 5 elements of type Integer to count the goals: Dim goal_votes(5) As Integer The program should allow the user to enter either A, B, C, D, E or X to exit. Any other input should be flagged as invalid When the user enters the value X, the program should display a running total of all of the goals A-E