Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. (40 points) Write a C++ program that computes and displays a commissioned employee's monthly earnings. A commissioned employee earns a commission based on his/her

image text in transcribed
image text in transcribed
1. (40 points) Write a C++ program that computes and displays a commissioned employee's monthly earnings. A commissioned employee earns a commission based on his/her monthly sales. The program begins by prompting the employee to enter his/her monthly sales, then computes the commission based on the table below. The table shows the commission rates for four different ranges of monthly sales values, along with an optional monthly bonus. The program computes the employee's commission by multiplying monthly sales times commission rate (as a decimal). Monthly earnings are computed by adding the monthly bonus (if any) to the commission. Finally, the program displays the employee's monthly earnings as currency (rounded to two decimal places and preceded by a dollar sign). As usual, your program output should resemble the sample runs at the end of this document. (Note: You may want to read the Extra Credit option (below) before starting your solution.) Monthly Sales Commission Rate Monthly Bonus 0

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

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

ISBN: 061901556X, 978-0619015565

More Books

Students also viewed these Databases questions