Search for question
Question

CIT129 Introduction to Programming - Spring 2024 Assignment #4 (based on chapter 5 of your textbook) – 100 points Date Assigned: 2/5 ● ● DO NOT pay anyone to write your code. Avoid web sites that offer solutions to assignments. These include AI tools such as ChatGPT, chegg.com, CourseHero, etc. If you copy work from such web sites, keep in mind that other students are also looking at the same information and will therefore submit duplicated work. Failure to meet these requirements leads to the violation of the academic integrity principles as stated in your syllabus. Objective: Use the decision and repetition control structure to write code in Raptor. Assignment: Assignment is based on concepts covered in chapter 5 (repetition) and earlier chapters of your textbook. Assignment requires completion of code written in Raptor. ● ● Deliverable: One document file for the pseudocode. Save your file using the format: firstNameLastNamecit129_pa4.docx (or any text file format that I can open ● Date Due: 2/13 DO NOT post the text of this assignment on any web sites. DO NOT share your answers with anyone. DO NOT collaborate on completing work with anyone. DO NOT use the Internet to search for solution to assignments. Documentation: I am also asking for code documentation. I explained the process in our last assignment. I hope you understand that code documentation is different than output from programs. Code documentation explain the code, output show the interaction of the code with the user. Process: ● on my computer). One Raptor code file (.rap). Save your file using the format: firstNameLastNamecit129_pa4.rap. Submit file(s) through the Canvas Assignment dropbox. ● 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 the number of employees. For each employee, CIT129 - Assignment 4 -chapter 5 (repetitions) Page 1 O O O O Ask for an employee name. Ask for the number of hours worked. Ask for the pay rate. Calculate employee net pay. Note that overtime (any hours over 40) is paid at 2 times the regular rate. Deductions are taken for tax withholding at 30% of gross pay. Parking costs flat fee of $10. Display the heading "**** ACME corporation **** « O o ○ Display the output (employee name, hours worked, pay rate, gross pay, and net pay after taking out the deductions and parking cost). O If the net pay is more than $800, display the message "CHECK PAY” The following should help with the calculations: hours = 30 Pay rate $20 Gross pay = 30*20 = $600 <<<< note there is no overtime Net Pay = 600 (600*.3) – 10 = $410 hours = 50 Pay rate = $20 Gross pay = 40*20 + (10*20*2) = $1200 <<note the calculation for overtime pay Net Pay = 1200 – (1200*.3) – 10 = $830 SAMPLE RUN: INPUT: Enter number of employees: 2 Enter employee name: James Bond Enter hours worked: 30 Enter pay rate: 20 OUTPUT: **** ACME corporation **** Name: James Bond Hours: 30 Pay rate: $20 Gross pay: $600 Net Pay: $410 INPUT: Enter employee name: Donald Duck CIT129 - Assignment 4 -chapter 5 (repetitions) Page 2 Enter hours worked: 50 Enter pay rate: 20 OUTPUT: **** ACME corporation **** Name: Donald Duck Hours: 50 Pay rate: $20 Gross pay: $1200 Net Pay: $830 CIT129 - Assignment 4 -chapter 5 (repetitions) Page 3/n

Fig: 1