Your consulting firm has been hired to develop a program that meets the following requirements. Your program must provide a menu to the user. This menu should list three different products of your choice. Once the user selects one product, they should specify which state they are located. The state choices should include CT, VT, WI, CA and WA. State taxes vary for each state (7.5%, 7.8%, 6.8%, 7.2% and 6.4%, respectively). The user should then specify the desired number of cases (assume there are 12 items per case). The appropriate state tax should be added to the total cost of the product (item quantity multiplied by unit price). Display the following to the user. Name of the product selected Number of cases Number of items Subtotal (units x price per unit) State tax (with the percentage and state abbreviation in parentheses) Total cost (subtotal plus state tax) a) Your program needs to include at least one repetition statement, one selection statement, Scanner class, and at least one array in this code. b) Appropriate calculations are necessary. c) Print out to the user the above bulleted items. Your assignment submittal should include your Java source code, class files, program design document including class diagrams and pseudocode.

As per the given specifications, our task is to develop a program that meets certain requirements. The program needs to provide a menu to the user, listing three different products. Once the user selects a product, they should specify the state they are located in, with options of CT, VT, WI, CA, and WA. Each state has a different tax rate: 7.5%, 7.8%, 6.8%, 7.2%, and 6.4% respectively.

The user should then be able to input the desired number of cases for the selected product, assuming that each case contains 12 items. The program should calculate the subtotal by multiplying the number of cases by the price per unit. Additionally, the appropriate state tax should be added to this subtotal. The final output should display the following details to the user:

– Name of the selected product
– Number of cases
– Number of items (calculated by multiplying the number of cases by 12)
– Subtotal (units x price per unit)
– State tax (with the percentage and state abbreviation in parentheses)
– Total cost (subtotal plus state tax)

In order to meet the requirements, the program should include at least one repetition statement, one selection statement, Scanner class, and at least one array. It should also perform the necessary calculations and print out the above-mentioned details.

For the delivery of the assignment, we need to provide the Java source code, class files, program design document (including class diagrams and pseudocode), and any other relevant files.

To create this program, we can start by implementing a menu system to display the three product options to the user. We can use a loop to repeatedly display the menu until the user selects a valid option. Once the user selects a product, they can then input their state’s abbreviation.

An array can be used to store the tax rates corresponding to the states. The selected state’s tax rate can be retrieved using the state abbreviation as an index in the array.

After obtaining the selected product, state, and number of cases, we can calculate the number of items by multiplying the number of cases by 12, the subtotal by multiplying the number of items by the price per unit of the selected product, and the state tax by multiplying the subtotal by the corresponding tax rate.

Finally, we can display the details to the user, including the selected product, number of cases, number of items, subtotal, state tax, and total cost.

By following these steps and considering the given requirements, we can develop a program that meets the specified criteria.

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Click Here to Make an Order Click Here to Hire a Writer