write a program to create a customer's bill for Ms.B's Desk-Shop. ms. B sell only three items: grater-cake, icy-mints and corn-sham, which she persoally delivers to ezch customer upon accepting their phone order. The unit prices are $50, $10 and $30 respectively, with delivery charge of 10% on the total cost of the items purchased. The program should be designed according to the input and output below:
Enter the number of grater-cakes: 4
Enter the number of icy-mints: 0
Enter the number of corn-shams: 2
QTY ITEM UNIT PRICE TOTAL PRICE
-------------------------------------------------------------------------------
4 Grater-cake 50.00 200.00
0 Icy-mint 10.00 0.00
2 Corn-Sham 30.00 60.00
---------------------
Subtotal 260.00
Delivery 26.00
--------------------
Total 286.00
============
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
STUDENT#101 -2 Newbie Poster
twomers 408 Posting Virtuoso
grumpier 149 Posting Whiz in Training
Denniz 103 Posting Pro in Training
bhoot_jb 47 Junior Poster in Training
Freaky_Chris 299 Master Poster
Gribouillis 1,391 Programming Explorer Team Colleague
chococrack 74 Junior Poster
Ancient Dragon commented: Genious :) +36
twomers commented: It's <cdignity> strictly for C++, but I approve of this level of cynicism with only 5 posts. Good work! +6
bhoot_jb commented: good program :D +1
TheBeast32 54 Posting Whiz in Training
plumsauce 0 Newbie Poster
dougy83 74 Posting Whiz in Training
Freaky_Chris 299 Master Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
ff4930 24 Junior Poster in Training
ithelp 757 Posting Virtuoso Banned
Ellisande 0 Junior Poster in Training
chococrack 74 Junior Poster
STUDENT#101 -2 Newbie Poster
Ezzaral commented: Epic fail. -2
skatamatic 371 Practically a Posting Shark
FireNet 64 Posting Whiz in Training
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Denniz 103 Posting Pro in Training
ithelp 757 Posting Virtuoso Banned
VBNick 3 Junior Poster
rhoit 0 Junior Poster in Training
VernonDozier 2,218 Posting Expert Featured Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.