Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE READ : Code cannot use switch statements and higher level code! Only use Scanner, IF / ELSE statements allowed, please use printf NOT println

PLEASE READ: Code cannot use switch statements and higher level code! Only use Scanner, IF / ELSE statements allowed, please use printf NOT println

PLEASE READ: Code cannot use switch statements and higher level code! Only use Scanner, IF / ELSE statements allowed, please use printf NOT println

PLEASE READ: Code cannot use switch statements and higher level code! Only use Scanner, IF / ELSE statements allowed, please use printf NOT println

VERY BEGINNING JAVA COURSE. TEACHER DOES NOT WANT ADVANCED CODE. WILL NOT ACCEPT SWITCH STATEMENTS YET.

image text in transcribed

Thank you in advance.

Problem 3: Develop an algorithm for processing payroll. The name of the employee, hours worked, and hourly rate are input. The payroll report should display the employee name, gross pay, deductions, and net pay. Deductions are 15% of gross pay. Note that gross pay includes regular pay and overtime pay. Employees receive regular pay for the first 40 hours of work. Federal law requires hourly employees be paid time-and-a- half (1.5 times hourly rate) for any hours in excess of 40 hours in a week. For example, if a person's hourly wage is $8 and he works 60 hours in a week, his gross pay would be calculated as: (40 * 8) + (1.5 * 8 * (60-40)-$560 Sample Output: (test case 1) Enter the employee's name: John Smith Enter the number of hours worked this week: 45 Enter the hourly rate: 15.50 Payroll Report for John Smith Gross Pay: 736.25 Deductions: 110.44 Net Pay:S 625.81 Test case 2: (your choice of name), 25.5 hours, 10.25 per hour Test case 3: (your choice of name), 40 hours, 20.75 per hour

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

Real Time Database And Information Systems Research Advances

Authors: Azer Bestavros ,Victor Fay-Wolfe

1st Edition

1461377803, 978-1461377801

More Books

Students also viewed these Databases questions

Question

Describe your ideal working day.

Answered: 1 week ago