Program is to perform all the functions of super bazaar, C/C++ Programming

Program is to perform all the functions that are performed in a super bazaar:

class stock



    int itno;

    char itname[20];

    char brname[20];

    float utprice;

    int quantity;



    stock() //  constructor for assigning initial values



                strcpy(itname, "deodrant");

                strcpy(brname, "oriflame");




    void input();

    void info();

    void comp();



 void stock::input()



   cout<<" enter the item no. "<<"\n";


   cout<<" enter the name of commodity "<<"\n";


   cout<<" enter the brand name of the commodity "<<"\n";


   cout<<" enter the amount of quantity u want to purchase";



  void stock::info()





     cout<<" the commodity is available "<<"\n";




    cout<<" SORRY ! the stock has been finished ";





   void stock::comp()



    int net;

    net=quantity*utprice+10;// 10 taken as sales tax initially

    info(); // function called

    cout<<" the item number is: "<

    cout<<" the item name is: "<

    cout<<" the brand name of commodity is: "<

    cout<<" the  quantity is: "<

    cout<<" the unit price is: "<

    cout<<" net amount payable including sales tax (5%) is: "<



  void main()


    stock market;




Posted Date: 10/19/2012 5:30:34 AM | Location : United States

Related Discussions:- Program is to perform all the functions of super bazaar, Assignment Help, Ask Question on Program is to perform all the functions of super bazaar, Get Answer, Expert's Help, Program is to perform all the functions of super bazaar Discussions

Write discussion on Program is to perform all the functions of super bazaar
Your posts are moderated
Related Questions
What is Union? Intimately associated with the structure is the union which as well contains multiple members. Unlike a structure but the members of a union share the same stora

dispaly the last ant on rod

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b.     #include float start

Develop a C++ program that uses a while to determine the gross pay (in Dollars) for each of several employees. The company pays “straight-time” for the first 40 hours worked by ea

fine the class bankAccount to implement the basic properties of a bank account. An object of this class should store the following data: Account holder''s name (string), account nu

Provide me the answer, Can a constructor throws an exception? How to handle the error when the constructor fails?

You're going to simulate a metropolitan subway train.  The train system will start out at Station #1, or Home  Station, and will service multiple stations along its route.

how to use and what is implicit and explicit constructor

A: Method of passing arguments to a function that takes parameter of type reference.  for instance: void swap( int & x, int &amp;amp; y ) { int temp = x; x =

#include stdio.h #include math.h float discharge(float,float); void main()   {   char prompt;      float time,out,cr;   cr = 100e-6;   for (time = 0;time   {   /* call th