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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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