Question
This lab requires you to think about the steps that take place in a program by writing algorithms. Read the following program prior to completing
This lab requires you to think about the steps that take place in a program by writing algorithms. Read the following program prior to completing the lab.
A retail company must file a monthly sales tax report listing the total sales for the month and the amount of state and county sales tax collected. The state sales tax rate is 4 percent and the county sales tax rate is 2 percent. Write a program that asks the user to enter the total sales for the month. The application should calculate and display the following:
The amount of county sales tax
The amount of state sales tax
The total sales tax (county plus state)
Step 1: Examine the following algorithm.
Get the total sales for the month.
Multiply the total sales by .04 to calculate the state sales tax.
Multiply the total sales by .02 to calculate the county sales tax.
Add the state tax and county tax to calculate the total sales tax.
Display the calculated county tax, state tax, and total sales tax.
Step 2: Given a total sales of $27,097, answer the following:
What is the calculated state tax? _______________________________________
What is the calculated county tax? _____________________________________
What is the calculated total tax? _______________________________________
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