Saturday, 17 March 2012

Library Management System in C++


#include<iostream.h>
#include<conio.h>
int a=2,b=3,c=4,i=0;
class lib
{
int n;
public:

void issue();
void show();
void ret();
};

 void lib::issue()
{                                                               
cout<<"enter code:";
cin>>n;


switch(n)
{
case 101:
if(a!=i)
{
a--;
cout<<"morish mano is issued\nno. of books="<<a<<"\n\n";

}
break;
case 102:
if(b!=i)
{
b--;
cout<<"peter syckes is issued\n no. of book="<<b<<"\n\n";

}
break;
case 103:
if(c!=i)
{
c--;
cout<<"ncert maths is issued\n no. of book="<<c<<"\n\n";

}
break;
}
}
void lib::ret()
{
cout<<"enter code to return the book:";
cin>>n;


switch(n)
{
case 101:
if(a!=2)
{
a++;
cout<<"morish mano is returned\nno. of books="<<a;

}
break;
case 102:
if(b!=3)
{
b++;
cout<<"peter syckes is returned\n no. of book="<<b;

}
break;
case 103:
if(c!=4)
{
c++;
cout<<"ncert maths is returned\n no. of book="<<c;

}
break;
}
}

void lib::show()
{
cout<<"book code:101\n";
cout<<"name: morish mano\n";
cout<<"availability:"<<a<<"\n\n";
cout<<"book code:102\n";
cout<<"name: peter sykes\n";
cout<<"availability:"<<b<<"\n\n";
cout<<"book code:103\n";
cout<<"name: ncert maths\n";
cout<<"availability:"<<c<<"\n\n";
}
void main()
{
class lib lb;
int k,m;
clrscr();
x:
cout<<"enter 1 to see the list of books\n";
cout<<"enter 2 to issue the book\n";
cout<<"enter 3 to return the book\n";
cout<<"number:";
cin>>k;
switch(k)
{
case 1:
lb.show();
cout<<"\nenter 0 to go to previous:";
cin>>m;
if(m==0)
goto x;
else
break;
case 2:
lb.issue();
cout<<"\nenter 0 to go to previous:";
cin>>m;
if(m==0)
goto x;
else
break;
case 3:
lb.ret();
cout<<"\nenter 0 to go to previous:";
cin>>m;
if(m==0)
goto x;
else
break;
}
getch();
}

University Management System in C++


#include<iostream.h>
#include<conio.h>                                                                                        
int a=2,b=3,c=4,i=0;
class lib
{
int bookid,n;
public:
void show();
void issue();
void ret();
};
class lib lb;
void lib::issue()
{
cout<<"enter code:";                                                                             
cin>>n;                                                                            
switch(n)
{
case 101:
if(a!=i)
{
a--;
cout<<"morish mano is issued\nno. of books="<<a<<"\n\n";
}
else
cout<<"book is not available in library\n";

break;
case 102:
if(b!=i)
{
b--;
cout<<"peter syckes is issued\n no. of book="<<b<<"\n\n";
}
else
cout<<"book is not available in library\n";
break;
case 103:
if(c!=i)
{
c--;
cout<<"ncert maths is issued\n no. of book="<<c<<"\n\n";
}
else
cout<<"book is not available in library\n";
break;
}
}
void lib::ret()
{
cout<<"enter book code to return the book:";
cin>>n;


switch(n)
{
case 101:
if(a!=2)
{
a++;
cout<<"morish mano is returned\nno. of books="<<a<<"\n";

}
else
cout<<"you have not issued this book\n";
break;
case 102:
if(b!=3)
{
b++;
cout<<"peter syckes is returned\n no. of book="<<b<<"\n";
}
else
cout<<"you have not issued this book\n";
break;
case 103:
if(c!=4)
{
c++;
cout<<"ncert maths is returned\n no. of book="<<c<<"\n";
}
else
cout<<"you have not issued this book\n";
break;
}
}

void lib::show()
{
cout<<"book code:101\n";
cout<<"name: morish mano\n";
cout<<"availability:"<<a<<"\n\n";
cout<<"book code:102\n";
cout<<"name: peter sykes\n";
cout<<"availability:"<<b<<"\n\n";
cout<<"book code:103\n";
cout<<"name: ncert maths\n";
cout<<"availability:"<<c<<"\n\n";
}


