Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ 5. Write a program to create a customer's bill for a company. The company sells four different products: TV, DVD Player, Blu Ray Player

C++ image text in transcribed
5. Write a program to create a customer's bill for a company. The company sells four different products: TV, DVD Player, Blu Ray Player and CD Player and the unit prices are $500.00, $230.00, $450.00 and $100.00 respectively. The program must read from the keyboard the quantity of each equipment purchased. It then calculates the cost of each item, the subtotal, and the total cost after an 8.75% sales tax. The input data consists of set of integers representing quantities of each item sold. The program must prompt for the user each quantity as shown below. The numbers in boldface italic show the user's answer. How many TVs were sold? How many DVD Players were sold? How many Blu Ray Players were sold? How many CS Players were sold? 3 2 The format of the output from the program is shown below. QTY DESCRIPTION UNIT PRICE TOTAL PRICE xx TV xx DVD Player xx Blu Ray Player 450.00 $500.00 $230.00 xxxx.xX XXXx.XX xx CD Player $100.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

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

Database Systems Design Implementation And Management

Authors: Carlos Coronel, Steven Morris

14th Edition

978-0357673034

More Books

Students also viewed these Databases questions

Question

=+ Is the information up to date?

Answered: 1 week ago