Reference no: EM13764086
Write a C program that will calculate the gross pay of a set of employees.
For each employee the program should prompt the user to enter the clock number, wage rate, and number of hours as shown below.
The program determines both the overtime hours (anything over 40 hours) and the gross pay, and outputs the following format. Hours over 40 are paid at time and a half.
Clock# Wage Hours OT Gross
098401 10.60 51.0 11.0 598.90
In the example above, since the employee worked 51 hours, 11 of those hours are overtime and are paid at time and a half. The first 40 hours are paid at the standard time using the hourly wage rate. If no overtime hours are worked, just indicate 0.0 hours in your output.
Column alignment, leading zeros in Clock#, and zero suppression in float fields are important.
With this and in future assignments, please start using constants. For example, instead of hard coding a value for 40.0, use a constant:
#define STD_HOURS 40.0
Replace 40.0 in your code with the symbolic constant STD_HOURS
There are a few other constants you should define and use for this assignment. Use at least one more constant in your homework.
Use the following data as test input:
Clock# Wage Hours 98401 10.60 51.0 526488 9.75 42.5 765349 10.50 37.0 34645 12.25 45.0 127615 8.35 0.0
Computation of present value
: Using the appropriate interest table, compute the present values of the following periodic amounts due at the end of the designated periods.
|
Distinguishing feature of a common law legal system
: Which of the following is a distinguishing feature of a common law legal system
|
Discuss the main parts of the auditor report
: Discuss the main parts of the Auditor Report for the company (list the 8 parts for audit report and match them with your selected auditor report).
|
Define a car structure type
: For this assignment you will write a program that determines which of a set of rental cars the user can rent for a user-specified rental rate. The rental car data is contained in a text file which will be fed into your program using stdin redirect..
|
Write a c program that will calculate the gross pay
: Write a C program that will calculate the gross pay of a set of employees. For each employee the program should prompt the user to enter the clock number, wage rate, and number of hours as shown below.
|
Find economies of scope
: Find economies of scope. Provide examples of specific actions Harley-Davidson's managers could take to reduce expenses or share activities through horizontal relationships across brands.
|
History of women and minorities in policing
: History of Women and Minorities in Policing
|
Revenue expenditures and capital expenditures
: Write a 400 - 700-word summary explaining the differences between revenue expenditures and capital expenditures during a useful life and identifying any similarities. Briefly explain the entries of revenue expenditures and capital expenditures.
|
Do you recollect emotion in tranquility
: Given Eliot's Modernist argument with Wordsworth the Romantic, where would you position your poem? Do you write from strong emotion? Do you recollect emotion in tranquility, or are you a cold craftsman?
|