CIS 115 one scenario

timer Asked: Jun 17th, 2013

Question description

Scenario: You have been asked by the Payroll department to create a program that will calculate the weekly pay for the company's 75 employees. The program will prompt the user to provide each employee's full name, hourly pay rate, and hours worked. The program will then ask if the employee is single or married. If an employee is married, the tax rate is 15%; if single, the tax rate is 23%. Also, if the employee worked more than 50 hours in a week, the number of hours greater than 50 is paid a rate 1.75 times of the provided hourly rate. The program will display a list of all the employee names and weekly pay. In addition, the program will display the total payroll for the week, the average weekly pay, and the highest weekly pay. Design a program using structured pseudocode as demonstrated in the lectures and, ensuring all variables are declared, prompt the user for the appropriate input and display a meaningful output message. Ensure the following input is validated as follows: If the hours worked per week is less than zero, set the hours worked to zero. If the hours worked per week is greater than 70, set the hours worked to 70. If the pay rate is less than $15 per hour, set the pay rate to 15. If the pay rate is greater than $60, set the pay rate to 60. Provide a program introduction message that tells the user how to use the program.

Studypool has helped 1,244,100 students
flag Report DMCA
Similar Questions
Hot Questions
Related Tags

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors