Consulting firm hired to develop a program

Assignment Help C/C++ Programming
Reference no: EM13939920

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.

 

Reference no: EM13939920

Questions Cloud

Net income available to common stockholder plus depreciation : Assume NEWC has an investment opportunity (similar to the air bag opportunity in Other People's Money).The firm can spend $325 Million on refurbishing its wire and cable plant to develop a product that will be sold in packets or units of twenty. Assu..
Joint products a and b are produced in a single operation : Joint products A and B are produced in a single operation from Material M. 500 gallons of Material M, costing $550, produced 333 gallons of Product A, selling for $3 per gallon, and 167 gallons of Product B, selling for $7 per gallon.
Report for an educational organization on the development : Write a report for an educational organization on the development of a high quality and sustainable e-Learning environment. In the report you should: Identify your vision for e-Learning within the educational institution; briefly explain how this ..
Class arrayprogram that generates an array of fifty integers : If the user does enter an integer, call a method named returnIndexValue to return the integer at the specified index in the array
Consulting firm hired to develop a program : 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..
Roles of resiliency and reactionary planning : Compare and contrast the roles of resiliency and reactionary planning in a counterterrorism strategy. Provide at least two examples of each type of planning
Magnetic resonance imaging : Magnetic Resonance Imaging is one of most important imaging technique, however, it still needs a lot of improvement to enhance the quality of the image and reduce time. In this report, the issue that has been focus on is who to reduce time of reco..
Whether economic indicators such as gdp : Write an economics dissertation on the topic of 'whether economic indicators such as GDP, inflation etc have a significant effect on General Election Outcomes in the Uk.
Statements must be true about these securities : Stock A's beta is 1.7 and Stock B's beta is 0.7. Which of the following statements must be true about these securities?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Software implementation of a simple three rotor enigma

Write a software implementation of a simple three rotor Enigma Machine. Please refer to the following wikipedia entries for the Enigma Machine and the Enigma Rotor details.

  Employer structures and utilize constructors

Variables and member functions are the building blocks of a class and are passed on to the objects created by that class. explains these building blocks of classes but first introduces you to structures; objects that are similar to class objects e..

  Lab9 c c programplease use functions there is the details

c program ltbrgtplease use functions ltbrgtthere is the details on the attachment.zip file needs to rework on this

  Performance of disk memory system

Suppose a regional computer centre A wants to evaluate the performance of its disk memory system. One measure of performance is the average time between failures of its disk drive. To estimate this value, the centre recorded the time between failu..

  Define a string of four characters and converts

Write an assembly program that defines a string of four characters and converts it into an unsigned 16-bit integer.

  Keep track of the size of the array

Keep track of the size of the array so that you cannot exceed the array boundaries. The implementation details (i.e. the private members)of your class are up to you, but the class should have the following public interface

  Write the prototype and header for a function

Write the prototype and header for a function called calculate. The function should have three parameters: an int, a reference to a double, and a long (not necessarily in that order). Only the int parameter should have a default argument, which is..

  Replace the algorithm used in the current solution

Replace the algorithm used in the current solution by one that runs twice as fast and run it on the current technology, or

  Questions of c programming

Write a program in C++ to ask the user to input a set of characters, one at a time separated by the carriage return (Enter). Each character, as well as, its corresponding ASCII value should be stored in a linked list node.

  An assembly program to determine the price of a car rental

an Assembly program to determine the price of a car rental

  Calculate the hypotenuse of a triangle

Pythagorean Theorem.  Use the Pythagorean Theorem to calculate the hypotenuse of a triangle given two sides.  Suppose the input sides can make a triangle.

  C++ programming to add-subtract-multiply or divide two no

create a text-based, menu-driven program that allows the user to choose whether to add, subtract, multiply or divide two numbers. The program should then input two double values from the use, perform the appropriate calculation, and display the re..

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