Answered step by step
Verified Expert Solution
Question
1 Approved Answer
help please, i updated the question CS135.1003 Assignment 2: Used Car Salesperson Description For each used car a salesperson sells, the commission is paid as
help please, i updated the question
CS135.1003 Assignment 2: Used Car Salesperson Description For each used car a salesperson sells, the commission is paid as follows: $20 plus the commission of the selling price in excess of the cost of the car (use a constant for $20). Typically, the minimum selling price of a car is the cost of the car plus $200 and the maximum selling price is the cost of the car plus S2,000 (Use constants of type int for this part). Write a program that prompts the user to enter the salesperson's fixed commission (double), the minimum and maximum amount to be added to the purchasing cost to determine the minimum and maximum selling price (both will be int), and outputs the minimum and maximum selling price of the car and the salesperson's commission range (double) Specifications In order to get full credit, your code must contain/perform the following . Variables and constants with correct type with meaningful names Comment your code, comment the variables, constants, and parts of code for input, output, and calculations . Program must compile and run with any input Sample Output -10-81-167-9: Asst02 VaskoDaGamer g++ Asst02.cpp u-10-81-167-9: Asst02 VaskoDaGamer ./a.out Enter the comission: 35.6 Enter the minimum to be added to car's price: 245 Enter the maximum to be added to car 's price 1034 Minimum selling price of a car $ 445 Maximum selling price of a car $ 3034 Profit range for salesperson $ 178.42 - 1100.1 u-10-81-167-9: Asst02 VaskoDaGamer ./a.out Enter the comission 25.9 Enter the minimum to be added to car's price: 567 Enter the maximum to be added to car 's price: 124!5 Minimum selling price of a car $ 767 Maximum selling price of a car $ 3245 Profit range for salesperson 218.653- $ 860.455
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