Question: Write a program that asks the user to enter the types of dark chocolate and the number of packages purchased at the SHSU@ACM freshly made

Write a program that asks the user to enter the types of dark chocolate and the number of packages purchased at the SHSU@ACM freshly made store. Make sure that you display the following chart for the user to make the selection. The plain base chocolate cost $5.00. The flavor and sweetness can be added to add on various rate.

Chocolate Intensity Percentage Flavor & Sweetness Cost Rate

1 - 25% Super Sweet 10%

26 - 50% Strong Sweet 15%

51 75% Mild Sweet 20%

76 95% Minimum Sweet 25%

*Note: If there are more than 6 package purchased, apply 25 percent for the total bill.

Your program needs to compute the sale amount (before adding tax) and the tax amount on a bill. The tax should be 8.25 percent of the total charge. Write a program that display the chocolate base charge per package of 3.5 oz, prompts the user to enter the chosen Flavor & Sweetness, number of chocolate that the customer wants to buy, then display the number of chocolate ordered, total base charge, additional cost, tax, and the total cost of the order.

Here is the sample as an output:

Chocolate Intensity Percentage Flavor & Sweetness Cost Rate

1 - 25% Super Sweet 10%

26 - 50% Strong Sweet 15%

51 75% Mild Sweet 20%

76 95% Minimum Sweet 25%

Chocolate Base Charge: $5.00

Flavor & Sweetness: Super Sweet

The number of chocolate ordered: 2

Base Charge: $10.0

Additional Cost: $1.0

Tax: $0.91

The total cost: $11.91

The language is java. Thank you

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!