ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 23 May 2017 My Price 9.00

Payroll Specifications

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. 

  1. Do NOT use tabs (t) and make sure your C/C++ editor does not produce tab characters.
  2. Do NOT use gets() in this program. Use scanf() for inputting the interactive information. If you try to use gets(), you may get VERY frustrated.
  3. In essence, all numbers appearing in the report should be right-justified and decimal-aligned. All numbers appearing in the summary should appear without leading spaces (other than the one which normally separates the number from the previous word). Hourly wage amounts CAN be less than 10.00, so be very careful with your formatting. The sample output can appear correct, but you can still be docked a half-point if things don't align properly with hourly wages under $10.00.

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.

 

Answers

(11)
Status NEW Posted 23 May 2017 05:05 AM My Price 9.00

-----------

Attachments

file 1495516702-Solutions file 2.docx preview (51 words )
H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly -----------onl-----------ine----------- an-----------d g-----------ive----------- yo-----------u e-----------xac-----------t f-----------ile----------- an-----------d t-----------he -----------sam-----------e f-----------ile----------- is----------- al-----------so -----------sen-----------t t-----------o y-----------our----------- em-----------ail----------- th-----------at -----------is -----------reg-----------ist-----------ere-----------d o-----------n -----------THI-----------S W-----------EBS-----------ITE-----------. ----------- Th-----------ank----------- yo-----------u -----------
Not Rated(0)