In this assignment you will re-write your payroll program from
homework #6 to make use of methods. In particular you
should write two methods (besides main):
One method should be for the purpose of allowing a user to enter an double value in a
range specified by its parameters. The user prompt should also be a parameter. The method
should use the error-handling techniques we discussed in class so that it won't crash if the
user enters letters or symbols. Anytime the user enters something that is not an integer in
the proper range, remind the user what the required range of values is and have them enter
again. Once they have entered a proper value, return that value.
This single method will be called two times (once to obtain number of
hours worked (0-168), once to obtain a payrate (7.50-2000.0).
The other method should accept as parameters the values entered by the user
(payrate and hours worked) and should return the amount earned for the
week. It should not perform any input or output.
So, the main program will consist of three method calls along with an output statement
to display the taxes owed.