TODO3 - Use if/else statements nested inside of if/else statements to determine and return the largest of 3 integers
"public int max(int a,int b, int c)"
   
  1. Complete the lab section first for practice with Space Smasher before moving on to the assignment.
  2. Remember to experiment with your game by enabling and disabling the solution to observe the desired behaviour (see the Stepwise Approach below).
  3. Find the TODO3.java starter file; run the empty solution file and explore the behaviour that you will replicate with your code.
  4. Next, read all of the comments at the top of the file in the file header.
  5. Determine the single function you need to declare inside the empty class. It's described in the comments and also at the top of this webpage.
  6. Declare the function "public int max(int a,int b, int c){return -1;}" and leave it empty and rerun the game - do you notice any incorrect behaviour on the console ?
  7. Inside your method, you must build one if/else statement that asks: "if a is greater than or equal to b"
  8. Extend the outermost if/else statement by adding an else/if clause that asks:" else if b is greater than or equal to a"
  9. Extend the outermost if/else statement one last time to consider the case that c is the greatest using an else/if clause.
  10. Note that you need no API calls to accomplish this, and should not use Math.max() either.
  11. This is the only function that takes input and provides output in this assignment


The image above correctly determines the largest of three scores.

The image below incorrectly determines the largest of three scores as -1.