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. 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. Your solution may not use any functions or language constructs not covered during this semester’s IT 106 without prior authorization from your instructor, even if you know other functions or language constructs. We want everyone to be on the same "playing field", regardless of previous programming exposure, and get practice with algorithmic design to solve problems (the intent of the course). Using something existing not discussed in class does not give you as much practice as solving the problem yourself. Doing this may lead to a substantial grade penalty, a grade of zero, or an Honor Code inquiry. When in doubt, ask! 1) Create a defining diagram that shows the input, processing, and output 2) Create a solution algorithm using pseudocode 3) Show testing using the desk checking table method, to include test data, expected results, and a desk checking table. Make sure your desk checking considers multiple cases including both valid and invalid test data to prove your algorithm will work in all cases
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
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.
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.
-
Your solution may not use any functions or language constructs not covered during this
semester’s IT 106 without prior authorization from your instructor, even if you know other functions or language constructs. We want everyone to be on the same "playing field", regardless of previous programming exposure, and get practice with algorithmic design to solve problems (the intent of the course). Using something existing not discussed in class does not give you as much practice as solving the problem yourself. Doing this may lead to a substantial grade penalty, a grade of zero, or an Honor Code inquiry. When in doubt, ask!
-
1) Create a defining diagram that shows the input, processing, and output
-
2) Create a solution
algorithm using pseudocode -
3) Show testing using the desk checking table method, to include test data, expected results, and a desk checking table. Make sure your desk checking considers multiple cases including both valid and invalid test data to prove your algorithm will work in all cases
Trending now
This is a popular solution!
Step by step
Solved in 2 steps