Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 three 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).

Display the following to the user.

Name of the product selected

Number of cases

Number of items

Subtotal (units x price per unit)

State tax (with the percentage and state abbreviation in parentheses)

Total cost (subtotal plus state tax)

a) Your program needs to include at least one repetition statement, one selection statement, Scanner class, and at least one array in this code.

b) Appropriate calculations are necessary.

c) Print out to the user the above bulleted items.

Your assignment submittal should include your Java source code, class files, program design document including class diagrams and pseudocode.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Administrator Limited Edition

Authors: Martif Way

1st Edition

B0CGG89N8Z

More Books

Students also viewed these Databases questions

Question

Discuss the Rights issue procedure in detail.

Answered: 1 week ago

Question

Explain the procedure for valuation of shares.

Answered: 1 week ago

Question

Which months of this year 5 Mondays ?

Answered: 1 week ago

Question

Define Leap year?

Answered: 1 week ago