1. C++ PROGRAMING ASSIGNMENT
A WORK REPORT SUBMITTED
IN PARTIAL FULLFILLMENT OF THE REQUIREMENT FOR THE DEGREE
Bachelor of Computer Application
Dezyne E’cole College
106/10, CIVIL LINES
AJMER
RAJASTHAN - 305001 (INDIA)
(JULY, 2015)
www.dezyneecole.com
SUBMITTED BY:
KIRTESH KHANDELWAL
CLASS: BCA 2nd YEAR
2. 1
PROJECT ABSTRACTION
I am KIRTESH KHANDELWAL Student of 2nd year doing my Bachelor Degree in Computer
Application.
In the following pages I gave compiled my work learnt during my 2nd year at college. The subject
is C++ Programming Language. We are taking an example of Restaurant, There are menu lists
is displayed by the restaurant manager. Whenever the customer will go there restaurant
he/she can choose one or more receipe’s / items from the menu lists is restaurant.
The Following code represent is based on menu driven programming concept that are based
on concept of menus that are perform and executed at run time. This code represent as a
converter to convert the number into the respective following bases. Menu driven
programming concept that represent the list at run time and asked for the respective following
input from the menu list by the user at run time and after it will take
Input and process to convert into the respective number conversion bases and generate the
desired output to the user.
1. Decimal to Binary
2. Binary to Decimal
3. Decimal to Octal
4. Decimal to Hexadecimal
5. Octal to Decimal
6. Hexadecimal to Decimal
The above conversion represent the menu list that are based on Menu Driven C++
Programming Concept.
3. 2
In the following pages I am showcasing my work.
void main()
{
clrscr();
int d,w,i;
binary a;
a.deco();
gotoxy(27,6);
cout<<"CHOOSE ONE OF THE FOLLOWING";
gotoxy(27,8);
cout<<"1. for Decimal to Binary"<<endl;
gotoxy(27,9);
cout<<"2. for Binary to Decimal"<<endl;
gotoxy(27,10);
cout<<"3. for Decimal to Octal"<<endl;
gotoxy(27,11);
cout<<"4. for Decimal to Hexadecimal"<<endl;
gotoxy(27,12);
14. 13
cout<<"Enter a Number:: ";
cin>>hex>>n;
}
void hexadeci2()
{
gotoxy(25,11);
cout<<"DECIMAL VALUE IS ";
cout<<n<<hex;
}
};
15. 14
THANK YOU
SUBMITTED BY
KIRTESH KHANDELWAL
BACHELOR OF COMPUTER APPLICATION
CLASS: BCA 2nd
Year
Dezyne E’cole College
(2015-16)
www.dezyneecole.com