JAVA CODE is needed for this answer. Please you cannot import java.util.Scanner. You can only import JOptionPane. Thank you 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. These vehicle types have the highest commissions. 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. Sample Output: Other Requirements: • Your solution must demonstrate the concept of one-dimensional arrays. • Your solution must not use methods other than main. They are not required for this assignment. • Your solution must not import any Java library other than JOptionPane, including java.util.Arrays. • Your solution must contain appropriate validation. Try to think about what might be considered appropriate as you are designing your solution beyond what has already been explicitly provided.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

JAVA CODE is needed for this answer. Please you cannot import java.util.Scanner. You can only import JOptionPane. Thank you

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. These
vehicle types have the highest commissions.
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.

Sample Output:
Other Requirements:
• Your solution must demonstrate the concept of one-dimensional arrays.
• Your solution must not use methods other than main. They are not required for this assignment.
• Your solution must not import any Java library other than JOptionPane, including
java.util.Arrays.
• Your solution must contain appropriate validation. Try to think about what might be considered
appropriate as you are designing your solution beyond what has already been explicitly
provided.

Sample Output:
Message
A Type | #of Sales | Total Sales | Total Commissions | Avg Commissions
31 $62,000.00
21 $70,000.00
21 $55,500.00
31 $210,000.00
| $930.00
I $1,050.00
I $2,220.00
| $6,300.00
| $310.00
I $525.00
| $1,110.00
I $2,100.00
Coupe I
Sedan
Hybrid I
SUV
OK
Transcribed Image Text:Sample Output: Message A Type | #of Sales | Total Sales | Total Commissions | Avg Commissions 31 $62,000.00 21 $70,000.00 21 $55,500.00 31 $210,000.00 | $930.00 I $1,050.00 I $2,220.00 | $6,300.00 | $310.00 I $525.00 | $1,110.00 I $2,100.00 Coupe I Sedan Hybrid I SUV OK
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 6 images

Blurred answer
Knowledge Booster
Development strategies
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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education