Program to display stock containing item code, C/C++ Programming

 THIS PROGRAM IS TO DISPLAY A STOCK CONTAINING ITEM CODE,ITEM NAME,PRICE AND ANOTHER STOCK WITH CODE & QUANTITY AND DISPLAY COMPLETE INFORMATION

#include
#include
#include
struct stock
  {
  int itemcode;
  char itemname[30];
  float unitprice;
  };

struct stock1
  {
  int itemcode;
  int quantity;
  };

void main()
    {
    clrscr();
    stock s[50];
    stock1 s1;
    float amt;
    int number;
    cout<<"enter the no. of items to be purchased : ";
    cin>>number;
    cout<    for(int i=0;i     {
     cout<<" Item code : ";
     cin>>s[i].itemcode;
     cout<<" Item name : ";
     gets(s[i].itemname);
     cout<<" Unit price of the item : ";
     cin>>s[i].unitprice;
     cout<     }
    cout<<"enter the item code of the item to be purchased : ";
    cin>>s1.itemcode;
    cout<<"enter the total quantity : ";
    cin>>s1.quantity;
    cout<
    for(i=0;i      {
      if (s[i].itemcode == s1.itemcode)
         {
         amt = s[i].unitprice * s1.quantity;
         clrscr();
         cout<<"\t B I L L "<<"\n\n";
         cout<<" item code  : "<         cout<<" item name  : "<         cout<<" unit price : "<         cout<<" quantity   : "<         cout<<"\n";
         cout<<" total amount  : "<         }
      else
        {
        clrscr();
        cout<<" THE ITEM IS NOT AVAILABLE ";
        }
      }
    getch();
    }

Posted Date: 10/22/2012 5:09:19 AM | Location : United States







Related Discussions:- Program to display stock containing item code, Assignment Help, Ask Question on Program to display stock containing item code, Get Answer, Expert's Help, Program to display stock containing item code Discussions

Write discussion on Program to display stock containing item code
Your posts are moderated
Related Questions
Project Description: I am seeking a developer who can start an app from scratch and get it delivered to me as soon as possible. It is a little android based app. A background on

A: The inline keyword tells the compiler to substitute the code in the function de_nition for each instance of a function call. Though, substitution takes place only at the compile

Need an indicator Project Description: Need an indicator which indicates target and trailing sl after entering trades. Skills required are C Programming, C++ Programming,

Program for calculate average of total marks: #include using namespace std; void print(int marks_arr[],int cnt) { int ind[cnt]; int i=0; int j=0; int k=0;

For Loop with inner loop

C o n t r o l S t r u c t u r e s I t i s o f t h r e e t y p e s: 1 .    S e qu e n c e s t r u c t u r e 2 .

Most first graders know that nine hundred and ninety nine plus one is one thousand, but C++ doesn't! Sure, a computer can easily compute 999 + 1 and get 1000. But reading and writi

w.a.p to find outWrite 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.

c-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_point, /

Get Reverse Engineer to Linux game routine analysis Project Description: I want a fast and efficient reverse engineer with good knowledge of assembly x86 language, strong rev