Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Math Display a menu allowing the user to select addition, subtraction, multiplication, or division operation. Then the program should display two random number between

1. Math

Display a menu allowing the user to select addition, subtraction, multiplication, or division operation.

Then the program should display two random number between 10 and 50 that are to be operated based on users selections , such as:

24

+ 12

The program should then wait for the student to enter the answer.

If the answer is correct, a message of congratulations should be printed.

If the answer is incorrect, a message should be printed showing the correct answer.

2. Payroll

OBJECT: To compute the net pay of an employee, given his/her pay rate, number of hours, and tax rate.

INPUT: his/her full name, pay rate and number of hours. (You will prompt the user with a friendly message to enter the employees full name, pay rate and number of hours.)

OUTPUT: the employees gross pay, tax deduction, and net pay. For example:

Employees Name: Taylor Swift

Your gross pay is: 1560.56

Your tax deduction is: 143.25

Your net pay is: 1417.31

METHOD: You must read the Employees full name.

The gross pay is the pay rate times the number of hours;

The tax deduction is computed as follows:

5% of the gross pay if the gross pay is less than or equal to 500.00

6% of the gross pay if the gross pay is greater than 500.00 but less than or equal to 1000.00

7% of the gross pay if the gross pay is greater than 1000.00 but less than or equal to 1500.00

8% of the gross pay if the gross pay is greater than 1500.00

The net pay is the total pay minus the tax deduction.

TOPICS: arithmetic operations, input with cin, formatted output with cout, program documentation and style, and if/else structure.

You must return the following (in this order):

The program source file

The program output.

C++ Computer Language

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 Programming With Visual Basic .NET

Authors: Carsten Thomsen

2nd Edition

1590590325, 978-1590590324

More Books

Students also viewed these Databases questions

Question

Determine miller indices of plane X z 2/3 90% a/3

Answered: 1 week ago