[1- The store sells five products (Laptops, Mobile-Phones, Smart-Watches, Digital-Diaries and PDAs) 2- Each product has a name (as provided in Q1), Price (Floating point number) and a BrandName (any string value). 3- A customer may purchase one or many products at a time. S/he has to provide the quantity of the product to be purchased, using console. 4- Total bill is generated as provided below: Product Name Brand Price Quatity Total Laptop Sony 50000 2 100000 Smart Watch Samsung 3000 3 9000 Digital Diary LG 8000 1 8000
Grand Total 117000 Write a function to get an array of products along with their quantities and store those on a file ‘Order.txt’. ]1
Aucun commentaire:
Enregistrer un commentaire