Question
For C++ in visual studio 2017 Create a program that gets information from the owner and displays the current months expense for the employees wages.
For C++ in visual studio 2017
Create a program that gets information from the owner and displays the current months expense for the employees wages.
Requirements:
- No loops or decision structures or formatted output at this point
- Input comes from the keyboard when the owner enters the monthly data
- A month is 4 weeks
- Employees get paid once a month
- No taxes are taken out, currently its the employees job to do
- All of the input will be finished before the output begins
1. This does not include prompting the coffeehouse owner for the information to be entered
- The input:
1. The owner should know which employee and week he is entering the information for
2. Hourly:
1. Enter the hours worked by the week
2. Get all 4 weeks for 1 employee before moving on
3. Salary:
1. Verification of how many full weeks they worked
2. They can only work a full week or not at all that week
- The output:
1. Make sure the output organized and easy to read
2. Two categories
1. Hourly
2. Salary
3. Display for each category
1. First and last name
2. How many hours worked for the month or weeks for salaried
3. Gross pay for the month
- The Employees:
1. Hourly employees (the baristas)
1. Darren Duchesne, $6.45 plus tips
2. Christian Cargile, $5.75 plus tips
3. Selena Dresher, $6.25 plus tips
4. Neil Palafox, $5.45 plus tips
2. Salaried employees (the managers)
1. Emilia Rogge, $32,633/year
2. Jamie Lanphear, $27,800/year
Additionally
- All of the input data must be in a file
a. The employees name
b. Followed by their hours
- All of the output data displayed will be formatted
a. Names 10 blank spaces in between
i. Left justified
ii. 20 spaces to hold the name
b.
c. Monthly pay
i. Right justified
ii. Always show the decimal place and 2 digits after it for the cents
iii. 9 spaces to hold the monthly pay
iv. Include the $ before the 9 spaces, not part of it
v. Fill the empty space between the number and the $ with * (the asterisk)
- Add the owners salary
a. Liza Bossert
b. Salaried - $75,000.00 / year
c. For the owner you will show her monthly salary first and separately
d. Titled Owners Salary
e. Followed by 5 blank spaces
f. 10 formatted spaces for the pay
g. Rest of the formatting, use the same as the rest of the employees
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