W.A.P. C++

WAP | CPP | Programs in C++ | C++ Solutions

Write a program to store product number, price of each item, & quantity and calculate total ammount, then find disocunt at 30% and Generate bill

Product number, price of each item and quantity are taken from the user and dicount and net ammount is calculated.
Bill is Displayed as follows:
Product ID:
Total ammount:
Net ammount:
Select To use this code as it is.. select and copy paste this code into code.cpp file :)
  1. #include <iostream.h>
  2. #include <conio.h>
  3. void main()
  4. {
  5. clrscr();
  6. int id,qty;
  7. float tot,amt,price,dis;
  8. cout<<"Enter Product ID: ";
  9. cin>>id;
  10. cout<<"Please Enter Quantity: ";
  11. cin>>qty;
  12. cout<<"Please Enter Price per ITEM: INR ";
  13. cin>>price;
  14. tot=qty*price;
  15. dis=.3*tot;
  16. amt=tot-dis;
  17. //Coding by: Snehil Khanor
  18. //http://WapCPP.blogspot.com
  19. cout<<"\n\n\nProduct ID: "<<id<<"\nQuantity: "<<qty<<"\nPrice Per ITEM: INR
  20. "<<price<<"\nTotal amt: INR "<<tot<<"\nDiscount @ 30% : INR "<<dis<<"\nNet
  21. Ammount: INR "<<amt;
  22. getch();
  23. }



About WAP C++

Here you'll find a wide range of programs' solution ranging from beginer level to advanced level.
All programs here are made, compiled and tested by me..and are running absolutely fine.. still if you find any bug in any program do let me know :)


Subscribe via email

Enter your email address:

Delivered by FeedBurner

my Binary Log

Blog Archive

eXTReMe Tracker