Question: in java thank you will leave good rating 3. Write a method named isValid which receives one parameter of type double representing a number of
3. Write a method named isValid which receives one parameter of type double representing a number of hours, and returns true if the number of hours is valid (between 0 and 168 inclusive), false otherwise. 4. Write a do loop that reads in a number of hours from the user (between 0 and 168); if the hours entered is invalid, print an error message and read the input again. (For full credit, call/invoke the method in the previous question appropriately.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
