Question: in java calculate the gross pay for an individual using the formula gross pay = rate * hours. Main method will call all methods and
in java calculate the gross pay for an individual using the formula gross pay rate hours. Main method will call all methods and return a value back or not to a variable in the main method if needed, declare variables, displayInfo where you will display your name, date and description for the program only. Call this method from main method first, getRate where you get the pay rate for an individual. You will pass this variable back to the calling method in main method, getHours where you get the hours for an individual. You will pass this variable back to the calling method in main method, calculateGrossPay where you will accept rate and hours from the main method and then determine the gross pay. This method will handle your calculations. Pass the gross pay back to the calling method in the mainmethod displayRHGrossPay where you will pass the rate, hours and gross pay variables from the main method to this method for display purposes.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
