Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Lab assignment Write a program to create a customers bill for a company. The company sells only five different products: TV, VCR, Remote Controller, CD

Lab assignment Write a program to create a customers bill for a company. The company sells only five different products: TV, VCR, Remote Controller, CD Player, and Tape Recorder. The unit prices are $400.00, $220.00, $35.20. $300.00, and $150.00, respectively. The program must read from the keyboard the quantity of each piece of equipment purchased. It then calculates the cost of each item, the subtotal, and the total cost after an 8.25% sales tax. The input data consists of integers representing the quantities of each item sold. These integers must be input into the program in a user-friendly way; that is the program must prompt the user for each quantity as shown below. The numbers in boldface italic show the users answers.

How many TVs were sold? 3

How many VCRs were sold? 5

How many remote controllers were sold? 1

How many CDs were sold? 2

How many tape recorders were sold? 4

------------ image text in transcribed

IN C++

The format for the output from the program is shown below: QTY DESCRIPTION UNIT PRICE TOTAL PRICE TV VCR REMONT CTRLER CD PLAYER TAPE RECORDER 400.00 220.00 35.20 300.00 150.00 SUBTOTAL TAX TOTAL

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

Relational Database Design A Practical Approach

Authors: Marilyn Campbell

1st Edition

1587193175, 978-1587193170

More Books

Students also viewed these Databases questions

Question

Ty e2y Evaluate the integral dy

Answered: 1 week ago