Develop a program that meets the following requirements.

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

Please provide a detailed and workable Java Netbean or Java Notepad project!

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: EM13939928

Questions Cloud

Evaluating a project for the tiff-any golf club : You are evaluating a project for The Tiff-any golf club, guaranteed to correct that nasty slice. You estimate the sales price of The Tiff-any to be $460 per unit and sales volume to be 1,000 units in year 1; 900 units in year 2; and 1,325 units in ye..
Amount of recorded interest expense : A company issued five-year, 7% bonds with a par value of $175,000. The market rate when the bonds were issued was 6.5%. The company received $198,975 cash for the bonds. Using the straight-line method, the amount of recorded interest expense for the ..
Create a virus scanner for files : This is a nice little assignment that requires a short description. Wants you to use the generator linked from my website to make a bunch of COM files. You will then create a virus scanner for these files in C/C++.
What would your cash flow be for each year for next two year : You own 1,100 shares of stock in Avondale Corporation. You will receive a $1.50 per share dividend in one year. In two years, Avondale will pay a liquidating dividend of $45 per share. The required return on Avondale stock is 20 percent. If you would..
Develop a program that meets the following requirements. : Your consulting firm has been hired to develop a program that meets the following requirements.
What is the chinese model : Hence, what is the Chinese model? And is the developmental state a viable alternative growth model for the countries of the South? Is it a serious challenger to free market capitalism
Climate disclosure standards board discussion paper : Critically analyse the boundaries proposed by IR and CDSB identify any potential conflicts, potential similarities and identify the role of accounting in providing the required non-financial information for both proposals.
Define the term radiopharmaceutical : Question A: Define the term Radiopharmaceutical. Question B: Describe the production of two different radioisotopes for medical imaging purposes.
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..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Construct an er diagram

Finally, the company is required by its insurers to maintain a record of the position of each vessel; its port and date of departure, destination and estimated date of arrival; number of officers, total number on board, and total value of cargo ca..

  Write a program that uses a recursive method

Write a program that uses a recursive method to check whether a string is a palindrome and A palindrome is a string that reads the same both forward and backward.

  Application to accept the name of a folder

Therefore, she asks Hayley to modify the application to accept the name of a folder and display the following details of the files located in the folder: File name File size File creation date. Write the code that Hayley should write to create the..

  About recursion that makes it useful tool

What is it about recursion that makes it a useful tool when working with trees?

  Write a program for find greatest common divisor

Write code for a recursive implementation of Euclid's algorithm

  Write the definitions of the functions

Write the definition of the function setZero that initializes any one-dimensional array of type int to 0.

  C++ program that prompts the user to enter a length in feet

If the user enters a negative number or a non-digit number, throw and handle an appropriate exception and prompt the user to enter another set of numbers.

  You will write a program that reads a text file

You will write a program that reads a text file, counts the number of words in the file, and the number of occurrences of each character. It will print to a file the number of words, and the number of occurrences of each character, as well as the ..

  Write a c program to do the followingwrite a program that

write a c program to do the followingwrite a program that reads a data file of floating numbers into an array and

  How to implement member functions in c++

I am having a dificult time understanding Classes in C++ and how to implement member functions. Given the attached code I need to:

  What is the estimated net operating income

What is the estimated net operating income for July, if the company always uses an estimated predetermined plantwide overhead rate of $7 per direct labor-hour?

  Write a c++ program to draw the five olympic rings

Write a C++ program to draw the five Olympic rings. Make the circles have a thickness of 5 pixel

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