Create a new directory for this exercise. Copy your Exercise 2 solution into this directory. Compile it, run the program and observe its behaviour when invalid numeric inputs are supplied – i.e., value of zero for either radius, negative value for either radius, value of \(c\) greater than value of \(a\). (You don’t need to consider non-numeric inputs here.)
Spheroid.java and modify it so that it
See Section 3.5 of Eck’s book if you need guidance on what is required here.
System.exit()to exit a program prematurely, before the end of
main. This method expects an integer status code, and by convention a non-zero status is used to indicate that the program did not execute successfully.