Write a program to create a customer’s bill for a company

Write a program to create a customer’s bill for a company. The company sells five computer gadgets which are CD, keyboard, printer, pen drive and speaker. The unit prices are RM60.00 per pack, RM130.00, RM850.00, RM65.00 and RM72.50, 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 3.25% sales tax. The input data consist of a set of integers representing the quantities of each items sold.

 

Example of the input is shown below:

 

How many pack of CDs were sold? 5
How many keyboards were sold? 120
How many printers were sold? 35
How many pen drives were sold? 235
How many speakers were sold? 83

QTY DETAILS UNIT PRICE (RM) TOTAL PRICE (RM)

—— ———— ———————– —————————

XX CD 60.00 XXXX. XX

XX KEYBOARD 130.00 XXXX. XX

XX PRINTER 850.00 XXXX. XX

XX PEN DRIVE 65.00 XXXX. XX

XX SPEAKER 12 .50 XXXX. XX

————————————————————————————————————-

SUBTOTAL : RM XXXXX. XX

TAX : RM XXXXX. XX

TOTAL : RM XXXXX. XX

 

 

 

Hint:
Use constant for the unit prices and the tax rate. To display the output format, use predefine function setw() and setprecision() in header file #include <iomanip. h>







Calculate Your Essay Price
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more

Order your essay today and save 10% with the coupon code: best10