new program

Anonymous
timer Asked: Jun 27th, 2018
account_balance_wallet $35

Question description

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.

Tutor Answer

phd.writer
School: UC Berkeley

Attached.
Attached.
Attached.

Running Head: JAVA TAX CALCULATOR

JAVA TAX CALCULATOR
NAME:
DATE:

1

TAX CALCULATOR

2
JAVA TAX CALCULATOR

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

flag Report DMCA
Review

Anonymous
Awesome! Exactly what I wanted.

Similar Questions
Hot Questions
Related Tags

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors