Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c language no no print LAB 3: TV & Home Theatre Problem Write a program to create a customers bill for a company. The company

c language no image text in transcribed
image text in transcribed
no print
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, $248.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? How many Projectors were sold? 5 QTY Description Unit Price Total Price TV XXXX.XX XXXXX.XX XX THEATRE SYSTEM XXXX.XX XXXXX.XX XX REMOTE CONTROLLER XXXX.XX XXXXX.XX DVR XXXX.XX XXXXX.XX Blu-Ray Disc Player XXXX.XX XXXXX.XX XX PROJECTOR XXXX.XX XXXXX.XX XX XX XX SUBTOTAL TAX TOTAL XXXXX.XX XXXXX.XX XXXXX.XX Criteria Criteria Prompt the user and input for the quantity of each item ordered. Calculations ->subtotal for each item ->subtotal of the bill ->tax on this subtotal ->total of subtotal plus tax Comments at top of source code: Include name, e-mail, and lab# as comments in code Signature (as separate function preferred): Include code to output name, date, and lab # to the output. Minimum of five (5) informative comments in main() and self-descriptive variable names Use a defined constant for the tax rate Use a memory constant for each unit price Output must be formatted exactly as shown on lab write-up with decimal points lined up. Copy and paste output forTest Data 2 as a comment at the bottom of your code. Your program will be tested with a different data set

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

Marketing Database Analytics

Authors: Andrew D. Banasiewicz

1st Edition

0415657881, 978-0415657884

More Books

Students also viewed these Databases questions

Question

Identify approaches to improving retention rates.

Answered: 1 week ago