Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. use of data type variable declarations (character ) 2. Const variable declaration and assignments 3. Process a simple character data manipulation 4. Reinforcement of

1. use of data type variable declarations (character )

2. Const variable declaration and assignments

3. Process a simple character data manipulation

4. Reinforcement of previous project

Program description:

Write the necessary C++ statements (Program) to calculate the employee's regular pay, overtime pay, and total weekly pay.

Write the variable declarations and initialization sections necessary to compute and print the required calculations. The program should ask the user to input the employee's Code,hours, and Rate of pay.

Where :

Hour = employee's work hours

Rate = employee's hourly pay

Overtime = employee's over time hours

Wages = employee's weekly pay

Code = employee's status (declare as character)

1) A full-time employee receives time-and-half for all hours worked in excess of 40.

2) run the program twice for the following data:

Given that ( Hours= 40.00 and , Rate = $11.45)

Given that (Hours= 60.00 and, Rate = $15.00)

Program should produce the following output:

Employee's code is 'F'

The regular pay is $ xx.xx

The over time pay is $ xx.xx

Total wages is $ xx.xx

It was a nice program

Hint: Modify program in project 2

Submit:

a) IPO chart

b) Flowchart

c) Source code

d) output of the program

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 2012 Proceedings Part 2 Lnai 7197

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284892, 978-3642284892

More Books

Students also viewed these Databases questions