Summary For each used car a salesperson sells, the commission is paid as follows: $20 plus 30% of the selling price in excess of the cost of the car. Typically, the minimum selling price of the car is...

1 answer below »

Summary


For each used car a salesperson sells, the commission is paid as follows: $20 plus 30% of the selling price in excess of the cost of the car.


Typically, the minimum selling price of the car is the cost of the car plus $200 and the maximum selling price is the cost of the car and $2,000.


Instructions


Write a program that prompts the user to enter:



  1. Purchasing cost of the car

  2. The minimum to be added to the purchasing cost

  3. The maximum to be added to the purchasing cost

  4. Salesperson’s fixed commission

  5. Percentage of the commission


The program should output:



  1. The minimum and maximum selling price of the car

  2. The salesperson’s commission range



Since your program handles currency, make sure to use a data type that can store decimals.





Summary For each used car a salesperson sells, the commission is paid as follows: $20 plus 30% of the selling price in excess of the cost of the car. Typically, the minimum selling price of the car is the cost of the car plus $200 and the maximum selling price is the cost of the car and $2,000. Instructions Write a program that prompts the user to enter: 1. Purchasing cost of the car 2. The minimum to be added to the purchasing cost 3. The maximum to be added to the purchasing cost 4. Salesperson’s fixed commission 5. Percentage of the commission The program should output: 1. The minimum and maximum selling price of the car 2. The salesperson’s commission range Since your program handles currency, make sure to use a data type that can store decimals.
Answered Same DaySep 19, 2021

Answer To: Summary For each used car a salesperson sells, the commission is paid as follows: $20 plus 30% of...

Arun Shankar answered on Sep 20 2021
152 Votes
#include
using namespace std;
int main()
{
double cost, minimum, maximum, fixed, pe
rcentage, commission;
cout << "Enter the purchasing cost of the car: ";
cin >> cost;
cout << "Enter the minimum to be added to the purchase of the car: ";
cin >> minimum;
double...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here