Search for question
Question

CIT129 Introduction to Programming - Spring 2024 Assignment #6 (based on chapter 7 of your textbook) – 100 points ● ● ● 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. Objective: Demonstrate your understanding of solving problems that involve using basic arrays. 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. Assignment: Use arrays to write code to process employee income data. Deliverable: One text file for the pseudocode. Save your file using the format: firstNameLastNameCIT129_pa6.docx (or any text file format that I can open on my computer). One Raptor code file (.rap). Save your file using the format: firstNameLastNameCIT129_pa6.rap. Submit file(s) through the Canvas Assignment dropbox. 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. ● NOTES: ● Don't worry about formatting the output with a certain number of digits after the decimal point. Don't worry about exact lining up of the output as shown in the sample run. Process: Write the pseudocode and the Raptor code to solve the following problem. CIT129 - Assignment 6 - Chapter 7 (arrays) Page 1 Process and additional criteria: a) Ask the user for the number of employees whose income we would like to process. Make sure that the number of employees being processed is a number between 1 and 200, inclusive. Use a loop to validate this input. b) Ask the user for the identification number and income value for each employee and store the data in two arrays. c) Display the header "INCOME REPORT". d) Display the identification number and income values, separated by a comma and a $symbol before the value of income, one per line. See the sample interaction. Calculate and display the total income. e) f) Calculate and display the average income. g) Display the header "List of income values more than the average". h) Display the income values larger than the average income. SAMPLE interaction: Of course, this is just a sample run. Your code should work for any number of input values. Enter the number of people: -1 Invalid number of people - try again: 300 Invalid number of people - try again: 3 Enter Employee Identification Number: 8120 Enter income: 2500.5 Enter Employee Identification Number: 1234 Enter income: 3000 Enter Employee Identification Number: 4242 Enter income: 2800.8 INCOME REPORT 8120, $2500.5000 1234, $3000 4242, $2800.8000 Total Income = 8301.3000 Average income = 2767.1000 List of income values more than the average 3000 2800.8000 CIT129 - Assignment 6 - Chapter 7 (arrays) Page 2/n

Fig: 1