class ums
{

int regno,k,n,m;
public:
void library();
void attend();
void result();
void input()
{
cout<<"\t\t\tUNIVERSITY MANAGEMENT SYSTEM\n";
cout<<"START:\n";
cout<<"enter your registration no.";
cin>>regno;
}
void data();
};
void ums::data()
{
int j;
switch(regno)
{
case 11002356:
cout<<"name:Amit"<<"\n";
cout<<"section:K3001"<<"\n";
cout<<"enter [1] to go to library"<<"\n";
cout<<"enter [2] to see attendence"<<"\n";
cout<<"enter [3] to see result"<<"\n";
break;
case 11004567:
cout<<"name:Neeraj"<<"\n";
cout<<"section:K3001"<<"\n";
cout<<"enter [1] to go to library"<<"\n";
cout<<"enter [2] to see attendence"<<"\n";
cout<<"enter [3] to see result"<<"\n";
break;
case 11009096:
cout<<"name:Saurabh"<<"\n";
cout<<"section:K3001"<<"\n";
cout<<"enter [1] to go to library"<<"\n";
cout<<"enter [2] to see attendence"<<"\n";
cout<<"enter [3] to see result"<<"\n";
break;
default:
cout<<"regno. is incorrect\npress [9]";
}

}
void ums::library()
{
x:
cout<<"enter [1] to see available book"<<"\n";
cout<<"enter [2] to issue the book"<<"\n";
cout<<"enter [3] to return the book"<<"\n";
cout<<"press [9] to exit library\n"<<"\n";
cin>>k;
switch(k)
{
case 1:
lb.show();
cout<<"press [0] to go to menu of library\n";
cout<<"press [9] key to exit library\n";
cin>>m;
if(m==0)
goto x;
else
goto y;
case 2:
lb.issue();
cout<<"press [0] to go to  menu of library\n";
cout<<"press [9] key to exit library\n";
cin>>m;
if(m==0)
goto x;
else
goto y;

case 3:
lb.ret();
cout<<"press [0] to go to menu of library\n";
cout<<"press [9] key to exit library\n";
cin>>m;
if(m==0)
goto x;
else
goto y;
}
y:
}
void ums::attend()
{
int regno,phy,cmp,math,pass;
cout<<"enter your regno";
cin>>regno;
cout<<"enter password";
cin>>pass;
switch(regno)
{
case 11002356:
if(pass==3346)
{
phy=85,cmp=90,math=95;
cout<<"name:Amit\n";
cout<<"total attendence:"<<(phy+cmp+math)/3<<"%\n";
cout<<"maths:"<<math<<"%\n";
cout<<"computer:"<<cmp<<"%\n";
cout<<"physics:"<<phy<<"%\n";
}
else
cout<<"incorrect password\n";
break;
case 11004567:
if(pass==1234)
{
phy=95,cmp=90,math=87;
cout<<"name:Neeraj\n";
cout<<"total attendence:"<<(phy+cmp+math)/3<<"%\n";
cout<<"maths:"<<math<<"%\n";
cout<<"computer:"<<cmp<<"%\n";
cout<<"physics:"<<phy<<"%\n";
}
else
cout<<"incorrect password\n";
break;
case 11009096:
if(pass==1234)
{
phy=87,cmp=90,math=56;
cout<<"name:Saurabh\n";
cout<<"total attendence:"<<(phy+cmp+math)/3<<"%\n";
cout<<"maths:"<<math<<"%\n";
cout<<"computer:"<<cmp<<"%\n";
cout<<"physics:"<<phy<<"%\n";
}
else
cout<<"incorrect password\n";
break;
default:
cout<<"regno.incorrect\n";
}
}
void ums::result()
{
int l,o;
x:
cout<<"enter registration no.";
cin>>l;
switch(l)
{
case 11002356:
cout<<"name:Amit\n";
cout<<"subjects:"<<"grades\n";
cout<<"maths   :"<<"A\n";
cout<<"physics :"<<"A+\n";
cout<<"computer:"<<"B\n";
cout<<"press [0] to go to back\n";
cout<<"press [9] to exit result\n";
cin>>o;
if(o==0)
goto x;
else
goto y;
break;
case 11004567:
cout<<"name:Neeraj\n";
cout<<"subjects:"<<"grades\n";
cout<<"maths   :"<<"B\n";
cout<<"physics :"<<"A+\n";
cout<<"computer:"<<"C\n";
cout<<"press [0] to go to back\n";
cout<<"press [9] to exit result\n";
cin>>o;
if(o==0)
goto x;
else
goto y;
break;
case 11009096:
cout<<"name:Saurabh\n";
cout<<"subjects:"<<"grades\n";
cout<<"maths   :"<<"B\n";
cout<<"physics :"<<"C\n";
cout<<"computer:"<<"A+\n";
cout<<"press [0] to go to back\n";
cout<<"press [9] to exit result\n";
cin>>o;
if(o==0)
goto x;
else
goto y;
break;
default:
cout<<"regno. incorrect\n";
cout<<"press [0] to go to back\n";
cout<<"press [9] to exit  result\n";
cin>>o;
if(o==0)
goto x;
else
goto y;
}
y:
}


