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

  Prepare program to check the syntax of the english language

Determine the form of the output dependent on the coefficients being input. Print and evaluate with peers in class."

  Accomplish the preceding task

However, the customer details maintenance application crashed as Dwayne mistakenly entered the wrong file path. Therefore, he asks Elina to modify the application so that it does not crash due to similar errors. Modify the code that Elina needs to ..

  The agricultural activities that contribute to a global

The agricultural activities that contribute to a global increase of greenhouse gases in the atmosphere.

  Write a c program that will read the required values

Write a C program that will read the required values from the input file, compute the hole to depth ration, the ideal number of sticks, the ideal powder charge, the actual powder charge, and the actual number of sticks.

  The funtion should take as parameters

Write a function in c ++ that multiplies two functions. the funtion should take as parameters two fraction structures. Then, the function should multiply the two fractions and return the solution as a fraction structure.

  Create a coke machine program in c++

We will start by having the users insert their money. Since they can not physically insert the money, we will just ask them how much they wish to insert and we will keep track of how much money they have inserted.

  A minivan has two sliding doors

A minivan has two sliding doors.  Each door can be opened by either a dashboard switch, its inside handle, or its outside handle. However, the inside handles do not work if a child lock switch is activated.  In order for the sliding doors to open, th..

  What is the output of the program below

What is the output when the following code fragment is executed?

  Practice with c functions

This homework will give you practice with C++ functions as well as string manipulation.

  Make a c program that will calculate the gross pay

Write a C program that will calculate the gross pay of a set of employees. For each employee the program should prompt the user to enter the clock number, wage rate, and number of hours as shown below.

  Write another main function create three bank accounts

Write another main function - in this function create three bank accounts, then prompt the user to enter a bank account number, if the account number matches one on the three accounts then display the following menu otherwise allow the user to ent..

  Definition of two queues

Write a code in C lenguage for the definition of two queues, one to hold the process in ready state and one to hold the process in waiting state. The queue should be designed to manage a process structure. Please comment the code.

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