Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

  1. No loops or decision structures or formatted output at this point
  2. Input comes from the keyboard when the owner enters the monthly data
  3. A month is 4 weeks
  4. Employees get paid once a month
  5. No taxes are taken out, currently its the employees job to do
  6. 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

  1. 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

  1. 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

  1. 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

  1. All of the input data must be in a file

a. The employees name

b. Followed by their hours

  1. 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)

  1. 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

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

Microsoft Visual C# An Introduction to Object-Oriented Programming

Authors: Joyce Farrell

7th edition

978-1337102100

More Books

Students also viewed these Programming questions