Answered step by step
Verified Expert Solution
Link Copied!

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 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.
image text in transcribed

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

Step: 3

blur-text-image

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

Learn To Program Databases With Visual Basic 6

Authors: John Smiley

1st Edition

1902745035, 978-1902745039

More Books

Students also viewed these Databases questions

Question

Understand the different approaches to job design. page 167

Answered: 1 week ago