Tuesday 23 April 2013

ATM MACHINE PROJECT

Prepared by:

Ahmed Khan (Telecom Engineering Student)

Description:

This Project perform almost all functions of ATM Machine. This project is developed in Turbo C++. Its tested in (TurboC++ version 2.3) and the program works well. It performs following functions:


  1. New Account
  2. Close Account
  3. Modify Account
  4. Display Account
  5. Display All Accounts
  6. Withdraw Amount
  7. Deposit Amount
  8. Exit Program

AIRWAYS RESERVATION SYSTEM PROJECT

Description:

This Project is an online ticket booking system. A computer reservation system which is used for the reservations of a particular airline. This project is built in C++ and is tested in Visual Studio 2012. It performs following functions:

  1. Local Booking
  2. International Booking
  3. Available Flights

PREPARED BY:

AFRAZ AHMED KHAN
RANA JAHANZEB


REPORT OF PROJECT MCQ'S EXAM


Report on Project of MCQ’s Exam
Purpose:

  1. To analyze this project completely.
  2. To discuss all its features.
  3. To describe all important things, necessary for running this program.
Special thanks to:
Sir Muhammad Jamil Khan
Date of completion:
16-7-2012.
Abstract:        
               This project (MCQ’s Exam) is developed for the easiness of exam taking system. With the help of this project a student will not be imposed to carry a clip board, pencils and papers. Furthermore it is also helpful for paper checking system as it immediately check answers and quickly produce results. It is also helpful to control results cheating as it is developed so that each and every student will get different questions because questions will occur randomly. 

MCQ'S EXAM PROJECT

Description:

This Project is like simple MCQ's exam system on computers. It can be used for online Exam system.

INSTRUCTIONS:

  • Make a folder in 'd' drive naming 'mcq'.
  • In 'mcq' folder make three subfolders naming 'itc', 'itt', 'oop'.
  • Then in each subfolder make 33 text doccument files . Each file contains one mcq question having three or four choices.
  • Then change the part of code having answers accordingly.

Code to produce increasing and decreasing stars

Description:

This program produce increasing and decreasing stars automatically.

Code:


#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
    int i,j;
    for(i=1;i<=9;i=i+2)
     {
        for(j=0;j<i;j++)
        cout<<"*";
        cout<<endl;
        }
         if(i==11)
         {i=i-4;
         for(i=7;i>=1;i=i-2)
          {for(j=0;j<i;j++)
          {
            cout<<"*";
         
            }
            cout<<endl;}}
            getche();
 }


Output:


CODE TO DISPLAY FEBRUARY MONTH AS IN CALENDER

Description:
This program show february month as in calender automatically.
CODE:


#include<iostream>
#include<conio.h>
#include<iomanip>
using namespace std;
int main()
{int i,j,k=6;

    cout<<setw(20)<<"Feb 2012"<<endl;
    cout<<endl;
    cout<<setw(5)<<"MO"<<setw(5)<<"TU"<<setw(5)<<"W"<<setw(5);
cout<<"TH"<<setw(5)<<"Fr"<<setw(5)<<"Sa"<<setw(5)<<"Su"<<endl;
cout<<setw(5)<<"30";
cout<<setw(5)<<"31";

for(i=1;i<=5;i++)
cout<<setw(5)<<i;
cout<<endl;
for(i=0;i<3;i++)
{for(j=0;j<7;j++)
{
cout<<setw(5)<<k;
k++;
 }

 cout<<endl;
                }
 for(i=27;i<30;i++)
 cout<<setw(5)<<i;
 cout<<endl;
 cout<<endl;
cout<<"     **** Hafiz Junaid Hassan ****"<<endl;
cout<<setw(5)<<"           11-TE-14     ";


getche();
return 0;
}


GAME OF CHANCE USING RANDOM FUNCTION

Description:

This is a simple game of chance which is made using random function of c++.

CODE:


#include<iostream>
#include<conio.h>
#include<cstdlib>
#include<ctime>
using namespace std;
int rolldice(void);
int main()
{
    enum status{Continue,won,lost};
    int sum;
    int mypoint;
    char ch3;
    cout<<"Welcom to this exciting game of chance"<<endl;
    cout<<"The rules of the game are as follows"<<endl;
    cout<<"in the first round if your points are 7 or 11 you will win"<<endl;
    cout<<"and if your points are 2 , 3 or 12 you will loose"<<endl;
    cout<<"if your points are other than these you will go to the second round"<<endl;
    cout<<"in second round if your points become equal to your first round points then you will win"<<endl;
    cout<<"and if your second round points become equal to 7 then you will loose"<<endl;
    status gamestatus;
    srand(time(0));
    sum=rolldice();
    switch(sum)
    {
       case 7:
       case 11:
       gamestatus=won;
       break;
       case 2:
       case 3:
       case 12:
       gamestatus=lost;
       break;
       default:
       gamestatus=Continue;
       mypoint=sum;
       cout<<"your first round points are"<<mypoint<<endl;
       cout<<"your decesion can not be made on rolling"<<endl<<"If you want to continue pay 1$"<<endl;
       cout<<"if you have paid then press Y"<<endl;
       break;
               }
       cin>>ch3;
       if(ch3=='y'||ch3=='Y')
       {
       while(gamestatus==Continue)
       {
          sum=rolldice();
          if(sum==mypoint)
          gamestatus=won;
          else if(sum==7)
          gamestatus=lost;
                                  }
          if(gamestatus==won)
          cout<<"player wins"<<endl;
          else if(gamestatus==lost)
          cout<<"player loses"<<endl;
          getche();
          return 0;
    }
}
    int rolldice(void)
    {
        int die1,die2,worksum;
        char ch1,ch2;
        cout<<"press A for your first roll of dice"<<endl;
        cin>>ch1;
        if(ch1=='a'||ch1=='A')
        die1=1+rand()%6;
        cout<<"player rolled "<<endl<<die1<<endl;
        cout<<"press B for your second roll of dice"<<endl;
        cin>>ch2;
        if(ch2=='b'||ch2=='B')
        die2=1+rand()%6;
        worksum=die1+die2;

        cout<<"player rolled "<<endl<<die2<<endl<<"your total points are"<<worksum<<endl;
        return worksum;
     
        }


OUTPUT:


Welcom to this exciting game of chance
The rules of the game are as follows
in the first round if your points are 7 or 11 you will win
and if your points are 2 , 3 or 12 you will loose
if your points are other than these you will go to the second round
in second round if your points become equal to your first round points then you
will win
and if your second round points become equal to 7 then you will loose
press A for your first roll of dice
A
player rolled
2
press B for your second roll of dice
B
player rolled
6
your total points are8
your first round points are8
your decesion can not be made on rolling
If you want to continue pay 1$
if you have paid then press Y
Y
press A for your first roll of dice
A
player rolled
1
press B for your second roll of dice
B
player rolled
4
your total points are5
press A for your first roll of dice
A
player rolled
3
press B for your second roll of dice
B
player rolled
4
your total points are7
player loses