Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 pseudocode and Java program as necessary.
Your solution must include these components:
Flowchart
Pseudocode
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 $ 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 percent and the
county sales tax rate is two 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 to represent percent, and to
represent percent.Expected Output
Enter the amount of the purchase.
Purchase Amount: $
State Tax:
County Tax:
Total Tax:
Sale total:
Note: The numbers in your results will probably have only one
decimal place unless you format them to have two decimal places.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started