Program to track the hours an employee worked , C/C++ Programming

Assignment Help:

Description:

Create a program that allows the user to track the hours an employee worked in a week. How much the employee was paid and any extra hours worked (overtime pay).

Assume that there are 5 employees. They are all full-time and work 30 hours per week. Any extra hours worked within a week is considered overtime. No taxes or other deductions are taken out of the employee's pay.

The pay rate is $12.00 per hour, with the ability to make $24.00 per hour for overtime, with the max of 10 overtime hours allowed per week.

 The program should display the following:

Emplyoee's Name

Emplyoee's ID (numeric)

Hours Worked

Overtime Hours

Weekly Pay (Amount of Weekly paycheck)

Total Monthly Pay

The program should also allow for a search to be done that will output the employee's id and hours of overtime worked and overtime pay (monthly total).

The following should be in your code: Variables, data types, arithmetic operators, at least 2 methods, at least 1 array (but not limited in using different types of arrays), a for loop and if statement (control structures).

Output should display like this:

Emplyoee Name: Sally Mae

Emplyoee ID: 12345

Hours Worked: 35

Overtime Hours: 5

Weekly Pay: 480

Total Monthly Pay: 120


Related Discussions:- Program to track the hours an employee worked

C++, Write C++ code for calculating the time table

Write C++ code for calculating the time table

Explain the command line parameters, Explain the Command Line Parameters? ...

Explain the Command Line Parameters? The Command line arguments are parameters supplied to a program from the operating system. These arguments are parameters accepted to main

Salary of an employe, basic salary of an employe.the allowence are House r...

basic salary of an employe.the allowence are House rent 20% of basic salary Medical allowence is 10% of basic salary conveyence allowence is 10% calculate anrd display gross salar

Expression, i need expression and its types with example programs in c++

i need expression and its types with example programs in c++

Area under the curve, Write a program to find the area under the curve y = ...

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can b

I need cryengine sandbox speedometer and tachometer, I need Cryengine Sandb...

I need Cryengine Sandbox Speedometer and Tachometer We want to get working Tachometer and Speedometer for a car in latest Cryengine Sandbox. You will find how to make it usin

Miss, Depreciation to a salvage value of 0. For tax purposes an item m...

Depreciation to a salvage value of 0. For tax purposes an item may be depreciated over a period of several years, n. With the straight line method of depreciati

How to write Bernoulli''s principle, compose a C program to solve the equat...

compose a C program to solve the equation z2=(p1/Pg)+(v1^2/2g)+z1 p1=100kpa,v1=2m/s z1=3m P=1000kg/m^3 define g=9.81

Write Your Message!

Captcha
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