Question
Project 2.4.1. Write a C++ program to compute the weekly wage for an employee of a company. Conform your program to the following guidelines: (1)
Project 2.4.1. Write a C++ program to compute the weekly wage for an employee of a company. Conform your program to the following guidelines:
(1) Your program should request and obtain from the user the first name initial and last name initial of an employee and the number (integer) of hours and minutes (separately) the employee worked that week in an interactive way. The minutes will have to be converted to hours before computing the wage.
(2) Compute the wages for the employee using the pay rate of $13.55 per hour. Compute income tax at the rate of 15%, and take the taxes off of the wages to find the net pay.
(3) The wage must be presented in terms of integer dollars and integer cents (example: wage= 194 dollars and 85 cents), not in terms of decimal dollars as $194.85. For this, you need to use the integer-real conversion features of the language.
(4) The output must consist of the initials of the employee and his/her wages, tax, and the net pay for the week.
(5) Your program must have a comment block that explains what it does and who ou are. Also insert comments that explain what each block of statements do.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started