Java program for creating a order menu

Assignment Help JAVA Programming
Reference no: EM1379118

Give a detailed and workable Java Netbean or Java Notepad project!

Your consulting company has been hired to construct 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 percent, 6.8 percent, 7.2 percent and 6.4 percent, 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.

Reference no: EM1379118

Questions Cloud

Fixing errors in a java program : You coded the following on line ten of the class MyApplet.java:
Sequence of method in vector class : Construct a Vector class implementing a number of vector operations as methods along with a testing program to verify the class is working.
Java program to find a value at in index : Construct a main class named Array Program that generates an array of 50-integers, all ranging from one to one hundred.
Discuss primary financial statements : Discuss primary financial statements published by a corporation, the various classifications used in a balance sheet-What is the purpose of a Balance Sheet? What information does it provide?
Java program for creating a order menu : Assume your consulting company has been hired to construct a program that meets the following requirements.
Market entry cultural report : Market Entry Cultural Report - the reasons for your country of choice and the market entry strategy you recommend
Intrinsic and instrumental values : Exactly what will it imply to express which some thing offers worth? Its a method of stating it offers really worth.
What is the p-value of the regression : What is the p-value of the regression and can you reject the null hypothesis that there is no relationship between the variables at the 99% confidence level?
Difference in power and authority : According to what you have learned since you began your program of study at the University of Phoenix and through your continuing work experience, would you handle the situation differently or in the same way?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Implement a card game in java

In this assignment, you will be asked to implement a card game. You will need to make several design decisions for your code. It will be expected that all classes you write will utilize the principle of encapsulation.

  Write java program which will permit user to make selection

Write the Java Program which will permit the user to make selection. You will present user with two options to perform, then you will perform action selected by user.

  Java program simulate a network

Java program simulate a network

  Implement simple java program to input syllabus grades

To implement simple Java program to input (hypothetical) syllabus grades, computing and displaying both normal Mean and Harmonic Mean.

  Write a java applet for grade of gas in costco gas station

Write a java applet (not a java application program) for costco gas station. The applet will first ask you whether you are a costco customer, then the grade of gas you want to use.

  Write java program to store values retrieved from user-array

Write a Java program named Arrays6_2GF.java Use an array to store values retrieved from user input. The number of integers to be entered (the length of the array )should also be retrieved through user input.

  Create a project in eclipse

Create a new project

  Write a program that shows the current time and date

Write a program that shows the current time and date

  Simulate some people catching fish in a lake in java program

In this project, you will simulate some people catching fish in a lake. The purpose of the assignment is to get used to using Arrays as well as getting more experience in having objects interact together.

  Write a java program in a netbeans project

Write a Java program in a NetBeans project

  Java program to create a tree

Java program to create a tree, generate class - BottomUpTwoThreeFourTree, BottomUpTwoThreeFourTree,

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd