Your program must provide a menu to the user this menu

Assignment Help Computer Engineering
Reference no: EM13462815

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 . The user should then specify the desired number of cases . The appropriate state tax should be added to the total cost of the product . 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

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.
  • This assignment will also be assessed using additional criteria provided here.
  • Objective       
  • Use loops and decision structures in programs   
  • Design and create programs using control structures    
  • Use arrays, strings, and other common data types

Reference no: EM13462815

Questions Cloud

Describe the history or background of the illness : write a 1300- to 1650-word paper including the following middot explain the history or background of the illness
What types of devices are available today to secure a : write a 2-4 page paper on network security your paper should include the following topicsmiddot how a secure
Use information from the modular background readings as : use information from the modular background readings as well as any good quality resource you can find. please cite
When implementing a new system there are many different : when implementing a new system there are many different models that a company can choose to follow sdlc rad prototyping
Your program must provide a menu to the user this menu : your program must provide a menu to the user. this menu should list five different products of your choice. once the
Give your own definition of the discipline explain the : environmental psychology is likely to be a new field for you although many of the concepts are probably familiar.
Describe how firewalls mitigate some network attack : write a 2- to 4-page paper that includes the following based on your organizationcreate a 7-10 slide powerpoint
Explain the two most memorable areas of service and : choose a recent experience in one of three areas of the hospitality industry food service lodging or travel and
Write down a 350- to 700-word essay comparing the : write a 350- to 700-word essay comparing the similarities and differences between virtue theory utilitarianism and

Reviews

Write a Review

Computer Engineering Questions & Answers

  Create a blacklist file and put it in the proper directory

A brief summary comparing the rule-based and preprocessor-based approaches used in Homework Assignments #2 and #3, with an emphasis on identifying any strengths or weaknesses associated with each approach.

  Program would update the account to reflect payment

After discussing this with your uncle, you agree to set up a computer and make a program that would keep track of his clients. It would calculate the bills and print invoices that would be mailed to the clients. It will also keep track of the clie..

  Define what is internet storage

You would like to save the digital pictures you took on vacation onto your hard drive, but it would take up too much storage space. You have heard you can enhance your computer's storage capacity by using Internet storage.

  Establish separation of duties via role assignment

Setting security for each employee based on the specific role provides the tightest and most personalized security. The trade-off is increased amount of administration effort when setting up the specific roles to use and the access permitted for ea..

  What are major characteristics of modern multimedia system

What are the major characteristics of a modern multimedia system? What is the most important characteristic in your opinion?

  Implementing type parameterization in java

Do some investigation and explore whether C# requires that all objects be allocated from the heap and how it approaches type parameterization.

  Creating the method

Assume we wish to form a method for class BinaryTree which decides whether two trees have same structure. The header of the method could be as follows: public boolean isIsomorphic(BinaryTreeInterface otherTree).

  Cashregister requires to support a method void undo()

imagine the CashRegister needs to support a method void undo() that undoes the addition of the preceding item. This enables a cashier to quickly undo a mistake. What instance variables should you add to the CashRegister class to support this modif..

  Give an example that describes how you have used

you use the concepts of abstraction and encapsulation every day. you may call it understanding the bigger picture or

  Develop a program to read a list of words as input

Develop a program to read a list of words as input. As these words are read store them into a dynamically allocated binary search tree. After all words are stored do a "pre-order" traversal of the tree.

  How to generate 2 instances of time and date

generate an application that uses both Time and Date classes How to generate 2 instances of Time and Date

  Express and give an example of a web database.

Explain the difference between system design and system analysis.

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