Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

use C language #include #include ONLY setpricision and /t NO printf thsnks USE setprecision and t LAB 3: TV & Home Theatre Problem Write a

use C language

#include

#include

ONLY setpricision and /t

NO printf thsnks
image text in transcribed
USE setprecision and \t
LAB 3: TV & Home Theatre Problem Write a program to create a customers bill for a company. The company sells only six products: TV, Theatre System, Remote Controller, DVR, Blu-Ray Disc Player, and projector. The unit prices are $379.00, $429.99, $35.20, $149.98, 5248.00 and $1300.00, respectively Prompt the user and input for the quantity of each product sold. Calculate the subtotal for each item and the subtotal of the bill. Catculate the tax on this subtotal. Last calculate the total of subtotal plus tax. How many TVs were sold? 3 How many Theatre System units were sold? 12 How many Remote Controller units were sold? 5 How many DVRs were sold? 3 How many Blu-Ray Disc Players were sold? 6 How many Projectors were sold? 5 QTY Description Unit Price Total Price TV XXXX.XX XXXXX.XX THEATRE SYSTEM . XXXXX.XX REMOTE CONTROLLER XXXX.XX XXXXX.XX DVR XXXX.XX XXXXX.XX XX Blu-Ray Disc Player XXXX.XX XXXXX.XX XX PROJECTOR . XXXXX.XX SUBTOTAL XXXXX.XX TAX XXXXX.XX TOTAL XXXXX.XX Checkpoints 1) Include name, e-mail , and lab# as comments in code and include code to output this information to the output. 2) Minimum of five (5) comments in main() 3) Use a defined constant for the tax rate (rate in your county) 4) Use a memory constant for each unit price 5) Output must be formatted exactly as above with decimal points lined up. Test Datal: 13,2,0, 1, 2, 21 Test Data 2: 0,10,1, 1, 2,1 XX XX XX XX

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

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

More Books

Students also viewed these Databases questions

Question

How do Excel Pivot Tables handle data from non OLAP databases?

Answered: 1 week ago