Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours
Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Your check should look similar to that in the figure below. Use fictitious names for the payer and the bank. Be sure to use stepwise refinement and break your solution into several methods. Use the intName method to print the dollar amount of the check.

Jom wyn, WWILEYI Peten ark Mnnet 2000 d Jla, MN ZADO CHECK 74-03, NUMIER 063331 Dde A PAY 04/29/17 S***274.15 TWO HUNDRED SEVENTY FOUR AND 15/10 TO THE ORDER OF: **** JOHN DOE 1000 Franidn Bivd Surnyvala, CA DS014 :4?8108 240: 2006 203? Sr 1301
Step by Step Solution
3.28 Rating (157 Votes )
There are 3 Steps involved in it
ANSWER import javautilScanner public class Paycheck public static void mainString args Scanner scnr ... View full answer
Get step-by-step solutions from verified subject matter experts
