Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a program named Pay Calculator. Prompt the user for an employee's name, the number of hours worked that week, and the hourly pay. Employees

image text in transcribed

Create a program named Pay Calculator. Prompt the user for an employee's name, the number of hours worked that week, and the hourly pay. Employees who work more than 40 hours should receive overtime pay (time and half). Display the employee's name and his her gross pay as currency. You MUST use a sentinel controlled while loop to do this. If the user wants to enter another employee, she should enter 1 to continue, otherwise enter 2 to quit. Use the command prompt window for input and output. You must follow all Programming Guidelines. You must comment your code. Your name must appear in the output. Do NOT use NetBeans, Eclipse or Interlay for any labs or assignments. Do NOT create projects or use package statements. Write pseudocode for the algorithm used to determine the pay. Name the file assign3pseudocode. You should write the pseudocode before writing your program. Note that this is NOT code so do not copy/paste your code. Also, do not use Java- specific terms in your pseudocode. Sample program run: Please enter the name of the employee: Hemer simpson Please enter the name of hours worked this week: 45 please enter the employee's hourly wage: 15.50 Homer simpson earned $736.25 enter to continue, 2 to quit: 1 Please enter the name of the employee: Walter White please enter the number of hours worked this week: 36 please enter the employee's hourly wage: 10.00 Walter White earned $360.00 Enter 1 to continue, 2 to quit: 2 programmed by YOUR NAME

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions