Assignment: Programming
Assignment: Programming
PROGRAMMING
FUNDAMENTALS
Submitted By:
Sidra Bashir
BT 15012
Submitted To:
Sir Irfan Ahmed
// INVENTORY MANEGMENT SOFTWARE
#include<iostream.h>
#include<conio.h>
#include<stdlib.h>
void main()
clrscr();
int m[100],b[100],o[100],ca,total[100],choice,n,i,id,dis,amount,discount;
char ch,c,s,se;
cout<<endl<<endl;
cout<<endl;
cout<<endl;
start :
getch();
clrscr();
cout<<endl<<endl;
switch(choice)
case 2:
exit(0);
break;
case 1:
cin>>ch;
getch();
clrscr();
cout<<endl<<endl;
switch(ch)
case 'q':
case 'Q':
exit(0);
break;
case 'e':
case 'E':
b:
cin>>n;
getch();
clrscr();
cout<<endl<<endl;
cout<<endl;
cout<<endl;
cin>>m[i];
cin>>o[i];
cout<<" Enter amount of bananas to purchase : ";
cin>>b[i];
cout<<endl<<endl;
getch();
clrscr();
cout<<endl<<endl;
cin>>c;
getch();
clrscr();
cout<<endl;
switch(c)
{
case 'e':
case 'E':
exit(0);
break;
case 'b':
case 'B':
goto b;
case 'w':
case 'W':
getch();
clrscr();
cout<<endl<<endl;
cout<<" Press V for voucher : "<<endl;
cin>>s;
getch();
clrscr();
cout<<endl<<endl;
switch(s)
case 'e':
case 'E':
exit(0);
break;
case 'v':
case 'V':
cin>>id;
cin>>dis;
if(i==id)
discount = total[i]*dis/100;
amount = total[i]-discount;
clrscr();
cout<<endl<<endl;
cout<<endl;
cout<<" ====================================================================
"<<endl;
cout<<" ====================================================================
"<<endl;
cout<<endl;
cout<<endl;
cout<<" ====================================================================
"<<endl;
getch();
clrscr();
cout<<endl<<endl;
cin>>se;
getch();
clrscr();
cout<<endl<<endl;
switch(se)
case 's':
case 'S':
cin>>ca;
getch();
clrscr();
cout<<endl<<endl;
if(i==ca)
case 'r':
case 'R':
goto start;
case 't':
case 'T':
exit(0);
break;
getch();
clrscr();
} }
getch();
}
*************************************************************************************
*************************************************************************************