Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Process: Write the pseudocode and the Raptor code for the following problem. Don't worry about formatting the output with a certain number of digits after

Process: Write the pseudocode and the Raptor code for the following problem. Don't worry about formatting the output with a certain number of digits after the decimal point. - Ask for an employee name - Ask for the number of hours worked. Make sure that the number of hours is entered as a number more than 0. Us se a loop to walidate the number of hours. - Ask for the pay rate. Make sure that the pay rate is between $ 7.50 and $ 40(includes both 7.50 and 40). Lise a loop to validate the pay rate. - Overtime (any hours oter 40) is paid at 1.5 times the regular rate. - Deductions are taken for tax withiholding at 30% of gross pay. - Parking costs flat fee of $ 10- Display the heading ACNIE corporation - Display the output (employet name, hours worked, pay rate and all calculated values).- If the net pay is less than $450, display the truessage "ALERT 1" The following are some typical nuns to test your code. Note that you are processing data for one employee at a time. The following should help with the calculations: hours =30 Pay rate =$ 20 Gross pay =30*20=$ 600 sf 6 ;fits note there is no overtime Net P a y=600-(600*3)-10=$ 410
[ hours =50; Pay rate =$ 20]
Gross pay =40*20-(10*20*1.5)=$ 1100e the calculation for overtime pay
Net Pay =1100-(1100*3)-10=$ 760

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

Students also viewed these Databases questions