Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ programming Write a program to enter employee names and calculate the gross pay. Create a company name and motto. Display the name Display the

C++ programming

Write a program to enter employee names and calculate the gross pay.

Create a company name and motto.

Display the name

Display the motto with a border of asterisk (*) around it

Prompt the user for the employees 1st Name

Prompt the user for the employees last Name

Prompt the user for the number of hours they worked

Show the user a menu that has the position and a numeric value associated to it, for example: 1. Salesman 2. Asst Manager 3. Manager

Prompt the user to enter the numeric value of the employees position.

If the user enters a number that is not valid, they should be told that the value is incorrect and be prompted to enter a new value

The pay rate for the positions are not going to change throughout the program.

Determine the correct pay for the employee, based on their hours and pay rate. If an employee, works more than 40 hours, they get paid time and a half for every hour over 40. ((40 * payrate))+((hours worked-40)*payrate*1.5)

Make sure to display a formal statement to the user displaying the users name, their position, hours worked, pay rate, and final salary. Make sure that this statement looks nice. Currency should round to two decimal places and have a $.

Ask the user if they have another employee, if yes, allow them to enter the information for the new employee. If no, thank them for using the program and end the program.

Program should look professional and flow in a clear understandable manner. Think about the data. If it is possible, for a number to have a decimal (for example someone can work 10.5 hours and make $6.25), make sure your variables account for that. The user should be clear with what data needs to be entered and at the end, the user should be clear with what the results are.

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_2

Step: 3

blur-text-image_3

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 Design Application Development And Administration

Authors: Michael V. Mannino

4th Edition

0615231047, 978-0615231044

More Books

Students also viewed these Databases questions

Question

Does it avoid use of underlining?

Answered: 1 week ago