Write a c program that will calculate the gross pay of a

Assignment Help C/C++ Programming
Reference no: EM13379918

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

Reference no: EM13379918

Questions Cloud

Wireless data center networking1a what do you think is the : wireless data center networking1.a what do you think is the traffic demand information in this research i.e. what
From your knowledge and experience how are computer : from your knowledge and experience how are computer forensic investigators in todays world of complex technology are
An information technology recruiting firm has been growing : an information technology recruiting firm has been growing rapidly over the past few years. the number of clients over
One of the needs that your client has is a databaseto : one of the needs that your client has is a database.to design a database a database planner should spend a considerable
Write a c program that will calculate the gross pay of a : write a c program that will calculate the gross pay of a set of employees.for each employee the program should prompt
Security in bluetooth and other mobile devicesbefore : security in bluetooth and other mobile devicesbefore supporting mobile and wireless devices organizations need to
Suppose that a vector processor has a memory system in : suppose that a vector processor has a memory system in which it takes 10 cycles to load a single 64-bit word from
Consider any of the supercomputing examples we discussed in : consider any of the supercomputing examples we discussed in class and find a scientific paper describing it. you must
In this assignment you are to write a program that analyzes : in this assignment you are to write a program that analyzes a selection of text counting the number of times each word

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write in c++. read an inputfile.txt

write in C++.  read an inputFile.txt which contains integers that are virutal addresses, and I am suppossed to translate that into physical addresses using a page table and a transition lookaside buffer

  Create a customer profile class.

a. Create a CustomerProfile class. Each CustomerProfile contains a last name, phone number, and bit fields indicating whether the customer:

  A constructor and a destructor

A constructor and a destructor, Insert a new element chosen by the user at the correct place in the list

  Compare the running time of two versions of the insertion

implement Uniform Random Number generator and Generate 1000 Random number between 0 an 10000. Try to use insertion sort to sort them. Compare the running time of two versions of the insertion sort.

  Braces for blocks of code

C-- should have braces for blocks of code, an if statement, while statement, and a double, int, and character. Each statement ends with a semi-colon and you must have a main routine

  Rationalnumber class a rational number is a number that can

rationalnumber class a rational number is a number that can be represented as the quotient of two nbspintegers. for

  Write code that declares an int array named month

Write code that declares an int array named month with 5 rows and 7 coloumns and initializes every element to -1.

  Multiple heaps

Create an application that has two heaps. Place a linked list into each heap. Select one hundred random numbers. Place each of the random numbers into each heap - CSI 345 - Spring 2014 S2

  Write a program that displays a weekly payroll report

Write a program that displays a weekly payroll report

  Display the average and save the average to the file

Write a program that asks the user to enter five floating-point numbers. The program should create a file and save all five numbers to the file.

  Write code in a client program

prompt use to enter a name and read it from the standard input device.

  The possible responses are a b c or d a file has been

the possible responses are a b c or d. a file has been created that contains the following1st line the answer key

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd