Question: 1. Write a C++ code to calculate the salesperson's bonus considering the following criterion: If the monthly earning is greater than $9,000, the bonus will

1. Write a C++ code to calculate the salesperson's bonus considering the following criterion: If the monthly earning is greater than $9,000, the bonus will be 7.8% of the monthly sales. If the monthly earning is greater than $4,200, but less than or equal to $9,000, the bonus will be 6.2% of the monthly sales. If the monthly earning is less than or equal to $4,200, the bonus will be 5.5% of the monthly sales. Prompt for and read in salesperson's monthly earnings which is a floating-point number. You can use multiway if-else statement to implement multiple condition. Print out the prompt for read in and bonus pay with a meaningful message.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!