Answered step by step
Verified Expert Solution
Question
00
1 Approved Answer
You will calculate the gross pay for an individual using the formula gross pay = rate * hours Your main method will call all methods
You will calculate the gross pay for an individual using the formula gross pay rate hours Your main method will call all methods and return a value back or not to a variable in the main method if needed. Use my method names only You will declare your variables Comments not required at the top of the program Use descriptive variables you will need to determine the data type Name the java file lastnameFinalExam when submitting Using the following methods names with notes: 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 main method displayRHGrossPay where you will pass the rate, hours and gross pay variables from the main method to this method for display purposes. Use a good descriptive statement see below The pay rate is $X The hours worked are X The gross pay is $X Dollar signs are hard coded
You will calculate the gross pay for an individual using the formula
gross pay rate hours
Your main method will call all methods and return a value back or not to a variable in the main method if needed.
Use my method names only
You will declare your variables
Comments not required at the top of the program
Use descriptive variables you will need to determine the data type
Name the java file lastnameFinalExam when submitting
Using the following methods names with notes:
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 main method
displayRHGrossPay where you will pass the rate, hours and gross pay variables from the main method to this method for display purposes. Use a good descriptive statement see below
The pay rate is $X
The hours worked are X
The gross pay is $X Dollar signs are hard coded
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started