Exercise 3: Conditional Statements

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.)

Edit 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.

Tips