Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Tasks AcmePay.java + >_ Terminal + 145 // calculate retirement. O AcmePay functions as expected V 146 The hours worked, : 56 1,74 147 retirement

image text in transcribedimage text in transcribed
Tasks AcmePay.java + >_ Terminal + 145 // calculate retirement. O AcmePay functions as expected V 146 The hours worked, : 56 1,74 147 retirement = 0.03 * totalPay; Enter shift (1/2/3) : 3 out of The hourly pay rate=$22 10.00 148 Do you want to opt for retriement 149 (y) : 1 The Regular pay = $880.0 0 out of 4 checks passed. Review 150 The Overtime pay = $528.0 151 // calculate the net pay. The total of regular and overtime the results below for more details. 152 pay: $1408.0 The retirement deduction = $0.0 153 totalPay1 = totalPay - retirement; Net pay = $1408.0 154 Checks 155 // display the details on console. 156 Test Case . Incomplete 157 System. out . printIn("The Regular pay = $" + pay); AcmePay 1, 45 58 159 System. out . printIn("The Overtime pay = $" + overtime); Test Case . Incomplete 160 AcmePay 2, 30, 1 161 System. out . printIn("The total of regular and overtime pay: $" + totalpay); Test Case . Incomplete 162 AcmePay 3, 56, 2 163 System. out . printIn("The retirement deduction = $" retirement); Test Case . Incomplete 164 AcmePay 3, 56, 1 165 System. out . printIn("Net pay = $" + totalpay1); 166 Check all tasks. 167 168 169 LP Run Checks Submit 17%Tasks AcmePay.java + >_ Terminal + 76 System . out . printIn("shift : "+shift); AcmePay functions as expected 77 Which shift you worked(1,2 or 3)? 3 7.14 78 out of System. out . printIn("Hourly Pay Rate :"+hourlyPayRate); Enter hours worked : :56 10.00 79 Do you wish to opt for retirement 8 80 System. out . printIn("Regular Pay : "+regularPay); plan(1=Yes and 2=No)? 1 2 out of 4 checks passed. Review 81 82 Hours Worked : 56 the results below for more System. out . printIn("overtime Pay : "+overtimePay); 83 Shift :3 details. Hourly Pay Rate :22.0 84 System. out . printIn("Total Pay :"+totalPay); Regular Pay : 880.0 85 Overtime Pay : 528.0 Checks 86 if(retirement==1) { Total Pay : 1408.0 Retirement Deduction: 42. 2399999999 87 99995 Test Case . Incomplete 88 tax=totalPay*(3.0/100.0); Net Pay : 1365.76 AcmePay 1, 45 89 90 System. out . printIn("Retirement Deduction:"+tax); Test Case . Complete 91 AcmePay 2, 30, 1 92 93 Test Case . Incomplete 94 double netPay=totalPay-tax; AcmePay 3, 56, 2 95 96 System. out . printIn("Net Pay :"+netpay); Test Case . Complete 97 AcmePay 3, 56, 1 98 99 Check all tasks. 100 101 } 102 Run Checks Submit 71%

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

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions