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
Get step-by-step solutions from verified subject matter experts
