Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Introduction to Wireless and Mobile Systems

Authors: Dharma P. Agrawal, Qing An Zeng

4th edition

1305087135, 978-1305087132, 9781305259621, 1305259629, 9781305537910 , 978-130508713

More Books

Students also viewed these Programming questions