Game designers are designing characters for a new online game they hope is going to go viral:
Here is the concept:
While the Graphic Designers are working a visual of the game, the programming team is working on the actual game logic.
It has been decided to use arrays to manage the game data.
Here is some starter code that your colleagues have been working on:
The programmers have adopted a to the solution. This is the design of the main function.
public static void main(String[] args) {
String[] racers = {"Max", "Jerry", "Sandy"};
;
String prediction = ;
int winIndex = ;
Make sure you are thoughtful when testing your solution.
If your code has a validation check, test your code with acceptable/valid data and unacceptable/invalid data.