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.
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?
|