Posts

Showing posts from 2014

Student Report Card Project.

source code //*************************************************************** //                   HEADER FILE USED IN PROJECT //**************************************************************** #include<fstream.h> #include<iomanip.h> #include<stdio.h> #include<conio.h> //*************************************************************** //                   CLASS USED IN PROJECT //**************************************************************** class student { int rollno; char name[50]; int p_marks, c_marks, m_marks, e_marks, cs_marks; float per; char grade; void calculate(); //function to calculate grade public: void getdata(); //function to accept data from user void showdata(); //function to show data on screen void show_tabular(); int retrollno(); }; //class ends here void student::calculate() { per=(p_marks+c_marks+m_marks+e_marks+cs_marks)/5.0; if(per>=60) grade=

Bank Managment

source code #include<iostream.h>     #include<stdio.h>     #include<conio.h>     class bank     {      private:      int ac_no,account;      float balance;      char name[20];      public:      void open(void);      void deposite(int);      void withdraw(int);      void search(int);      void display(void);     };     void bank::open(void)      {          cout<<"ENTER YOUR NAME :  ";          cin>>name;          cout<<"ENTER YOUR ACCOUNT NUMBER :  ";          cin>>account;          cout<<"ENTER THE AMOUNT OF MONEY : BDT  ";          cin>>balance;      }           void bank::deposite(int j)     {           int bnc;           if(account==j)        {         cout<<"ENTER THE AMOUNT OF MONEY : BDT ";         cin>>bnc;         balance=balance+bnc;         cout<<"\n\n\tJOB HAS DONE WEL

LIC Policy System

source code /*          HEADER FILES          */ #include<iostream .h> #include<conio .h> #include<string .h> #include<dos .h> #include<ctype .h> #include<stdio .h> #include<process .h> #include<iomanip .h> #include<math .h> /*      STRUCTURE DEFINITIONS       */ struct address /* STRUCTURE FOR ADDRESS */ { char hno[30]; char area[30]; char city[30]; char stat[30]; }; struct agn     /* STRUCTURE FOR AGENT DETAILS */ { int code; char nam[80]; int age; address addagn; int polsld;       //no. of policies sold float sal;        //salary char categ[50];   //category }agnt[15]; struct cust    /* STRUCTURE FOR CUSTOMER DETAILS */ { char nam[80]; int age; address addcust; char polbt[20];   //name of policy bought float sal;        //salary int code; float polamt; int polterm; char mod_pay; float sa_pt_pa;   //SA per thousand per annum