The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Payroll
Specifications
Overview
You are the owner of a medium-sized growing company consisting of more than 100 employees. The company has several departments, each of which might have up to 50 employees (but possibly more). You are developing a Weekly Department Salary Report program. The user will interactively enter information for each employee, including their first name and last name, hourly wage, and number of hours worked. The program should create a report as this information is entered. The report will be stored in a disk file.
The report will include the information entered by the user, plus will show both the regular and overtime hourly wage, regular and overtime pay for the period, and a total pay for the period. The overtime rate is 1.5 times the regular rate, although the legislature is considering changing this within the next year or two. Overtime is currently paid for any time over 40 hours during the period; however, this might change too.
User Interface Specifications
Here is a sample dialog. Your spacing and wording should be the same as it is here. Please note that the yes/no answer in response to "Process another employee?" is a single character, and can be Y, y, N or n. No validation is necessary in this program, so assume that the user types a valid response (one of the ones just mentioned).
Pacific High Corporation
Department Salary Program
Please enter the name of the department: Marketing
Enter employee #1: June Alees
Enter the hourly wage of June Alees: 12.50
Enter total number of hours:Â 40
Thank you. Process another employee? Y
Enter employee #2: Winnie Phok
Enter the hourly wage of Winnie Phok: 11.45
Enter total number of hours:Â 45.5
Thank you. Process another employee? y
Enter employee #3: Jackson Potan
Enter the hourly wage of Jackson Potan : 16.80
Enter total number of hours: 60
Thank you. Process another employee? Y
Enter employee #4: Franklin Jackoon
Enter the hourly wage of Franklin Jackoon: 19.00
Enter total number of hours:Â 35
Thank you. Process another employee? n
End of processing.
Report File Specifications
Please follow these rules for full credit!
Your output should appear identical to that shown below (same horizontal spacing and everything). If lines are missing or values are off or spacing is different, your score will take a hit.
Assume that the department name is only one word, 20 characters long maximum, with no embedded spaces. Assume each name requested interactively is actually a first name and a last name, so TWO variables will be involved. Each of the two names is limited to a logical length of 10 characters, which means that the maximum logical length of the entire name will be 21 characters (which includes the space between the names). Be very careful of your string lengths! Remember the guidelines discussed in the lecture.
You'll have to do a little thinking to figure out how to get the printed names lined up with all the other columns. The first hint is that it involves joining strings together, something called concatenation. Give it a go, and if you can't figure it out, look at the next document in this folder; it contains additional hints. Part of the purpose of this assignment is to implicitly teach you concatenation.Â
Your calculated amounts in the report should NOT be off by one cent. Since we are all using Dev C++, you should end up with the exact same results as below.
Â
Â
Pcific High Corporation
Department Salary Program
Department: Marketing
Employee                Reg Hrs        Overtime Hrs       Gross
--------------------------------------------------------------------------------------
June Alees        40.0 ($12.50)   0.0 ($18.75)     $ 500.00
Winnie Phok       40.0 ($11.45)   5.5 ($17.17)     $ 552.46
Jackson Potan     40.0 ($16.80)   20.0 ($25.20)    $1176.00
Franklin  Jackoon   35.0 ($19.00)    0.0 ($28.50)    $ 665.00
-------------------------------------------------------------------------------------
Total Regular Hours Worked: 155.0
Total Overtime Hours Worked: 25.5
Percentage of Total Hours That Are Overtime: 14.1%
Total Regular Wages: $2295.00
Total Overtime Wages: $598.46
Total Wages This Period: $2893.46
What You Are Expected To Submit
For this assignment, I want you to develop (but not submit) a full top-down design including a module structure chart, and a Nassi-Shneiderman chart for each module box. And then produce your C program.
Â
-----------