The CarMin dealership has approached you to write a program to keep track of the sales commissions paid to the sales team each time they sell a used car. The amount of the commission that a salesperson earns is based on the type of vehicle sold. Currently CarMin is trying to incentivize it salesforce to try and sell Hybrids and SUVs because these vehicles generate the most profit within the dealership. vehicle types have the highest commissions. These Vehicle Type Bonus Commission Hybrid 4.0% of Selling Price Coupe 1.5% of Selling Price Sedan  1.5% of Selling Price SUV 3.0% of Selling Price  Minivan 2.5% of Selling Price   Create a program for use by the sales manager to track commissions by vehicle type. It is unknown how many cars the dealership will sell in a given month. The program should allow the manager to continuously enter a vehicle type and selling price each time a vehicle is sold. You must validate the vehicle type and selling price using appropriate validation. If any validations fails you should provide an error message and re-prompt the manager. Once the manager has indicated they are finished entering sales, display a well-formatted report containing a list of each vehicle type along with:   total sold   total sales   total commissions earned   average commission earned.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter6: Looping
Section: Chapter Questions
Problem 2CP
icon
Related questions
Question

The CarMin dealership has approached you to write a program to keep track of the sales commissions paid to the sales team each time they sell a used car. The amount of the commission that a salesperson earns is based on the type of vehicle sold. Currently CarMin is trying to incentivize it salesforce to try

and sell Hybrids and SUVs because these vehicles generate the most profit within the dealership. vehicle types have the highest commissions.

These

Vehicle Type

Bonus Commission

Hybrid 4.0% of Selling Price

Coupe 1.5% of Selling Price

Sedan  1.5% of Selling Price

SUV 3.0% of Selling Price 

Minivan 2.5% of Selling Price

 

Create a program for use by the sales manager to track commissions by vehicle type. It is unknown how many cars the dealership will sell in a given month. The program should allow the manager to continuously enter a vehicle type and selling price each time a vehicle is sold. You must validate the vehicle type and selling price using appropriate validation. If any validations fails you should provide an error message and re-prompt the manager.

Once the manager has indicated they are finished entering sales, display a well-formatted report containing a list of each vehicle type along with:

  •   total sold

  •   total sales

  •   total commissions earned

  •   average commission earned.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,