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

  You will create a linked list module

You will create a linked list module that exactly meets the specifications given in the supplied header (.h) file. The playlist program must accept a filename on the command line (argv).

  Function that accepts a pointer to a c-string

Write a function that accepts a pointer to a C-string as an argument and returns the number of words contained in the string. Also have it display the average number of letters in each word.

  Calculate the volume flow rate in cubic feet

Write a program to calculate the volume flow rate in cubic feet per second of water flowing through a pipe of diameter d in inches and a velocity of v feet per second. The formula for the flow rate is given by: Where area = ?d^2 / 4 equation in sq..

  Coinflip to prompt for and input a number

Write a program and name it CoinFlip to prompt for and input a number of times to flip a coin, then to output the number of "heads" and the number of "tails" that were flipped.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a deck plan space ship in eclipse

Develop a simple interactive two-dimensional spaceship deck plan editor using OpenGL and GLUT. Your program will enable a user to create and save a deck plan of a hypothetical spaceship comprising the hull walls.

  Functions to make a main program

write the required functions to make a main program that is already written

  Implement the guess the word

Implement  the ‘Guess the Word' game in an object-oriented manner

  Write a program that allows users to enter a dollar amount

Write a program that allows users to enter a dollar amount for their bank account balance at the beginning of the month. Then ask the user to enter a dollar amount for any number of checks written in a month, up to 50. Include an approriate sentinel ..

  Loops and if conditions

Write a program that requests a password

  One or more consecutive white spaces is a delimiter

Write a function which will determine how many words are in a given string. assume that one or more consecutive white spaces is a delimiter between words.

  Write a menu-driven program that maintains an address book

Write a menu-driven program that maintains an address book using a linked list. The address book must supports the following operations

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