Professional Documents
Culture Documents
Menu Driven C++
Menu Driven C++
#include<iostream.h>
#include<conio.h>
#include<iomanip.h>
int table(void);
int year(void);
float greatest(void);
int welcome(void);
float calc(void);
int evenodd(void);
void main()
welcome();
int welcome(void)
clrscr();
int choice1;
clrscr();
cout<<setw(60)<<"* * * * WELCOME * * * *\n\n\n\n\n\n\n";
cout<<setw(40)<<"1.CALCULATOR.\n\n";
NO.'s.\n\n";
NO.'s.\n\n";
cout<<setw(37)<<"6.TO EXIT.\n\n";
cin>>choice1;
switch(choice1)
case 1:calc();
break;
case 2:evenodd();
break;
case 3:greatest();
break;
case 4:table();
break;
case 5:year();
break;
return 0;
int year(void)
clrscr();
int g;
:-> ";
cin>>g;
if(g%4==0)
else
getch();
welcome();
return 0;
int table(void)
clrscr();
int f,limit;
cin>>f;
cin>>limit;
cout<<"\n\n\n";
for(int i=1;i<=limit;i++)
getch();
welcome();
return 0;
float greatest(void)
clrscr();
float c,d;
cin>>c>>d;
if(c>d)
if(d>c)
if(c==d)
getch();
welcome();
return 0;
}
int evenodd(void)
clrscr();
int a;
cin>>a;
if(a%2==0)
else
getch();
welcome();
return 0;
float calc(void)
clrscr();
float a,b;
int choice;
* * * * * * "<<endl;
cin>>choice;
cin>>a>>b;
switch(choice)
break;
break;
:->"<<a*b;
break;
break;
getch();
welcome();
return 0;
}
Acknowledgement
It is a matter of pleasure of
acknowledgement my
indebtedness to my Computer
Teacher ,
step.
Working Environment
Working Environment
Processor: Pentium-4
RAM : 256 MB
Hard Disk: 80 GB
FDD 1.44 MB
Monitor : 15”
Servers:
Language : C++
CERTIFICATE
This is to certify that this
of my knowledge.
Lecturer/Teacher
Principal