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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started