Create a class named Pay that includes five double variables that hold hours wor
ID: 3541547 • Letter: C
Question
Create a class named Pay that includes five double variables that hold hours worked, rate of pay per hour, withholding rate, gross pay, and net pay. Create three overloaded computeNetPay() methods. When computeNetPay() receives values for hours, pay rate, and withholding rate, it computes the gross pay and reduces it by the appropriate withholding amount to produce the net pay. Gross pay is computed as hours worked, multiplied by pay per hour. When computeNetPay() receives two arguments, they represent the hours and pay rate, and the withholding rate is assumed to be 15%. When computeNetPay( ) receives one argument, it represents the number of hours worked, the withholding rate is assumed to be 15%, and the hourly rate is assumed to be 5.65. Write a main() method that tests all three overloaded methods. Save the application as Pay.java.
(2)(Points - 50) Write an application that stores at least four different course names and meeting days and times in a two-dimensional array. Allow the user to enter a course name (such as cis 218) and display the day of the week and time that the course is held (such as "Thurs 5:30"). If the course does not exist, display an error message. Give the user the option of printing out all courses and meeting times. Save the class as Schedule.java.
im a newbe a java codeing im lost were to even start and im very behind in the class so plz help
Explanation / Answer
Deadline for this assignment ?
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.