Explore BrainMass
Share

Creating order menu using Java

This content was STOLEN from BrainMass.com - View the original, and get the already-completed solution here!

Please provide a detailed and workable Java Netbean or Java Notepad project!

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 five 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). Next, using the Math class random method, generate 20 numbers ranging between 1-100. Ensure there are no duplicates.

Display the following to the user.
• Name of the product selected
• Number of cases
• Number of items
• Subtotal (units * price per unit)
• State tax (with the percentage and state abbreviation in parentheses),
• Total cost (subtotal plus state tax)
• The table of random numbers displayed in a table of five numbers per row

Requirements:
You need to use at least one repetition statement, one selection statement, Scanner class, at least one array and the random method in this code. For generating random numbers you should use the random () static method of class Math. It returns a double so you will need to cast it as an integer. For example,
number = (int) ( range * Math.random () ) + 1;
Your assignment submittal should include your Java program with commented Java source code files.

© BrainMass Inc. brainmass.com October 25, 2018, 9:12 am ad1c9bdddf
https://brainmass.com/computer-science/java/creating-order-menu-using-java-567349

Solution Summary

The solution gives a complete JAVA code for creating a order menu. Both .java and .class files are given.

$2.19
See Also This Related BrainMass Solution

JAVA

Write the program in Java (with a graphical user interface) and have it calculate and display the mortgage payment amount from user input of the amount of the mortgage, the term of the mortgage, and the interest rate of the mortgage. Allow the user to loop back and enter new data or quit. Please insert comments in the program to document the program.

Do not use NetBeans to generate GUI.

View Full Posting Details