tojikh
Messages postés1Date d'inscriptionjeudi 19 avril 2007StatutMembreDernière intervention19 avril 2007
-
19 avril 2007 à 09:39
cs_rt15
Messages postés3874Date d'inscriptionmardi 8 mars 2005StatutModérateurDernière intervention 7 novembre 2014
-
20 avril 2007 à 12:55
Hi Frinds,
I dont know French, but i liked you site when ihav seen thru google translation tools.
My dear friends i need a simple programme in C++, because i dont know C++, but i need it badly...........so see if someone can give his valuable minutes................ thankxxx
NEED A SOURCE CODE FOR
a C++ program that will find out the total amount of a customer's bill according to the items purchased.
Create two classes: Purchased_item, Bill
The Purchased_item should be having the following data members
<?xml:namespace prefix o ns "urn:schemas-microsoft-com:office:office" /??>
" item_num //for item number
note: item_num //should be static. This data member will be used to display the item number whose information is currently required from the user
" price //for per unit price
" quantity //for quantity purchased
class Bill should have two data members
" total_amount //for the total amount of bill that is to be paid
" items[5] //an array of purchased_item; should be 5 in size
class Bill should also have a member function that is used to calculate the total amount and assign it to the data member , total_amount
Your program should take input of the price and quantity of 5 items and display the total amount after calculation.