Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C++ program to read an employees ID and the number of hours worked in one week. Compute the weekly salary based on the

Write a C++ program to read an employees ID and the number of hours worked in one week. Compute the weekly salary based on the following criteria: a) If the number of hours worked is less than or equal to 40, the pay rate is $9.25 per hour. b) If the number of hours worked is greater than 40, the pay rate is 9.25 for 40 hours, plus $14.25 for each additional hour worked over 40 hours. Display the employees ID, hours worked, and calculated salary. Use appropriate formatting and named (symbolic) constants. Sample Input/Output #1: Please enter the employees ID and press : 4852 Please enter the total hours worked and press : 35.5 Employee ID: 4852 Hours Worked: 35.50 Salary: $ 328.38 Sample Input/Output #2: Please enter the employees ID and press : 4862 Please enter the total hours worked and press : 45.5 Employee ID: 4862 Hours Worked: 45.50 Salary: $ 448.38

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

Database Concepts

Authors: David M Kroenke, David J Auer

6th Edition

0132742926, 978-0132742924

More Books

Students also viewed these Databases questions

Question

What are the various methods of interviewing? Define each.

Answered: 1 week ago