Question: Directions This exercise requires designing a program which solves the problem described in the problem statement below. Provide comments in your pseudo - code and

Directions
This exercise requires designing a program which solves the
problem described in the problem statement below. Provide
comments in your pseudo-code and Java program as necessary.
Your solution must include these components:
Flowchart
Pseudo-code
Program coded
Program output
At the top of the program, please include comments, that have
these items: A vendor sells Fresh From Florida Strawberries at $2 per pound.
Design a program that will ask the user to enter the weight of a
purchase in pounds. The program should then compute the total
price, state and county sales tax.
Assume the state sales tax rate is four (4) percent and the
county sales tax rate is two (2) percent.
The program should display the:
a. Amount of the purchase
b. The state sales tax amount
c. The county sales tax amount
d. The total sales tax amount
e. Total of the sale (which is the sum of the amount of
purchase plus the total sales tax amount)
Hint: Use the value 0.02 to represent 2 percent, and 0.04 to
represent 4 percent.Expected Output
Enter the amount of the purchase.
10
Purchase Amount: $20.00
State Tax: 0.80
County Tax: 0.40
Total Tax: 1.20
Sale total: 21.20
Note: The numbers in your results will probably have only one
decimal place unless you format them to have two decimal places.
 Directions This exercise requires designing a program which solves the problem

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!