void main()
{
int n,k;
class ums u;
clrscr();
x:
u.input();
u.data();
cin>>n;
switch(n)
{
case 1:
u.library();
cout<<"enter [5] to goto start\n";
cout<<"press [9] to exit program\n";
cin>>k;
if(k==5)
goto x;
else
goto y;
case 2:
u.attend();
cout<<"enter [5] to goto start\n";
cout<<"press [9] to exit program\n";
cin>>k;
if(k==5)
goto x;
else
goto y;
case 3:
u.result();
cout<<"enter [5] to goto start\n";
cout<<"press [9] to exit program\n";
cin>>k;
if(k==5)
goto x;
goto y;
}
y:
getch();
}


To Check:-
  Registration no.-11002356 Password-3346
  Registration no.- 11004567  Password-1234                                       







Grading System In Linux


Grading System In Linux Programming by Shell script.

echo enter the name of student
read name
echo enter section
read section
echo enter marks of maths
read maths
echo enter marks of physics
read phy
echo enter marks of chemistry
read chem
if [ $maths -lt 35 ]
then
m=fail
elif [ $maths -lt 50 ]
then
m=C
elif [ $maths -lt 70 ]
then
m=B
elif [ $maths -lt 80 ]
then
m=A
elif [ $maths -lt 100 ]
then
m=A+
fi

if [ $phy -lt 35 ]
then
p=fail
elif [ $phy -lt 50 ]
then
p=C
elif [ $phy -lt 70 ]
then
p=B
elif [ $phy -lt 80 ]
then
p=A
elif [ $phy -le 100 ]
then
p=A+
fi

if [ $chem -lt 35 ]
then
c=fail
elif [ $chem -lt 50 ]
then
c=C
elif [ $chem -lt 70 ]
then
c=B
elif [ $chem -lt 80 ]
then
c=A
elif [ $chem -le 100 ]
then
c=A+
fi
echo name:$name section:$section
echo subject:      grades:
echo maths:        $m
echo physics:      $p
echo chemistry:    $c



Windows password recovery

Ophcrack is a free Windows password cracker based on rainbow tables. It is a very efficient implementation of rainbow tables done by the inventors of the method. It comes with a Graphical User Interface and runs on multiple platforms.
1-Download Ophcrack XP Live CD or Ophcrack Vista Live CD  depending which windows you want to crack.Ophcrack Vista Live CD will also work to crack Windows7 login password.
2-Download and run tazusb.exe.
3-Select Ophcrack iso image file and then pen drive.
4-Make pendrive bootable.
5-Reboot and change boot order to usb storage.
When ophcrack will open as an OS you can see the password of your Windows.
Ophcrack is Live USB so it is not going to affect Windows and it will crack Windows Login Password. 

Thursday, 15 March 2012

Turboc++3 fullscreen in windows7 32 bit with graphics

 Use Turboc++3 in windows7 32 bit with graphics.
 Install tc++3. You can get here.
 Just follow the screenshots.To see fullscreen image click on image.
1- Click on left corner blue rectangle type image and go to properties.
2-Click on Font tab and choose Lusida Console & choose 28 size.
3-Choose Layout tab
   a-Choose screen buffer size Width:80, Hight:25.
   b-Window size Width:80, Hight:25.
   c-Window position Length: -4 ,Top: 4.
   d-Uncheck Let system position window.
                


                


















Note:It is not completely the fullscreen but it is modified to fullscreen.

 

Install Ubuntu inside Windows.

Install Ubuntu inside Windows.
1-Open Daemon Tools Lite. You can get here.
   Click to add ubuntu iso file from hard disk as in the snapshot.
2-Choose iso image file to add.
3-Click to add Virtual device as in screenshot.
4-A virtual device will be added down.
   Right click on iso image path shown below image catalog and choose mount then virtual    device and wait for few seconds.
5-Click on Run Wubi.exe.
6-Select Install inside windows. 
7-Select Installation drive, Installation size, Desktop Environment.
   Write Username: & Password:
  Then click on OK.
8-An  intial installation will start then select reboot.
Note:-When computer reboot Press ESC as it tells  and choose Normal Mode and wait for completion of installation.
                                                
                                                                                                                                                                                                                               




















                
                                                                 
                   





                          



Ubuntu Netbook Edition to Desktop Edition

Switch Ubuntu Netbook Edition to Ubuntu Desktop Edition or Safe Mode.
1-Go to  Applications in ubuntu netbook edition and choose Login Screen.
2-Unlock Login Screen by entering password.
3-Choose Ubuntu Desktop Edition or Safe Mode if you want to open in safe mode.
Note-When you will reboot your compter Ubuntu will be changed to Desktop Edition.
 
                 






















Emulated Turbo C++

Turbo C++ in Windows7 64-bit.
Emulated Turbo C++ can allow you to use turbo c++ in window7 64-bit.
You don't have to install dosbox mannualy ,it is already in the rar file.
You don't have to give command everytime.
The software is only going to work when you have external graphics card.
You can get here.