a) Modify the two-parameter
setHeightmethod in Figure to make it test its
unitsparameter to see if
unitsis equal to one of the following allowable symbols: “m,” “cm,” “mm,” “in,” or “ft.” If it is equal to one of these, set the instance variables and return
true. If it is not equal to one of these, return
false.
b) Does this modification
requireany change to any program that calls the two-argument
setHeightmethod? Why or why not?
c) Write a statement that calls the modified method and utilizes the returned information to print an error message “Error: units not recognized” if the units argument is not one of the allowed values.
Figure Height class with overloaded methods

We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.