Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A small retail company must file a monthly sales tax report listing the sales for the month and the amount of sales tax collected. (

A small retail company must file a monthly sales tax report listing the sales for the month and the amount of sales tax collected. (Note: make sure to read these specifications carefully!)Write a program that asks the user to enter values for the month name as a string, the year as an integer, and the total amount collected in sales (include sales tax) as a floating point value (float or double, your choice!).Assume the state sales tax is 6.75 percent and the county sales tax is 3.10 percent. If the total amount collected is known and the total sales tax is 9.85 percent, the amount of product sales may be calculated as:S=T1.0985Where, S is the product sales and T is the total income (product sales plus sales tax).When your user types in January in the prompt for the month, the user types in 2019 for the year, and the user types in 27562.90 for the total collected, the program should display a report similar to:Month: January 2019-------------------------------Total Collected: $ 27562.90Sales: $ 25091.40County Sales Tax: $ 777.83State Sales Tax: $ 1693.67Total Sales Tax: $ 2471.50

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

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Shamkant B. Navathe

7th Edition Global Edition

1292097612, 978-1292097619

More Books

Students also viewed these Databases questions

Question

Describe the procedure for revising periodic depreciation. LO9

Answered: 1 week ago