Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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_2

Step: 3

blur-text-image_3

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2019 Wurzburg Germany September 16 20 2019 Proceedings Part 2 Lnai 11907

Authors: Ulf Brefeld ,Elisa Fromont ,Andreas Hotho ,Arno Knobbe ,Marloes Maathuis ,Celine Robardet

1st Edition

3030461467, 978-3030461461

More Books

Students also viewed these Databases questions