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 commissionspaid to the sales team each time they sell a used car. The amount of the commission that a salespersonearns is based on the type of vehicle sold. Currently CarMin is trying to incentivize it salesforce to tryand sell Hybrids and SUVs because these vehicles generate the most profit within the dealership. Thesevehicle types have the highest commissions.Vehicle Type Bonus CommissionHybrid 4.0% of Selling PriceCoupe 1.5% of Selling PriceSedan 1.5% of Selling PriceSUV 3.0% of Selling PriceMinivan 2.5% of Selling PriceCreate a program for use by the sales manager to track commissions by vehicle type. It is unknown howmany cars the dealership will sell in a given month. The program should allow the manager tocontinuously enter a vehicle type and selling price each time a vehicle is sold. You must validate thevehicle type and selling price using appropriate validation. If any validations fails you should provide anerror message and re-prompt the manager.Once the manager has indicated they are finished entering sales, display a well-formatted reportcontaining 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, includingjava.util.Arrays.• Your solution must contain appropriate validation. Try to think about what might be consideredappropriate as you are designing your solution beyond what has already been explicitlyprovided.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here