Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 104

Qwertyuiopasdfghjklzxcvbnmqw

ertyuipasdfghjklzxcvbnmqwerty
ONLINE ADMISSION SYSTEM 
uiopasdfghjklzxcvbnmqwertyuio
pasdfghjklzxcvbnmqwertyuiopas
dfghjklzxcvbnmqwertyuiopasdfg
hjklzxcvbnmqwertyuiopasdfghjk
ABASYN UNIVERSITY ISLAMABAD CAMPUS

lzxcvbnmqwertyuiopasdfghjklzx Project Report On

Online Admission System

cvbnmqwertyuiopasdfghjklzxcvb For the course

SOFTWARE DESIGN AND ARCHITECTURE

nmqwertyuiopasdfghjklzxcvbnm Submitted by

Osama Zafar

qwertyuiopasdfghjklzxcvbnmqw Roll:3657

ertyuiopasdfghjklzxcvbnmqwert 3rd semester of BSSE


Guided by: Ma’am Madiha Naveen

yuiopasdfghjklzxcvbnmqwertyui Submitted to

Ma’am Madiha Naveen for the Academic year of fall 2021

opasdfghjklzxcvbnmqwertyuiopa
Contents

sdfghjklzxcvbnmqwertyuiopasdf
Introduction:...............................................................................................................................................2
Modules in Online Admission System......................................................................................................2
Use Case:.................................................................................................................................................3

ghjklzxcvbnmqwertyuiopasdfghj
Diagram:..............................................................................................................................................3
Fully dress Usecase Diagram:...............................................................................................................3
Domain Model of Online Admission System:..........................................................................................4
Sequence diagram :.................................................................................................................................6
Communication diagram:........................................................................................................................7
Class Diagram of Online Admission System:............................................................................................8
Implementation in c++:........................................................................................................................9
Code:...................................................................................................................................................9
Screenshots:......................................................................................................................................28
Chain of Responsibility Design Pattern:.................................................................................................32
Implementation in c++:......................................................................................................................33
Code:.................................................................................................................................................33
Screenshots:......................................................................................................................................36
Grasp pattern:.......................................................................................................................................36
1. High cohesion............................................................................................................................36
2. Low  Coupling............................................................................................................................37
Adapter design Pattern..........................................................................................................................39
Code:.................................................................................................................................................40
Screenshot:........................................................................................................................................41
Strategy design pattern.........................................................................................................................41
Code:.................................................................................................................................................42
Screenshots:......................................................................................................................................45
State design pattern..............................................................................................................................45
Screenshots:......................................................................................................................................49
Patteren in class Digram........................................................................................................................50
Applied Patterns are:.........................................................................................................................50
1. Adapter design Pattern..............................................................................................................50
2. State Design Pattern..................................................................................................................50
Code:.................................................................................................................................................50
Screenshots:......................................................................................................................................70
Quality Attributes & Tatics Lab:.............................................................................................................71
Quality Scenarios...................................................................................................................................74
1. Availability:................................................................................................................................74

1
2. Modifiability:..............................................................................................................................75
3. Performance:.............................................................................................................................76
4. Security:.....................................................................................................................................76
5. Testability:.................................................................................................................................77
6. Usability:....................................................................................................................................77

Introduction:
The objective of the Online Admission System is to provide a system which handles the records and information
related to admission, whether new or old admissions, accepted and rejected all admissions into the admission
system and maintaining their admission records. It takes care of all their details, documents, degree choosed,
challans, and their departmental information. Data will be stored into a database. 

Modules in Online Admission System


 Registration for Admission.
 Admission details, criteria, curriculum and prospectus.
 Adding new Admissions into the system.
 Adding new details about admission into the system.
 Adding Documents into the system.
 Adding created Challan and paid Challan into the system
 Searching user by id in the system
 View all admission forms by id in the system.
 Storing, updating and Deleting the information about both accepted and rejected admission, scholarships
percentage and toppers details.

2
Use Case:
Diagram:

Fully dress Usecase Diagram:

Use Cases Description

3
Registration Allows users to Register for the system, and has one to many relationships. All
kinds of actors that come to the system can register for account.

Authentication Allows users to login and check if the username/password is correct or not.
One to many relationship. All registered users will interact with the
authentication use case, it will check if the login is either valid or not.
Documents Allows students to upload their documents in some specific format e.g. in pdf
or picture etc.
The Admission office and Student Affairs can View and Download the
Documents.
One to many relationships, student and admission office and student affairs will
interact with documents.
Scholarship The check in will be applied on the system. It is a constraint, that student with
70% or more than 70% will get scholarship automatically. Has one to many
relationship. Student will get scholarship. Admission office will decide and the
student affairs will create challan according to scholarship percentage. 
Entry Test Entry Test Letter with description of test date, place and time written on it will
be sent to the deserving students by admission office. One to many
relationship. The Admission office will send the letter and students can view
the entry test letter.
Test Result After test conduction, the result of the test will be uploaded on the system. Has
one to many relationships. The admission office will upload the test results, and
students can view the result list.
Admission After selection of  the deserving students on the basis of the entry test result the
Letter automatic admission letter will be sent to the student by the admission office.   

Challan One to many relationships. Finance office will upload the challan according to
the applied degree. The student can view the challan; download the challan,
after the payment can upload the paid challan on the system.

        Domain Model of Online Admission System: 

4
5
Sequence diagram :

6
 

Communication diagram:

7
8
Class Diagram of Online Admission System:

Implementation in c++:

Code: 
#include<iostream>
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<conio.h>
using namespace std;
// structure for storing data of the enrolling student
struct admi {
    int uniq_id;
    char Name[50];

9
    char dob[50];
    char Gender[50];
    char Religion[50];
    char Nationality[50];
    char Address[100];
    char City[50];
    char State[50];
    char Father_Name[50];
    char Father_Occupation[50];
    char Mother_Name[50];
    char Mother_Occupation[50];
    char father_income[50];
    char mother_income[50];
    char Name_b[50];
    char Name_school[50];
    char school_s[50];
    char maxmarks[50];
    char marksob[50];
    char perc[50];
    char yop[50];
    char Name_b1[50];
    char Name_school1[50];
    char school_s1[50];
    char maxmarks1[50];
    char marksob1[50];
    float perc1;
    char yop1[50];
    char mig[50];
    char tc[50];
    char branch[50];
}form;

// structure for storing the administrator id


struct adminitrator {
    float id;
}host;
// file pointers
FILE *student_detail;
FILE *admin_id;
FILE *student_id;
class Administator{
public:
int choice,op;
int feec,bec;
public:
Administator(){
choice=0;
op=0;
feec=0;
bec=0;
}
public:
int show_academic_details(){
            cout<<"\n\nAcademic Details\n\n\n";
            cout<<"Please Select Your Branch\n\n";
            cout<<"1.Department of Computing \n";
            cout<<"2.Department of Electrical Engineering\n";
            cout<<"3.Department of Management & Social Sciences \n";

10
            cout<<"4.Department of Civil Engineering\n";
            cout<<"5.Department of Pharmacy\n";
            cout<<"6.Department of Life Scienecs\n";
            cout<<"7.Department of Rehabilitation and Health Sciences\n";
            cout<<"8.Department of Technology\n";
            cout<<"9.Department of Electronics\n";
            cout<<"10.BS in Mathematics\n"; 
            cout<<"\nPlease Enter your Choice \n";
            cin>>choice;
            switch(choice){
             case 1:cout<<"\t\tDetails for the First Semester\n\n\n";
                cout<<"\t\t\tPHY CYCLE\n\n";
                    cout<<"\tS.No.\tSubject Name\t\t\t\t\tSubject Credits\n";
                    cout<<"\t1\tIntroduction to Computing \t\t\t\t3+0\n";
                    cout<<"\t2\tIntroduction to Computer Programming \t\t\t3+1\n";
                    cout<<"\t3\tApplied Physics \t\t\t\t\t2+1\n";
                    cout<<"\t4\tEnglish-I (Comprehension)\t\t\t\t3+0\n";
                    cout<<"\t5\tIslamic Studies/Ethics (for Non-Muslims)\t\t2+0\n";
                    cout<<"\t6\tCalculus-I\t\t\t\t\t\t3+0\n";
                    cout<<"\n\n\t\tTotal Credits = 18 \n\n";
                    break;
                    
            case 2:cout<<"\t\tDetails for the First Semester\n\n\n";
                cout<<"\t\t\tPHY CYCLE\n\n";
                    cout<<"\tS.No.\tSubject Name\t\t\t\t\tSubject Credits\n";
                    cout<<"\t1\tIntroduction to Computing \t\t\t\t1+1\n";
                    cout<<"\t2\tCalculus & Analytical Geometry(Math-1) \t\t\t3+0\n";
                    cout<<"\t3\tApplied Physics \t\t\t\t\t3+1\n";
                    cout<<"\t4\tEnglish-I (Comprehension)\t\t\t\t3+0\n";
                    cout<<"\t5\tIslamic Studies/Ethics (for Non-Muslims)\t\t2+0\n";
                    cout<<"\t6\tWorkshop Practice\t\t\t\t\t0+1\n";
                    cout<<"\n\n\t\tTotal Credits = 15 \n\n";
                    break;
            case 3: { 
        cout<<"\n\nPrograms Offered in Department of Management & Social Sciences\n\
n\n";
                        cout<<"Please Select Your Program\n\n";
                        cout<<"1.Bachelor of Business Administration \n";
                        cout<<"2.BS in Psychology \n";
                        cout<<"\nPlease Enter your Program \n";
                  cin>>op;
                switch(op){
case 1:cout<<"\t\tDetails for the First Semester\n\n\n";
                cout<<"\t\t\tPHY CYCLE\n\n";
                    cout<<"\tS.No.\tSubject Name\t\t\t\t\tSubject Credits\n";
                    cout<<"\t1\tPrinciples of Management \t\t\t\t3+0\n";
                    cout<<"\t2\tIntroduction to Business \t\t\t\t3+0\n";
                    cout<<"\t3\tIntroduction to IT \t\t\t\t\t2+0\n";
                    cout<<"\t4\tEnglish-I (Comprehension)\t\t\t\t3+0\n";
                    cout<<"\t5\tIslamic Studies/Ethics (for Non-Muslims)\t\t2+0\n";
                    cout<<"\t6\tFinancial Accounting\t\t\t\t\t3+0\n";
                    cout<<"\n\n\t\tTotal Credits = 16 \n\n";
                    break;
            case 2:cout<<"\t\tDetails for the First Semester\n\n\n";
                cout<<"\t\t\tPHY CYCLE\n\n";
                    cout<<"\tS.No.\tSubject Name\t\t\t\t\tSubject Credits\n";
                    cout<<"\t1\tIntroduction to Computing \t\t\t\t3+0\n";
                    cout<<"\t2\tBasic Mathematics \t\t\t\t\t3+0\n";

11
                    cout<<"\t3\tPakistan Studies \t\t\t\t\t2+0\n";
                    cout<<"\t4\tEnglish-I (Comprehension)\t\t\t\t3+0\n";
                    cout<<"\t5\tIntroduction to Psychology \t\t\t\t3+0\n";
                    cout<<"\t6\tGeneral Course I\t\t\t\t\t3+0\n";
                    cout<<"\n\n\t\tTotal Credits = 17 \n\n";
                    break;
 }
  break;
}
case 4:cout<<"\t\tDetails for the First Semester\n\n\n";
                    cout<<"\n\n\t\t\tCHEM CYCLE\n\n";
                    cout<<"\tS.No.\tSubject Name\t\t\t\t\t  Subject Credits\n";
                    cout<<"\t1\tCivil Engineering Materials \t\t\t\t(2-1-3)\n";
                    cout<<"\t2\tBasic Electrical & Mechanical Engineering \t\t(2-2-4)\n";
                    cout<<"\t3\tCivil Engineering Drawing\t\t\t\t(1-2-3)\n";
                    cout<<"\t4\tApplied Calculus (Math-1)\t\t\t\t(3-0-3)\n";
                    cout<<"\t5\tCFunctional English\t\t\t\t\t(2-0-2)\n";
                    cout<<"\t6\tPakistan studies\t\t\t\t\t(1-0-1)\n";
                    
                    cout<<"\n\n\t\tTotal Credits = 32\n\n";
                    break;
                    
            case 5: cout<<"\t\tDetails for the First Semester\n\n\n";
                cout<<"\t\t\tPHY CYCLE\n\n";
                    cout<<"\tS.No.\tSubject Name\t\t\t\t\tSubject Credits\n";
                    cout<<"\t1\tEnglish-A (Functional English) \t\t\t\t3+0\n";
                    cout<<"\t2\tPharmaceutics-IA (Physical Pharmacy) \t\t\t3+1\n";
                    cout<<"\t3\tPharmaceutical Chemistry-IA (Organic) \t\t\t3+1\n";
                    cout<<"\t4\tPharmaceutical Chemistry-IIA (Biochemistry)\t\t3+1\n";
                    cout<<"\t5\tAnatomy & Histology \t\t\t\t\t3+1\n";
                    cout<<"\t6\tPhysiology-A I\t\t\t\t\t\t3+1\n";
                    cout<<"\n\n\t\tTotal Credits = 17 \n\n";
                    break;
            case 6: {
            cout<<"\n\nPrograms Offered in Department of Management & Social Sciences\n\n\n";
                        cout<<"Please Select Your Program\n\n";
                        cout<<"1.BS In Microbiology BSMB \n";
                        cout<<"2.BS In Medical Lab Technology(MLT) \n";
                        cout<<"3.BS In Biochemistry \n";
                        cout<<"\nPlease Enter your Program \n";
                  cin>>op;
                switch(op){
            case 1:cout<<"\t\tDetails for the First Semester\n\n\n";
                cout<<"\t\t\tPHY CYCLE\n\n";
                    cout<<"\tS.No.\tSubject Name\t\t\t\t\tSubject Credits\n";
                    cout<<"\t1\tBasic Mathematics \t\t\t\t\t3+0\n";
                    cout<<"\t2\tFundamental of Microbiology \t\t\t\t2+1\n";
                    cout<<"\t3\tMicrobial Taxonomy \t\t\t\t\t2+1\n";
                    cout<<"\t4\tEnglish-I (Comprehension)\t\t\t\t3+0\n";
                    cout<<"\t5\tIslamic Studies/Ethics (for Non-Muslims)\t\t2+0\n";
                    cout<<"\t6\tIntroduction to Computing\t\t\t\t3+0\n";
                    cout<<"\n\n\t\tTotal Credits = 17 \n\n";
                    break;
            case 2:cout<<"\t\tDetails for the First Semester\n\n\n";
                cout<<"\t\t\tPHY CYCLE\n\n";
                    cout<<"\tS.No.\tSubject Name\t\t\t\t\t\tSubject Credits\n";
                    cout<<"\t1\tHuman Anatomy-I \t\t\t\t\t\t3+1\n";
                    cout<<"\t2\tHuman Physiology-I \t\t\t\t\t\t3+1\n";

12
                    cout<<"\t3\tBiochemistry-I \t\t\t\t\t\t\t3+1\n";
                    cout<<"\t4\tEnglish-I (Comprehension)\t\t\t\t\t3+0\n";
                    cout<<"\t5\tIslamic Studies/Ethics (for Non-Muslims)\t\t\t2+0\n";
                    cout<<"\t6\tIntroduction to Computing\t\t\t\t\t2+1\n";
                    cout<<"\n\n\t\tTotal Credits = 20 \n\n";
                    break;
                case 3:cout<<"\t\tDetails for the First Semester\n\n\n";
                cout<<"\t\t\tPHY CYCLE\n\n";
                    cout<<"\tS.No.\tSubject Name\t\t\t\t\tSubject Credits\n";
                    cout<<"\t1\tIntroductory Biochemistry \t\t\t\t3+1\n";
                    cout<<"\t2\tBOrganic Chemistry \t\t\t\t\t2+1\n";
                    cout<<"\t3\tSociology \t\t\t\t\t\t3+0\n";
                    cout<<"\t4\tEnglish-I (Comprehension)\t\t\t\t3+0\n";
                    cout<<"\t5\tMathematics \t\t\t\t\t\t3+0\n";
                    cout<<"\t6\tPakistan Studies\t\t\t\t\t2+0\n";
                    cout<<"\n\n\t\tTotal Credits = 18 \n\n";
                    break;                     

    }
                    break;
          }
            case 7: {
            cout<<"\n\nPrograms Offered in Department of Management & Social Sciences\n\n\n";
                        cout<<"Please Select Your Program\n\n";
                        cout<<"1.Doctor Of Physical Therapy DPT \n";
                        cout<<"2.BS In Human Nutrition & Dietetics \n";
                        cout<<"3.BS In Radiology Technology \n";
                        cout<<"4.BS In Prosthetic & Orthotics \n";
                        cout<<"\nPlease Enter your Program \n";
                  cin>>op;
                switch(op){
            case 1:cout<<"\t\tDetails for the First Semester\n\n\n";
                cout<<"\t\t\tPHY CYCLE\n\n";
                    cout<<"\tS.No.\tSubject Name\t\t\t\t\tSubject Credits\n";
                    cout<<"\t1\tAnatomy -I \t\t\t\t\t\t3+0\n";
                    cout<<"\t2\tPhysiology-I \t\t\t\t\t\t3+0\n";
                    cout<<"\t3\tKinesiology-I \t\t\t\t\t\t3+0\n";
                    cout<<"\t4\tEnglish-I (Comprehension)\t\t\t\t2+0\n";
                    cout<<"\t5\tBiostatistics-I\t\t\t\t\t\t3+0\n";
                    cout<<"\t6\tPakistan Studies\t\t\t\t\t2+0\n";
                    cout<<"\n\n\t\tTotal Credits = 15 \n\n";
                    break;
            case 2:cout<<"\t\tDetails for the First Semester\n\n\n";
                cout<<"\t\t\tPHY CYCLE\n\n";
                    cout<<"\tS.No.\tSubject Name\t\t\t\t\t\tSubject Credits\n";
                    cout<<"\t1\tFundamentals of Human Nutrition \t\t\t\t3+0\n";
                    cout<<"\t2\tEssentials of Food Science & Technology \t\t\t2+1\n";
                    cout<<"\t3\tBasic Mathematics/Fundamentals of Biology \t\t\t3+0\n";
                    cout<<"\t4\tEnglish-I (Comprehension)\t\t\t\t\t2+0\n";
                    cout<<"\t5\tPakistan Studies\t\t\t\t\t\t2+0\n";
                    cout<<"\t6\tIntroductory Biochemistry\t\t\t\t\t2+1\n";
                    cout<<"\n\n\t\tTotal Credits = 16 \n\n";
                    break;
                case 3:cout<<"\t\tDetails for the First Semester\n\n\n";
                cout<<"\t\t\tPHY CYCLE\n\n";
                    cout<<"\tS.No.\tSubject Name\t\t\t\t\tSubject Credits\n";
                    cout<<"\t1\tBiochemistry-1 \t\t\t\t\t\t2+1\n";
                    cout<<"\t2\tHuman Physiology-I \t\t\t\t\t2+1\n";

13
                    cout<<"\t3\tHuman Anatomy-I \t\t\t\t\t3+1\n";
                    cout<<"\t4\tEnglish-I (Comprehension)\t\t\t\t3+0\n";
                    cout<<"\t5\tIntroduction to Computing \t\t\t\t2+1\n";
                    cout<<"\t6\tPakistan Studies\t\t\t\t\t2+0\n";
                    cout<<"\n\n\t\tTotal Credits = 18 \n\n";
                    break;                     

case 4:cout<<"\t\tDetails for the First Semester\n\n\n";


                cout<<"\t\t\tPHY CYCLE\n\n";
                    cout<<"\tS.No.\tSubject Name\t\t\t\t\t\t\tSubject Credits\n";
                    cout<<"\t1\tBasic Mathematics/Fundamentals of Biology \t\t\t\t3+0\n";
                    cout<<"\t2\tIntroduction to Orthotics & Prosthetics & workshop \t\t\t4+0\n";
                    cout<<"\t3\tBehavioral Sciences (Psychiatry & Psychology) \t\t\t\t2+0\n";
                    cout<<"\t4\tIntroduction to Physics \t\t\t\t\t\t3+0\n";
                    cout<<"\t5\tIntroduction to Computing Applications \t\t\t\t\t2+1\n";
                    cout<<"\t6\tIslamic Studies / Ethics\t\t\t\t\t\t2+0\n";
                    cout<<"\n\n\t\tTotal Credits = 17 \n\n";
                    break;
    }
                    break;
          }
case 8: {
            cout<<"\n\nPrograms Offered in Department of Management & Social Sciences\n\n\n";
                        cout<<"Please Select Your Program\n\n";
                        cout<<"1.Bachelor Of Technology Civil \n";
                        cout<<"2.Bachelor Of Technology Electrical \n";
                        cout<<"3.Bachelor Of Technology Mechanical \n";
                        cout<<"\nPlease Enter your Program \n";
                  cin>>op;
                switch(op){
            case 1:cout<<"\t\tDetails for the First TRIMESTER\n\n\n";
                cout<<"\t\t\tPHY CYCLE\n\n";
                    cout<<"\tS.No.\tSubject Name\t\t\t\t\tSubject Credits\n";
                    cout<<"\t1\tCalculus - I \t\t\t\t\t\t3+0\n";
                    cout<<"\t2\tConcrete Technology \t\t\t\t\t2+1\n";
                    cout<<"\t3\tApplied Physics \t\t\t\t\t3+0\n";
                    cout<<"\t4\tComputer Fundamentals\t\t\t\t\t2+1\n";

                    cout<<"\n\n\t\tTotal Credits = 12 \n\n";


                    break;
            case 2:cout<<"\t\tDetails for the First TRIMESTER\n\n\n";
                cout<<"\t\t\tPHY CYCLE\n\n";
                    cout<<"\tS.No.\tSubject Name\t\t\t\t\t\tSubject Credits\n";
                    cout<<"\t1\tCalculus - I \t\t\t\t\t\t\t3+0\n";
                    cout<<"\t2\tBasic Electrical Technology \t\t\t\t\t2+1\n";
                    cout<<"\t3\tApplied Physics \t\t\t\t\t\t3+0\n";
                    cout<<"\t4\tComputer Fundamentals\t\t\t\t\t\t2+1\n";
                    cout<<"\n\n\t\tTotal Credits = 12 \n\n";
                    break;
                case 3:cout<<"\t\tDetails for the First TRIMESTER\n\n\n";
                cout<<"\t\t\tPHY CYCLE\n\n";
                    cout<<"\tS.No.\tSubject Name\t\t\t\t\tSubject Credits\n";
                    cout<<"\t1\tCalculus - I \t\t\t\t\t\t3+0\n";
                    cout<<"\t2\tMachining Processes \t\t\t\t\t2+1\n";
                    cout<<"\t3\tApplied Physics \t\t\t\t\t3+0\n";
                    cout<<"\t4\tComputer Fundamentals\t\t\t\t\t2+1\n";
                    cout<<"\n\n\t\tTotal Credits = 12 \n\n";
                    break;                     

14
    }
                    break;
          }
case 9: cout<<"\t\tDetails for the First Semester\n\n\n";
                cout<<"\t\t\tPHY CYCLE\n\n";
                    cout<<"\tS.No.\tSubject Name\t\t\t\t\t\tSubject Credits\n";
                    cout<<"\t1\tEnglish I (Functional English) \t\t\t\t\t3+0\n";
                    cout<<"\t2\tIntroduction to Computing \t\t\t\t\t2+1\n";
                    cout<<"\t3\tCalculus and Analytical Geometry \t\t\t\t3+0\n";
                    cout<<"\t4\tPhysics-I\t\t\t\t\t\t\t3+1\n";
                    cout<<"\t5\tIslamic Studies/Ethics (for Non-Muslims) \t\t2+0\n";
                    cout<<"\n\n\t\tTotal Credits = 15 \n\n";
                    break;
    case 10: {
            cout<<"\n\nPrograms Offered in Department of Management & Social Sciences\n\n\n";
                        cout<<"Please Select Your Program\n\n";
                        cout<<"1.BS in Statistics \n";
                        cout<<"2.BS in Mathematics \n";
                        cout<<"\nPlease Enter your Program \n";
                  cin>>op;
                switch(op){
            case 1:cout<<"\t\tDetails for the First Semester\n\n\n";
                cout<<"\t\t\tPHY CYCLE\n\n";
                    cout<<"\tS.No.\tSubject Name\t\t\t\t\tSubject Credits\n";
                    cout<<"\t1\tCalculus-I \t\t\t\t\t\t3+0\n";
                    cout<<"\t2\tIntroduction to Statistics \t\t\t\t3+0\n";
                    cout<<"\t3\tIntroduction to Economics \t\t\t\t3+0\n";
                    cout<<"\t4\tEnglish-I (Comprehension)\t\t\t\t3+0\n";
                    cout<<"\t5\tIslamic Studies/Ethics (for Non-Muslims)\t\t2+0\n";
                    cout<<"\t6\tIntroduction to Computing\t\t\t\t3+0\n";
                    cout<<"\n\n\t\tTotal Credits = 17 \n\n";
                    break;
            case 2:cout<<"\t\tDetails for the First Semester\n\n\n";
                    cout<<"\tS.No.\tSubject Name\t\t\t\t\tSubject Credits\n";
                cout<<"\t1\tCalculus-I \t\t\t\t\t\t4+0\n";
                    cout<<"\t2\tMathematical Thinking \t\t\t\t\t3+0\n";
                    cout<<"\t3\tIntroduction to Economics \t\t\t\t3+0\n";
                    cout<<"\t4\tEnglish-I (Comprehension)\t\t\t\t3+0\n";
                    cout<<"\t5\tIslamic Studies/Ethics (for Non-Muslims)\t\t2+0\n";
                    cout<<"\t6\tIntroduction to Computing\t\t\t\t2+1\n";
                    cout<<"\n\n\t\tTotal Credits = 17 \n\n";
                    break;
                

    }
                    break;
                    }  
            default :break;
}
cout<<"\nPress any key to continue";
    getch();
return choice;
        }
void fees_details(){
    cout<<"\n\nFEES DETAILS:\n\n";
    cout<<"Select the Course \n\n";
    cout<<"\n1.B.E\n\n2.Exit\n\n";

15
    cin>>feec;
    switch(feec){
     case 1:
            cout<<"\t\t\t\nB.E.\n";
            cout<<"\n\nEnter The Admission Type:-\n";
            cout<<"\n1.CET \n\n2.COMEDK-UGET\n\n3.Management Quota\n\n4.Degree Program\n\n5.OTHER FEE\n\n";
            cin>>bec;
            if(bec==1){
                cout<<"\n\n\t\t\tCET\n\n";
                cout<<"\n\n\t\tFees per Year"<<endl;
                cout<<"\nTution Fees= 36,000/-"<<endl;
                cout<<"\nCollege University Fees = 60,000/-\n"<<endl;
                cout<<"\nHostel Fees"<<endl;
                cout<<"\nCaution Deposit = 10,000/-"<<endl;                
                cout<<"\nHostel Fees = 90,000/-\n\n"<<endl;
                }

             else if(bec==2){
                cout<<"\n\n\t\tCOMEDK-UGET\n";
                cout<<"\n\n\t\tFees per Year\n";
                cout<<"\nTution Fees= 50,000/-";
                cout<<"\nCollege University Fees = 1,50,000/-\n\n";
                cout<<"\nHostel Fees\n";
                cout<<"\nCaution Deposit = 10,000/-";                
                cout<<"\nHostel Fees = 90,000/-\n";
                }   

            else if(bec==3){
                cout<<"\n\n\t\t\tManagement Seat\n";
                cout<<"\n\n\t\t\tFees per Year\n";
                cout<<"\nTution Fees= 1,00,000/-";
                cout<<"\nCollege University Fees = 1,50,000/-\n\n";
                cout<<"\nHostel Fees\n";
                cout<<"\nCaution Deposit = 10,000/-";                
                cout<<"\nHostel Fees = 90,000/-\n\n";
            }
        else if(bec==4){
         cout<<"TUITION FEE (per credit hour)"<<endl;
         cout<<"B.Tech (Civil/Electrica/Mechanicall) PKR 22000/-"<<endl;
            cout<<"BE- Civil Engineering PKR 7125/-"<<endl;
            cout<<"MS- Project Management PKR 4600/-"<<endl;
            cout<<"MS- Management Science PKR 4600/-"<<endl;
            cout<<"MS- Electrical Engineering PKR 4600/-"<<endl;
            cout<<"MS- Software Engineering PKR 4600/-"<<endl;
            cout<<"MS- Computer Science PKR 4600/-"<<endl;
            cout<<"MS - Data Science PKR 4500/-"<<endl;
            cout<<"BE- Electrical Engineering PKR 4200/-"<<endl;
            cout<<"M.Phil - Micro Biology PKR 4100/-"<<endl;
            cout<<"Pharm-D PKR 3895/-"<<endl;
            cout<<"DPT PKR 3050/-"<<endl;
            cout<<"BS- Software Engineering PKR 3000/-"<<endl;
            cout<<"BS- Computer Science PKR 2560/-"<<endl;
            cout<<"BS- Microbiology PKR 2400/-"<<endl;
            cout<<"BS - MLT PKR 2350/-"<<endl;
            cout<<"BS - HN & Dietetics PKR 2300/-"<<endl;
            cout<<"BS-Electronics PKR 2300/-"<<endl;
            cout<<"BS Prosthetics & Orthotics PKR 2300/-"<<endl;
            cout<<"BS Radiology Technology PKR 2300/-"<<endl;

16
            cout<<"BS - Fashion and Design PKR 2300/-"<<endl;
            cout<<"BS - Psychology PKR 2300/-"<<endl;
            cout<<"BS - English PKR 2300/-"<<endl;
            cout<<"BS - Human Nutrition and dietetics PKR 2250/-"<<endl;
            cout<<"B.Ed (Hons) PKR 2150/-"<<endl;
            cout<<"BS - Mass Communication PKR 2150/-"<<endl;
            cout<<"BS - Mathematics PKR 2150/-"<<endl;
            cout<<"BS - Environmental sciences PKR 2150/-"<<endl;
            cout<<"BS - Biochemistry PKR 2150/-"<<endl;
            cout<<"BBA PKR 2150/-"<<endl;
            cout<<"BS - T&H Management PKR 2150/-"<<endl;
            cout<<"BS - Statistics PKR 2100/-"<<endl;
            cout<<"Bachelor in Business Administration PKR 2100/-"<<endl;
            
}
else{
cout<<"cCr. Hour Transfer Fee 1,000/-"<<endl;
                cout<<"Admission Fee (One Time) 10,000/-"<<endl;
                cout<<"Security Fee (One Time) 10,000/-"<<endl;
                cout<<"Semester Registration/Misc Fee (Per Semester) 10,000/-"<<endl;
                cout<<"Semester Freeze Fee 10,000/-"<<endl;
                cout<<"Paper Retake Fee (Per Paper) 3000/-"<<endl;
                cout<<"Paper Recheck Fee (Per Paper) 2,000/-"<<endl;
                cout<<"Course Exemption Fee2,000/-"<<endl;
                cout<<"Prospectus Fee 1,000/-"<<endl;
}
    default:    break;
}
cout<<"\nPress any key to continue";
     getch();
    }
     void RegisteredUsers(){   
    float adminid;
    int Found=0;
    char s;

    // opening the admin file


    if((admin_id=fopen("admin_id.txt","r"))==NULL) {
        cout<<" ! No Registered User...\n\n";
    } 
    else {
        cout<<"\nEnter The Administrator ID: ";
        cin>>adminid;
        while(!feof(admin_id)&& Found==0) {
            fscanf(admin_id,"%f",&host.id);
            if(adminid==host.id) {
                Found=1;
            }
        }
        if(Found) {
            student_detail = fopen("student_details.txt","r");
            while((s=fgetc(student_detail))!=EOF) {
                 cout<<s;
                }

                fclose(student_detail);
            }
        

17
        else if(!Found) {
            cout<<"Please Enter the Correct Administrator ID\n\n";
            fclose(admin_id);
        }
    }
    cout<<"\nPress any key to continue";
    getch();
   }
};
class Finance{
public:
int choice,op;
float totalfee,Tution_fee,cr_h,Admission_fee,Semester_fee,security_fee,fee,scholarship;
public:
Finance(){
choice=0;
op=0;
totalfee=0;
Tution_fee=0;
cr_h=0;
Admission_fee=10000;
Semester_fee=10000;
security_fee=10000;
fee=0;
scholarship=0;
}
public:
int Challan(){
cout<<"\n\nChallan Form\n\n\n";
            cout<<"1.BSSE \n";
            cout<<"2.BSCS\n";
            cout<<"3.BEEE\n";
            cout<<"4.BECE\n";
            cout<<"5.BS PharmD\n";
            cout<<"6.BSMB\n";
            cout<<"7.BS MLT\n";
            cout<<"8.BS Biochemistry\n";
            cout<<"9.BS DPT\n";
            cout<<"10.BS HND\n";
            cout<<"11.BSRT\n";
            cout<<"12.BSPO\n";
            cout<<"13.BS English\n";
            cout<<"14.BS in Psychology\n";
            cout<<"15.BS in T&H Management\n";
            cout<<"16.BS Maths\n";
            cout<<"17.BS statics\n";
            cout<<"18.BBA\n";
          
            cout<<"Please Select Your Applied Degreen\n\n";
            cin>>choice;
            switch(choice){
             case 1: cr_h=18;
                     Tution_fee=cr_h*3000;
        fee=Admission_fee+Semester_fee+security_fee+Tution_fee;
    scholarship=(form.perc1*fee)/100;
    totalfee=fee-scholarship;
    cout<<"Admission Fee is: "<<Admission_fee<<endl;
                     cout<<"Semester Fee is: "<<Semester_fee<<endl;

18
                     cout<<"Security Fee is: "<<security_fee<<endl;
                     cout<<"Tution Fee is: "<<Tution_fee<<endl; 
                     cout<<"Total Credit Hours: "<<cr_h<<endl;
                     cout<<"Total Fee is: "<<fee<<endl;
                     cout<<"Scholarshio: "<<form.perc1<<"% and PKR "<<scholarship<<"/-"<<endl;
                     cout<<"Total Payable Fee: "<<totalfee<<endl;
                break;     
            case 2: cr_h=18;
                     Tution_fee=cr_h*2560;
        fee=Admission_fee+Semester_fee+security_fee+Tution_fee;
    scholarship=(form.perc1*fee)/100;
    totalfee=fee-scholarship;
    cout<<"Admission Fee is: "<<Admission_fee<<endl;
                     cout<<"Semester Fee is: "<<Semester_fee<<endl;
                     cout<<"Security Fee is: "<<security_fee<<endl;
                     cout<<"Tution Fee is: "<<Tution_fee<<endl; 
                     cout<<"Total Fee is: "<<fee<<endl;
                     cout<<"Scholarshio: "<<form.perc1<<"% and PKR "<<scholarship<<"/-"<<endl;
                     cout<<"Total Payable Fee: "<<totalfee<<endl;
            break;
            case 3: cr_h=15;
                     Tution_fee=cr_h*4200;
        fee=Admission_fee+Semester_fee+security_fee+Tution_fee;
    scholarship=(form.perc1*fee)/100;
    totalfee=fee-scholarship;
    cout<<"Admission Fee is: "<<Admission_fee<<endl;
                     cout<<"Semester Fee is: "<<Semester_fee<<endl;
                     cout<<"Security Fee is: "<<security_fee<<endl;
                     cout<<"Tution Fee is: "<<Tution_fee<<endl; 
                     cout<<"Total Fee is: "<<fee<<endl;
                     cout<<"Scholarshio: "<<form.perc1<<"% and PKR "<<scholarship<<"/-"<<endl;
                     cout<<"Total Payable Fee: "<<totalfee<<endl;
            break;
            case 4: cr_h=32;
                     Tution_fee=cr_h*7125;
        fee=Admission_fee+Semester_fee+security_fee+Tution_fee;
    scholarship=(form.perc1*fee)/100;
    totalfee=fee-scholarship;
    cout<<"Admission Fee is: "<<Admission_fee<<endl;
                     cout<<"Semester Fee is: "<<Semester_fee<<endl;
                     cout<<"Security Fee is: "<<security_fee<<endl;
                     cout<<"Tution Fee is: "<<Tution_fee<<endl; 
                     cout<<"Total Fee is: "<<fee<<endl;
                     cout<<"Scholarshio: "<<form.perc1<<"% and PKR "<<scholarship<<"/-"<<endl;
                     cout<<"Total Payable Fee: "<<totalfee<<endl;
                break;
            case 5: cr_h=17;
                     Tution_fee=cr_h*3895;
        fee=Admission_fee+Semester_fee+security_fee+Tution_fee;
    scholarship=(form.perc1*fee)/100;
    totalfee=fee-scholarship;
    cout<<"Admission Fee is: "<<Admission_fee<<endl;
                     cout<<"Semester Fee is: "<<Semester_fee<<endl;
                     cout<<"Security Fee is: "<<security_fee<<endl;
                     cout<<"Tution Fee is: "<<Tution_fee<<endl; 
                     cout<<"Total Fee is: "<<fee<<endl;
                     cout<<"Scholarshio: "<<form.perc1<<"% and PKR "<<scholarship<<"/-"<<endl;
                     cout<<"Total Payable Fee: "<<totalfee<<endl;

19
            break;
            case 6: cr_h=17;
                     Tution_fee=cr_h*2400;
        fee=Admission_fee+Semester_fee+security_fee+Tution_fee;
    scholarship=(form.perc1*fee)/100;
    totalfee=fee-scholarship;
    cout<<"Admission Fee is: "<<Admission_fee<<endl;
                     cout<<"Semester Fee is: "<<Semester_fee<<endl;
                     cout<<"Security Fee is: "<<security_fee<<endl;
                     cout<<"Tution Fee is: "<<Tution_fee<<endl; 
                     cout<<"Total Fee is: "<<fee<<endl;
                     cout<<"Scholarshio: "<<form.perc1<<"% and PKR "<<scholarship<<"/-"<<endl;
                     cout<<"Total Payable Fee: "<<totalfee<<endl;
            break;
            case 7: cr_h=20;
                     Tution_fee=cr_h*2350;
        fee=Admission_fee+Semester_fee+security_fee+Tution_fee;
    scholarship=(form.perc1*fee)/100;
    totalfee=fee-scholarship;
    cout<<"Admission Fee is: "<<Admission_fee<<endl;
                     cout<<"Semester Fee is: "<<Semester_fee<<endl;
                     cout<<"Security Fee is: "<<security_fee<<endl;
                     cout<<"Tution Fee is: "<<Tution_fee<<endl; 
                     cout<<"Total Fee is: "<<fee<<endl;
                     cout<<"Scholarshio: "<<form.perc1<<"% and PKR "<<scholarship<<"/-"<<endl;
                     cout<<"Total Payable Fee: "<<totalfee<<endl;
            break;
            case 8: cr_h=18;
                     Tution_fee=cr_h*2150;
        fee=Admission_fee+Semester_fee+security_fee+Tution_fee;
    scholarship=(form.perc1*fee)/100;
    totalfee=fee-scholarship;
    cout<<"Admission Fee is: "<<Admission_fee<<endl;
                     cout<<"Semester Fee is: "<<Semester_fee<<endl;
                     cout<<"Security Fee is: "<<security_fee<<endl;
                     cout<<"Tution Fee is: "<<Tution_fee<<endl; 
                     cout<<"Total Fee is: "<<fee<<endl;
                     cout<<"Scholarshio: "<<form.perc1<<"% and PKR "<<scholarship<<"/-"<<endl;
                     cout<<"Total Payable Fee: "<<totalfee<<endl;
            break;
            case 9: cr_h=15;
                     Tution_fee=cr_h*3050;
        fee=Admission_fee+Semester_fee+security_fee+Tution_fee;
    scholarship=(form.perc1*fee)/100;
    totalfee=fee-scholarship;
    cout<<"Admission Fee is: "<<Admission_fee<<endl;
                     cout<<"Semester Fee is: "<<Semester_fee<<endl;
                     cout<<"Security Fee is: "<<security_fee<<endl;
                     cout<<"Tution Fee is: "<<Tution_fee<<endl; 
                     cout<<"Total Fee is: "<<fee<<endl;
                     cout<<"Scholarshio: "<<form.perc1<<"% and PKR "<<scholarship<<"/-"<<endl;
                     cout<<"Total Payable Fee: "<<totalfee<<endl;
            break;
            case 10: cr_h=16;
                     Tution_fee=cr_h*2300;
        fee=Admission_fee+Semester_fee+security_fee+Tution_fee;
    scholarship=(form.perc1*fee)/100;
    totalfee=fee-scholarship;

20
    cout<<"Admission Fee is: "<<Admission_fee<<endl;
                     cout<<"Semester Fee is: "<<Semester_fee<<endl;
                     cout<<"Security Fee is: "<<security_fee<<endl;
                     cout<<"Tution Fee is: "<<Tution_fee<<endl; 
                     cout<<"Total Fee is: "<<fee<<endl;
                     cout<<"Scholarshio: "<<form.perc1<<"% and PKR "<<scholarship<<"/-"<<endl;
                     cout<<"Total Payable Fee: "<<totalfee<<endl;
            break;
            case 11: cr_h=18;
                     Tution_fee=cr_h*2300;
        fee=Admission_fee+Semester_fee+security_fee+Tution_fee;
    scholarship=(form.perc1*fee)/100;
    totalfee=fee-scholarship;
    cout<<"Admission Fee is: "<<Admission_fee<<endl;
                     cout<<"Semester Fee is: "<<Semester_fee<<endl;
                     cout<<"Security Fee is: "<<security_fee<<endl;
                     cout<<"Tution Fee is: "<<Tution_fee<<endl; 
                     cout<<"Total Fee is: "<<fee<<endl;
                     cout<<"Scholarshio: "<<form.perc1<<"% and PKR "<<scholarship<<"/-"<<endl;
                     cout<<"Total Payable Fee: "<<totalfee<<endl;
            break;
            case 12: cr_h=17;
                     Tution_fee=cr_h*2300;
        fee=Admission_fee+Semester_fee+security_fee+Tution_fee;
    scholarship=(form.perc1*fee)/100;
    totalfee=fee-scholarship;
    cout<<"Admission Fee is: "<<Admission_fee<<endl;
                     cout<<"Semester Fee is: "<<Semester_fee<<endl;
                     cout<<"Security Fee is: "<<security_fee<<endl;
                     cout<<"Tution Fee is: "<<Tution_fee<<endl; 
                     cout<<"Total Fee is: "<<fee<<endl;
                     cout<<"Scholarshio: "<<form.perc1<<"% and PKR "<<scholarship<<"/-"<<endl;
                     cout<<"Total Payable Fee: "<<totalfee<<endl;
            break;
            case 13: cr_h=17;
                     Tution_fee=cr_h*2300;
        fee=Admission_fee+Semester_fee+security_fee+Tution_fee;
    scholarship=(form.perc1*fee)/100;
    totalfee=fee-scholarship;
    cout<<"Admission Fee is: "<<Admission_fee<<endl;
                     cout<<"Semester Fee is: "<<Semester_fee<<endl;
                     cout<<"Security Fee is: "<<security_fee<<endl;
                     cout<<"Tution Fee is: "<<Tution_fee<<endl; 
                     cout<<"Total Fee is: "<<fee<<endl;
                     cout<<"Scholarshio: "<<form.perc1<<"% and PKR "<<scholarship<<"/-"<<endl;
                     cout<<"Total Payable Fee: "<<totalfee<<endl;
            break;
                case 14: cr_h=17;
                     Tution_fee=cr_h*2300;
        fee=Admission_fee+Semester_fee+security_fee+Tution_fee;
    scholarship=(form.perc1*fee)/100;
    totalfee=fee-scholarship;
    cout<<"Admission Fee is: "<<Admission_fee<<endl;
                     cout<<"Semester Fee is: "<<Semester_fee<<endl;
                     cout<<"Security Fee is: "<<security_fee<<endl;
                     cout<<"Tution Fee is: "<<Tution_fee<<endl; 
                     cout<<"Total Fee is: "<<fee<<endl;
                     cout<<"Scholarshio: "<<form.perc1<<"% and PKR "<<scholarship<<"/-"<<endl;

21
                     cout<<"Total Payable Fee: "<<totalfee<<endl;
            break; 
    case 15: cr_h=17;
                     Tution_fee=cr_h*2150;
        fee=Admission_fee+Semester_fee+security_fee+Tution_fee;
    scholarship=(form.perc1*fee)/100;
    totalfee=fee-scholarship;
    cout<<"Admission Fee is: "<<Admission_fee<<endl;
                     cout<<"Semester Fee is: "<<Semester_fee<<endl;
                     cout<<"Security Fee is: "<<security_fee<<endl;
                     cout<<"Tution Fee is: "<<Tution_fee<<endl; 
                     cout<<"Total Fee is: "<<fee<<endl;
                     cout<<"Scholarshio: "<<form.perc1<<"% and PKR "<<scholarship<<"/-"<<endl;
                     cout<<"Total Payable Fee: "<<totalfee<<endl;
            break;
            case 16: cr_h=17;
                     Tution_fee=cr_h*2150;
        fee=Admission_fee+Semester_fee+security_fee+Tution_fee;
    scholarship=(form.perc1*fee)/100;
    totalfee=fee-scholarship;
    cout<<"Admission Fee is: "<<Admission_fee<<endl;
                     cout<<"Semester Fee is: "<<Semester_fee<<endl;
                     cout<<"Security Fee is: "<<security_fee<<endl;
                     cout<<"Tution Fee is: "<<Tution_fee<<endl; 
                     cout<<"Total Fee is: "<<fee<<endl;
                     cout<<"Scholarshio: "<<form.perc1<<"% and PKR "<<scholarship<<"/-"<<endl;
                     cout<<"Total Payable Fee: "<<totalfee<<endl;
            break;
case 17: cr_h=17;
                     Tution_fee=cr_h*2100;
        fee=Admission_fee+Semester_fee+security_fee+Tution_fee;
    scholarship=(form.perc1*fee)/100;
    totalfee=fee-scholarship;
    cout<<"Admission Fee is: "<<Admission_fee<<endl;
                     cout<<"Semester Fee is: "<<Semester_fee<<endl;
                     cout<<"Security Fee is: "<<security_fee<<endl;
                     cout<<"Tution Fee is: "<<Tution_fee<<endl; 
                     cout<<"Total Fee is: "<<fee<<endl;
                     cout<<"Scholarshio: "<<form.perc1<<"% and PKR "<<scholarship<<"/-"<<endl;
                     cout<<"Total Payable Fee: "<<totalfee<<endl;
    break;
case 18: cr_h=15;
                     Tution_fee=cr_h*2150;
        fee=Admission_fee+Semester_fee+security_fee+Tution_fee;
    scholarship=(form.perc1*fee)/100;
    totalfee=fee-scholarship;
    cout<<"Admission Fee is: "<<Admission_fee<<endl;
                     cout<<"Semester Fee is: "<<Semester_fee<<endl;
                     cout<<"Security Fee is: "<<security_fee<<endl;
                     cout<<"Tution Fee is: "<<Tution_fee<<endl; 
                     cout<<"Total Fee is: "<<fee<<endl;
                     cout<<"Scholarshio: "<<form.perc1<<"% and PKR "<<scholarship<<"/-"<<endl;
                     cout<<"Total Payable Fee: "<<totalfee<<endl;
break;
            default :break;
}
             return choice; 
}

22
};
class AdmissionForm{
public:
int check_id;
        int branchcode;
        Administator a;
        Finance f;
        char math[];
    char  lscie[];
    char civ[];
    char cse[];
    char socs[];
    char eee[];
    public:
        AdmissionForm(){
         check_id=0;
            branchcode=0;
}
public:  
    void PersonalDetails(){
     student_detail = fopen("student_details.txt","a+");
    student_id = fopen("student_id.txt","a+");
    cout<<" \t \t STUDENT ADMISSION FORM \n";
    cout<<"\n\t\t\t\t\tuse underscore\"_\" for space\n";
    cout<<"\n1.Personal Details \n \n \n";
    cout<<"Create Your Unique User Id\n";
    cin>>form.uniq_id;
    while(!feof(student_id)) {
        fscanf(student_id,"%d",&check_id);
        if(form.uniq_id==check_id) {
            cout<<"\nSorry this ID has been taken please select a different ID\n";
            return;
        }
    }
    cout<<"Enter Your Name \n \n";
    getchar();
    gets(form.Name);
    cout<<"Enter the DOB in DD/MM/YYYY format \n \n";
    gets(form.dob);
    cout<<"Enter Your Gender : \n \n";
    cin>>form.Gender;
    cout<<"Enter Your Religion \n \n";
    cin>>form.Religion;
    cout<<"Enter Your Nationality \n \n";
    cin>>form.Nationality;
    cout<<"Enter Your Permanent Address \n \n";
    getchar();
    gets(form.Address);
    cout<<"Enter Your City:\n \n";
    gets(form.City);
    cout<<"Enter Your Father's Name: \n \n";
    gets(form.Father_Name);
    cout<<"Enter Your Father's Occupation \n \n";
    gets(form.Father_Occupation);
    cout<<"Enter Your Mother's Name:  \n \n";
    gets(form.Mother_Name);
    cout<<"Enter Your Mother's Occupation \n \n";
    gets(form.Mother_Occupation);

23
    cout<<"Enter Your Father's Income: \n \n";
    cin>>form.father_income;
    cout<<"Enter Your Mother's Income: \n \n";
    cin>>form.mother_income;
   }
    void AddAcademicDetails(){
     while(!feof(student_id)) {
        fscanf(student_id,"%d",&check_id);
        if(form.uniq_id==check_id) {
            //cout<<"\nSorry this ID has been taken please select a different ID\n";
            return;
        }
    }
     cout<<"\n2.Academic Details \n \n \n";
        cout<<" \t Class 10th  \n\n";
        cout<<"\nName of Board\nName of School\nState";
        cout<<"\n\n";
        getchar();
        gets(form.Name_b);
        gets(form.Name_school);
        gets(form.school_s);
        cout<<"\nMax Marks\nMarks Obtained\nPercentage\nyear of passing";
        cout<<"\n\n";
        gets(form.maxmarks);
        gets(form.marksob);
        gets(form.perc);
        gets(form.yop);
        cout<<" \t Class 12th  \n\n";
        cout<<"\nName of Board\nName of School\nState";
        cout<<"\n\n";
        gets(form.Name_b1);
        gets(form.Name_school1);
        gets(form.school_s1);
        cout<<"\nMax Marks\nMarks Obtained\nPercentage\nyear of passing";
        cout<<"\n\n";
        gets(form.maxmarks1);
        gets(form.marksob1);
        cin>>form.perc1;
        cin>>form.yop1;
        cout<<"Enter If you Have a Migration Certificate or not? \n";
        gets(form.mig);
        cout<<"Enter If you Have a Transfer Certificate or not \n";
        gets(form.tc);
        cout<<"Create Challan"<<endl;
    f.Challan();
    fprintf(student_id,"\n%d",form.uniq_id);
            fclose(student_id);
            fprintf(student_detail,"\n\n\nUnique ID:%d \t\t\n \n The Name of Student:%s\n\n Branch:%s\n \n DOB of student:%s\
n \n Gender of the student:%s\n \n Religion of the student:%s\n \n Nationality of the student:%s\n \n Address :%s\n \n City :
%s\n \n Father's Name:%s\n \n Father's Occupation:%s\n \n Mother's Name:%s\n \n Mother's Occupation:%s\n \n Father's
Income:%s\n \n Mother's Income:%s\n \n Name of Board of Class 10th:%s\n \n Name of School of Class 10th:%s\n \n Name of
School State of Class 10th:%s\n \n Max Marks:%s\n \n Marks Obtained:%s\n \nPercentage:%s\n \n Year of Passing:%s\n \n
Name of Board of Class 12th:%s\n \n Name of School of Class 12th:%s\n \n Name of School State of Class 12th:%s\n \n Max
Marks:%s\n \n Marks Obtained:%s\n \n Percentage:%s\n \n Year of Passing:%s\n \n Migration Card:%s\n \n Transfer
Certificate:%s\n\
n",form.uniq_id,form.Name,form.branch,form.dob,form.Gender,form.Religion,form.Nationality,form.Address,form.City,form.F
ather_Name,form.Father_Occupation,form.Mother_Name,form.Mother_Occupation,form.father_income,form.mother_incom

24
e,form.Name_b,form.Name_school,form.school_s,form.maxmarks,form.marksob,form.perc,form.yop,form.Name_b1,form.Na
me_school1,form.school_s1,form.maxmarks1,form.marksob1,form.perc1,form.yop1,form.mig,form.tc);
            fclose(student_detail);
            cout<<"\n\nThankyou For Submitting the Admission form!\n";
        branchcode=a.show_academic_details();

        if (branchcode==1)
            strcpy(form.branch,math);
        else if (branchcode==2)
            strcpy(form.branch,lscie);
        else if (branchcode==3)
            strcpy(form.branch,civ);
        else if (branchcode==4)
            strcpy(form.branch,cse);
        else if (branchcode==5)
            strcpy(form.branch,socs);
        else if (branchcode==6)
            strcpy(form.branch,eee);
}        
void ShowAcademicDetails(){
float adminid;
    int Found=0;
    char s;

    // opening the admin file


    if((admin_id=fopen("admin_id.txt","r"))==NULL) {
        cout<<" ! No Registered User...\n\n";
    } 
    else {
        cout<<"\nSearch through student Unique User Id\n ";
        cin>>adminid;
        while(!feof(admin_id)&& Found==0) {
            fscanf(admin_id,"%f",&host.id);
            if(adminid==host.id) {
                Found=1;
            }
        }
        if(Found) {
            student_detail = fopen("student_details.txt","r");
            while((s=fgetc(student_detail))!=EOF) {
                 cout<<s;
                 cout<<"\n2.Academic Details of \n \n \n"<<student_id;
        cout<<" \t Class 10th  \n\n";
        cout<<"\nName of Board: "<<form.Name_b<<endl;
cout<<"\nName of School: "<<form.Name_school<<endl;
cout<<"\nState: "<<form.school_s<<endl;
        cout<<"\n\n";
        cout<<"\nMax Marks: "<<form.maxmarks<<endl;
cout<<"\nMarks Obtained: "<<form.marksob<<endl;
cout<<"\nPercentage: "<<form.perc<<endl;
cout<<"\nyear of passing: "<<form.yop<<endl;
        cout<<"\n\n";
        cout<<" \t Class 12th  \n\n";
        cout<<"\nName of Board\nName of School\nState";
        cout<<"\nName of Board: "<<form.Name_b1<<endl;
cout<<"\nName of School: "<<form.Name_school1<<endl;
cout<<"\nState: "<<form.school_s1<<endl;
        cout<<"\n\n";

25
        cout<<"\nMax Marks: "<<form.maxmarks1<<endl;
cout<<"\nMarks Obtained: "<<form.marksob1<<endl;
cout<<"\nPercentage: "<<form.perc1<<endl;
cout<<"\nyear of passing: "<<form.yop1<<endl;
        cout<<"\n\n";
                
                }

                fclose(student_detail);
            }
        
        else if(!Found) {
            cout<<"Please Enter the Correct Administrator ID\n\n";
            fclose(admin_id);
        }
    }
    cout<<"\nPress any key to continue";
    getch();    
}        

    void DisplayAdmissionForm(){
fprintf(student_id,"\n%d",form.uniq_id);
        fclose(student_id);
        fprintf(student_detail,"\n\n\nUnique ID:%d \t\t\n \n The Name of Student:%s\n\n Branch:%s\n \n DOB of student:%s\n \n
Gender of the student:%s\n \n Religion of the student:%s\n \n Nationality of the student:%s\n \n Address :%s\n \n City :%s\n \
n Father's Name:%s\n \n Father's Occupation:%s\n \n Mother's Name:%s\n \n Mother's Occupation:%s\n \n Father's Income:
%s\n \n Mother's Income:%s\n \n Name of Board of Class 10th:%s\n \n Name of School of Class 10th:%s\n \n Name of School
State of Class 10th:%s\n \n Max Marks:%s\n \n Marks Obtained:%s\n \nPercentage:%s\n \n Year of Passing:%s\n \n Name of
Board of Class 12th:%s\n \n Name of School of Class 12th:%s\n \n Name of School State of Class 12th:%s\n \n Max Marks:%s\
n \n Marks Obtained:%s\n \n Percentage:%s\n \n Year of Passing:%s\n \n Migration Card:%s\n \n Transfer Certificate:%s\n\
n",form.uniq_id,form.Name,form.branch,form.dob,form.Gender,form.Religion,form.Nationality,form.Address,form.City,form.F
ather_Name,form.Father_Occupation,form.Mother_Name,form.Mother_Occupation,form.father_income,form.mother_incom
e,form.Name_b,form.Name_school,form.school_s,form.maxmarks,form.marksob,form.perc,form.yop,form.Name_b1,form.Na
me_school1,form.school_s1,form.maxmarks1,form.marksob1,form.perc1,form.yop1,form.mig,form.tc);
        fclose(student_detail);
        //cout<<"\nPress any key to continue";
        //getch();
}    
};
class Student{
public:
int id;
        int passcord;
        Administator a;
        AdmissionForm af;
        Finance f;
    public:
        AdmissionOffice(){
         id=0;
            //branchcode=0;
}
public:
void OnlineForm(){
cout<<"Personal Details"<<endl;
af.PersonalDetails();
af.AddAcademicDetails();
}

26
};

class AdmissionOffice{
public:
int check_id;
        int branchcode;
        Administator a;
        AdmissionForm af;
    public:
        AdmissionOffice(){
         check_id=0;
            branchcode=0;
}
public:
void Admissions(){
a.RegisteredUsers();
}
};
class StudentAffairs{
public:
int check_id;
        int branchcode;
        Administator a;
        AdmissionForm af;
    public:
        StudentAffairs(){
         check_id=0;
            branchcode=0;
}
public:
void Documents(){
af.ShowAcademicDetails();
}
};
// main function
int main()
{
Administator a;
Student s;
Finance f;
AdmissionOffice ao;
AdmissionForm af;
StudentAffairs sa;
    char choice;
    
    for(;;) 
 {
  system("cls");
        cout<<"\n\n+-++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+--+-+--\n";
        cout<<"+ \t\t         \t\t\t+\n+\t\t    MENU\t\t\t";
        cout<<"+\n+\t\t\t\t\t\t+\n+-++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-\n";
        cout<<"+\t\t\t\t\t\t+\n+ 1.Admission/Registration\t\t\t+\n+\t\t\t\t\t\t+\n+ 2.Academic Details\t\t\t\t+\n+\t\t\t\t\t\t+\n+
3.Fees Details\t\t\t\t+\n+\t\t\t\t\t\t+\n+ 4.Show all Registrations\t\t\t+\n+\t\t\t\t\t\t+\n+ 5.Quit\t\t\t\t\t+\n+\t\t\t\t\t\t+\n+-
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+--+-+-+-+-+-";
        cout<<"\n\nEnter Your Choice? \n\n";
        cin>>choice;
        switch(choice) 
{

27
        case '1': system("cls");
                s.OnlineForm();
                break;
        case '2': a.show_academic_details();
                break;
        case '3': a.fees_details();
                break;
        case '4': a.RegisteredUsers();
                break;
        case '5': ao.Admissions();
                break;
        case '6': sa.Documents();
                break;       
        case '7': return 0;
            
        default:cout<<"Invalid input \n Please Enter correct option";
break;
        }
    }
}
Screenshots:

28
29
30
Chain of Responsibility Design Pattern:

31
Implementation in c++:
COR Scenario Created with dummy imaginary form. It is clearly described how the COR pattern will be applied on
this system and how the chain of responsibility transfers from one class to another.

Code:
#include <iostream>
#include <string>
#include<stdlib.h>
using namespace std;

class Student 
{
public:
    Student(string name) : Name(name)
    {
    cout<<"Enter your Full Name"<<endl;
cin>>Name;
cout <<"New Student "<< Name <<" ...\n";
    }

private:
    string Name;
};

class Administator

32
{
public:
    Administator() : mNextResponsibility(0){ }

public:
    void Admision(Student &p) {
        AdmisionImplementation(p);
        if (mNextResponsibility != 0) 
            mNextResponsibility->Admision(p);
    }

    virtual ~Administator() { }

    void setNextProcessor(Administator *p) {


        mNextResponsibility = p;
    }

protected:
    virtual void AdmisionImplementation(Student &a) = 0;

private:
    Administator *mNextResponsibility;
};

class Form : public Administator


{
public:
    enum AdmisionForm { Computing, EE, CE, PharmD, LifeSciences, SocialSciences };
    Form(AdmisionForm s) : AF(s) { }

private:
    void AdmisionImplementation(Student &a) {
     cout<<"**************************************************************"<<endl;
     cout<<"\t\t\tAdmission System"<<endl;
        cout <<"Fill Admission Form and upload your documents\n";
    }

    AdmisionForm AF;
};

class AdmissionOffice : public Administator


{
private:
    void AdmisionImplementation(Student &a) {
     cout<<"**************************************************************"<<endl;
     cout<<"\t\t\tAdmission Office"<<endl;
        cout <<"Got filled Admission Form\n";
    }
};

class StudentAffairs : public Administator

33
{
private:
    void AdmisionImplementation(Student &a) {
     int regno=rand();
     cout<<"**************************************************************"<<endl;
     cout<<"\t\t\tStudent Affairs"<<endl;
        cout <<"Got Documents of new Student\n";
        cout<<"Documents Verified \n";
        cout<<"Assigned Registeration Number is "<<regno<<endl;
    }
};

class Finance : public Administator


{
private:
    void AdmisionImplementation(Student &a)
    {
     cout<<"**************************************************************"<<endl;
     cout<<"\t\t\tFinance"<<endl;
     int tutionfee = rand();
     int credithours=6;
     int Totalfee=(tutionfee*credithours)*10000;
        cout <<"Challan\n";
        cout<<"Payable Fee: "<<Totalfee<<endl;
        cout<<" Tution Fee: "<<tutionfee<<endl;
        cout<<" Credit hours: "<<credithours<<endl;
    }
};

void admissionhandle(Student &admission)


{   
    Finance f;
    AdmissionOffice AO;
    StudentAffairs SA;
    Form fm(Form::Computing);
    fm.setNextProcessor(&AO);
    AO.setNextProcessor(&SA);
    SA.setNextProcessor(&f);
    fm.Admision(admission);
}

int main()
{
    Student *s = new Student("New Admissons");
    admissionhandle(*s);
    return 0;
}

34
Screenshots:

Grasp pattern:
1. High cohesion
The purpose of Administrator class is to read the registered accounts on the system and it does not
implement other unrelated things. Hence it is highly cohesive.

class Administrator  {
    // -------------- functions related to read resource
    // read the resource from File only

35
    public int readFromFile(int Registered) {
         return "No registered accounts are " Registered();
    }
}

2. Low  Coupling
Here we will demonstrate how to achieve loose coupling by applying dependency injection mechanism,
the loose coupling implementation is achieved to allow Get Admission with any class which has
implemented AdmissionForm Class.

#include<iostream>
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<conio.h>
using namespace std;
class AdmissionForm {
    public:
virtual void Admission() {}
};
class BS : public AdmissionForm {
    public:
      void Admission() {
         cout <<"Admission For BS Programs\n";
         cout<<"Eligibility Critria ..."<<endl;
         cout<<"Other Related formalities"<<endl;
      }
};
class MS : public AdmissionForm {

36
    public:
      void Admission() {
         cout <<"Admission For MS Programs\n";
         cout<<"Eligibility Criteria ..."<<endl;
         cout<<"Other Related formalities"<<endl;
      }
};
class Student{
    public: 
AdmissionForm AF;
BS b;
MS m;
public:
      int op;
    int GetAdmission() {
         cout<<"In BS or MS"<<endl;
         cout<<"Select you Degree to Apply"<<endl;
         cout<<"1. BS \n2. MS \n3. Exit\n";
         cin>>op;
        switch(op) {
            case 1:b.Admission();
                    break;
            case 2:m.Admission();
                    break;  
    case 3: return 0;            
  }        
    }
};
int main(){
Student st;
st. GetAdmission ();
    return 0;
}

37
Adapter design Pattern

Code:
#include<iostream>
#include<memory>

38
using namespace std;
 
class University
{
public:
             virtual void getScholarship() = 0;
};
class HEC
{
public:
             void getehsas() {
                             cout <<"\n\n\t\tScholorship for Universities "<< endl;
             }
};
class Goverment
{
public:
             void ScholarshipProgram()
             {
             cout <<"\n\n\t\tEhsas Scholoship program......... "<< endl;
             }
};
class Adapter : public Goverment, public HEC , public University
{
public:
             void getScholarship(){
             getehsas();
                             ScholarshipProgram();
            
             }
};
int main()
{
unique_ptr<University> scholarship = make_unique<Adapter>();
             scholarship->getScholarship();
             system("pause");
             return 0;
}

39
Screenshot: 

Strategy design pattern

40
Code:
#include <iostream>
#include <string>
using namespace std;
/*
 * Strategy
 * declares an interface common to all supported Admissions
 */
class Strategy
{
public:
    virtual ~Strategy() {
        /* ... */
    }
    virtual void AdmissionInterface(){
     cout<<"950 Marks with premedical"<<endl;
}
};

41
/*
 * Concrete Strategies
 * implement the Admission using the Strategy interface
 */
class LifeSciencesStrategy : public Strategy //Concrete Strategies 1
{
public:
    ~LifeSciencesStrategy() {
        /* ... */
    }

    void AdmissionInterface()
    {
        cout <<"Concrete Strategy 1. Life Sciences Degrees"<< endl;
    }
};

class ComputerStrategy : public Strategy //Concrete Strategies 2


{
public:
    ~ComputerStrategy() {
        /* ... */
    }

    void AdmissionInterface()
    {
        cout <<"Concrete Strategy 2. Computer Degrees"<< endl;
    }
};

class EngineeringStrategy : public Strategy //Concrete Strategies 3


{
public:
    ~EngineeringStrategy() {
        /* ... */
    }

    void AdmissionInterface()
    {
        cout <<"Concrete Strategy 3. Engineering"<< endl;
    }
};

/*
 * Context
 * maintains a reference to a Strategy object

42
 */
class Context //Context class
{
public:
    Context( Strategy* const s ) : strategy( s ) {}

    ~Context()
    {
        delete strategy;
    }

    void StudentInterface()
    {
        strategy->AdmissionInterface();
    }

private:
    Strategy *strategy;
};

int main()
{
Context c(new Strategy);
c.StudentInterface();
    Context context( new LifeSciencesStrategy() );
    context.StudentInterface();
    
    Context context1( new ComputerStrategy() );
    context1.StudentInterface();
    
    Context context2( new EngineeringStrategy() );
    context2.StudentInterface();

    return 0;
}

43
Screenshots:

State design pattern

44
Code:

#include <iostream>
using namespace std;
class Admission;
class State{
public:
State(){}
virtual ~State(){}
virtual void accept(Admission *adm);
virtual void reject(Admission *adm);
};
class Admission{
private:
State *current;
public:
Admission(State *state):current{state}{}
~Admission(){}
void set_current_state(State *state){
current=state;
}

45
void accept(){
current->accept(this);
}
void reject(){
current->reject(this);
}
};
void State::accept(Admission *adm){
cout<<"Already in Accepted State"<<endl;
return;
}
void State::reject(Admission *adm){
cout<<"Already in Rejected state"<<endl;
return;
}
class Accept_State: public State{
public:
Accept_State(){}
~Accept_State(){}
void accept(Admission *adm);
void reject(Admission *adm);
};
class Reject_State: public State{
public:
Reject_State(){}
~Reject_State(){}
void accept(Admission *adm);
void reject(Admission *adm);
};
void Accept_State::accept(Admission *adm){
State::accept(adm);
}
void Accept_State::reject(Admission *adm){
Reject_State *new_state=new Reject_State();
adm->set_current_state(new_state);
cout<<"Admission is Rejected"<<endl;
delete this;
}
void Reject_State::accept(Admission *adm){
Accept_State *new_state=new Accept_State();
adm->set_current_state(new_state);
cout<<"Admission is Accepted"<<endl;
delete this;
}
void Reject_State::reject(Admission *adm){
State::reject(adm);
return;
}

46
int main()
{
int choice;
Admission b1(new Reject_State());
cout<<"Admission Controller "<<endl;
while(true){
cout<<"Got Application. What to do next:\n1.ACCEPT\n2.Reject\n3.EXIT"<<endl;
cin>>choice;
if(choice==1){
b1.accept();
}
else if(choice==2){
b1.reject();
}
else if(choice==3){
cout<<"Exiting Admission Controller";
break;
}
}

return 0;
}

47
Screenshots:

48
Patteren in class Digram
Applied Patterns are:

1. Adapter design Pattern

2. State Design Pattern

Code:
#include<iostream>
#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<cstdio>
#include<stdlib.h>
using namespace std;
int show_academic_details();
// file pointers
FILE *student_detail;
FILE *admin_id;
FILE *student_id;

// structure for storing data of the enrolling student

49
struct admi {
int uniq_id;
char Name[50];
char dob[50];
char Gender[50];
char Religion[50];
char Nationality[50];
char Address[100];
char City[50];
char State[50];
char Father_Name[50];
char Father_Occupation[50];
char Mother_Name[50];
char Mother_Occupation[50];
char father_income[50];
char mother_income[50];
char Name_b[50];
char Name_school[50];
char school_s[50];
char maxmarks[50];
char marksob[50];
char perc[50];
char yop[50];
char Name_b1[50];
char Name_school1[50];
char school_s1[50];
char maxmarks1[50];
char marksob1[50];
char perc1[50];
char yop1[50];
char mig[50];
char tc[50];
char branch[50];
}form;

// structure for storing the administrator id


struct adminitrator {
float id;
}host;

// function for generating the admission form which will take the data of the student while enrolling.

50
// this function displays the academic details of the student based on branch
int show_academic_details()
{

//local variables for the function


int choice,op;

cout<<"\n\nAcademic Details\n\n\n";
cout<<"Please Select Your Branch\n\n";
cout<<"1.Department of Computing \n";
cout<<"2.Department of Electrical Engineering\n";
cout<<"3.Department of Management & Social Sciences \n";
cout<<"4.Department of Civil Engineering\n";
cout<<"5.Department of Pharmacy\n";
cout<<"6.Department of Life Scienecs\n";
cout<<"7.Department of Rehabilitation and Health Sciences\n";
cout<<"8.Department of Technology\n";
cout<<"9.Department of Electronics\n";
cout<<"10.BS in Mathematics\n";

cout<<"\nPlease Enter your Choice \n";


cin>>choice;
switch(choice)
{
case 1:cout<<"\t\tDetails for the First Semester\n\n\n";
cout<<"\t\t\tPHY CYCLE\n\n";
cout<<"\tS.No.\tSubject Name\t\t\t\t\tSubject Credits\n";
cout<<"\t1\tIntroduction to Computing \t\t\t\t3+0\n";
cout<<"\t2\tIntroduction to Computer Programming \t\t\t3+1\
n";
cout<<"\t3\tApplied Physics \t\t\t\t\t2+1\n";
cout<<"\t4\tEnglish-I (Comprehension)\t\t\t\t3+0\n";
cout<<"\t5\tIslamic Studies/Ethics (for Non-Muslims)\t\t2+0\
n";
cout<<"\t6\tCalculus-I\t\t\t\t\t\t3+0\n";
cout<<"\n\n\t\tTotal Credits = 18 \n\n";
break;

case 2:cout<<"\t\tDetails for the First Semester\n\n\n";


cout<<"\t\t\tPHY CYCLE\n\n";
cout<<"\tS.No.\tSubject Name\t\t\t\t\tSubject Credits\n";
cout<<"\t1\tIntroduction to Computing \t\t\t\t1+1\n";

51
cout<<"\t2\tCalculus & Analytical Geometry(Math-1) \t\t\t3+0\
n";
cout<<"\t3\tApplied Physics \t\t\t\t\t3+1\n";
cout<<"\t4\tEnglish-I (Comprehension)\t\t\t\t3+0\n";
cout<<"\t5\tIslamic Studies/Ethics (for Non-Muslims)\t\t2+0\
n";
cout<<"\t6\tWorkshop Practice\t\t\t\t\t0+1\n";
cout<<"\n\n\t\tTotal Credits = 15 \n\n";
break;

case 3: {
cout<<"\n\nPrograms Offered in Department of
Management & Social Sciences\n\n\n";
cout<<"Please Select Your Program\n\n";
cout<<"1.Bachelor of Business Administration \n";
cout<<"2.BS in Psychology \n";
cout<<"\nPlease Enter your Program \n";
cin>>op;
switch(op)
{
case 1:cout<<"\t\tDetails for the First Semester\n\n\n";
cout<<"\t\t\tPHY CYCLE\n\n";
cout<<"\tS.No.\tSubject Name\t\t\t\t\tSubject Credits\n";
cout<<"\t1\tPrinciples of Management \t\t\t\t3+0\n";
cout<<"\t2\tIntroduction to Business \t\t\t\t3+0\n";
cout<<"\t3\tIntroduction to IT \t\t\t\t\t2+0\n";
cout<<"\t4\tEnglish-I (Comprehension)\t\t\t\t3+0\n";
cout<<"\t5\tIslamic Studies/Ethics (for Non-Muslims)\t\t2+0\
n";
cout<<"\t6\tFinancial Accounting\t\t\t\t\t3+0\n";
cout<<"\n\n\t\tTotal Credits = 16 \n\n";
break;
case 2:cout<<"\t\tDetails for the First Semester\n\n\n";
cout<<"\t\t\tPHY CYCLE\n\n";
cout<<"\tS.No.\tSubject Name\t\t\t\t\tSubject Credits\n";
cout<<"\t1\tIntroduction to Computing \t\t\t\t3+0\n";
cout<<"\t2\tBasic Mathematics \t\t\t\t\t3+0\n";
cout<<"\t3\tPakistan Studies \t\t\t\t\t2+0\n";
cout<<"\t4\tEnglish-I (Comprehension)\t\t\t\t3+0\n";
cout<<"\t5\tIntroduction to Psychology \t\t\t\t3+0\n";
cout<<"\t6\tGeneral Course I\t\t\t\t\t3+0\n";
cout<<"\n\n\t\tTotal Credits = 17 \n\n";
break;

52
}
break;
}

case 4:cout<<"\t\tDetails for the First Semester\n\n\n";


cout<<"\n\n\t\t\tCHEM CYCLE\n\n";
cout<<"\tS.No.\tSubject Name\t\t\t\t\t Subject Credits\n";
cout<<"\t1\tCivil Engineering Materials \t\t\t\t(2-1-3)\n";
cout<<"\t2\tBasic Electrical & Mechanical Engineering \t\t(2-2-
4)\n";
cout<<"\t3\tCivil Engineering Drawing\t\t\t\t(1-2-3)\n";
cout<<"\t4\tApplied Calculus (Math-1)\t\t\t\t(3-0-3)\n";
cout<<"\t5\tCFunctional English\t\t\t\t\t(2-0-2)\n";
cout<<"\t6\tPakistan studies\t\t\t\t\t(1-0-1)\n";

cout<<"\n\n\t\tTotal Credits = 32\n\n";


break;

case 5: cout<<"\t\tDetails for the First Semester\n\n\n";


cout<<"\t\t\tPHY CYCLE\n\n";
cout<<"\tS.No.\tSubject Name\t\t\t\t\tSubject Credits\n";
cout<<"\t1\tEnglish-A (Functional English) \t\t\t\t3+0\n";
cout<<"\t2\tPharmaceutics-IA (Physical Pharmacy) \t\t\t3+1\n";
cout<<"\t3\tPharmaceutical Chemistry-IA (Organic) \t\t\t3+1\
n";
cout<<"\t4\tPharmaceutical Chemistry-IIA (Biochemistry)\t\
t3+1\n";
cout<<"\t5\tAnatomy & Histology \t\t\t\t\t3+1\n";
cout<<"\t6\tPhysiology-A I\t\t\t\t\t\t3+1\n";
cout<<"\n\n\t\tTotal Credits = 17 \n\n";
break;

case 6: {
cout<<"\n\nPrograms Offered in Department of
Management & Social Sciences\n\n\n";
cout<<"Please Select Your Program\n\n";
cout<<"1.BS In Microbiology BSMB \n";
cout<<"2.BS In Medical Lab Technology(MLT) \n";
cout<<"3.BS In Biochemistry \n";
cout<<"\nPlease Enter your Program \n";
cin>>op;
switch(op)
{
case 1:cout<<"\t\tDetails for the First Semester\n\n\n";

53
cout<<"\t\t\tPHY CYCLE\n\n";
cout<<"\tS.No.\tSubject Name\t\t\t\t\tSubject Credits\n";
cout<<"\t1\tBasic Mathematics \t\t\t\t\t3+0\n";
cout<<"\t2\tFundamental of Microbiology \t\t\t\t2+1\n";
cout<<"\t3\tMicrobial Taxonomy \t\t\t\t\t2+1\n";
cout<<"\t4\tEnglish-I (Comprehension)\t\t\t\t3+0\n";
cout<<"\t5\tIslamic Studies/Ethics (for Non-Muslims)\t\t2+0\
n";
cout<<"\t6\tIntroduction to Computing\t\t\t\t3+0\n";
cout<<"\n\n\t\tTotal Credits = 17 \n\n";
break;
case 2:cout<<"\t\tDetails for the First Semester\n\n\n";
cout<<"\t\t\tPHY CYCLE\n\n";
cout<<"\tS.No.\tSubject Name\t\t\t\t\t\tSubject Credits\n";
cout<<"\t1\tHuman Anatomy-I \t\t\t\t\t\t3+1\n";
cout<<"\t2\tHuman Physiology-I \t\t\t\t\t\t3+1\n";
cout<<"\t3\tBiochemistry-I \t\t\t\t\t\t\t3+1\n";
cout<<"\t4\tEnglish-I (Comprehension)\t\t\t\t\t3+0\n";
cout<<"\t5\tIslamic Studies/Ethics (for Non-Muslims)\t\t\t2+0\
n";
cout<<"\t6\tIntroduction to Computing\t\t\t\t\t2+1\n";
cout<<"\n\n\t\tTotal Credits = 20 \n\n";
break;
case 3:cout<<"\t\tDetails for the First Semester\n\n\n";
cout<<"\t\t\tPHY CYCLE\n\n";
cout<<"\tS.No.\tSubject Name\t\t\t\t\tSubject Credits\n";
cout<<"\t1\tIntroductory Biochemistry \t\t\t\t3+1\n";
cout<<"\t2\tBOrganic Chemistry \t\t\t\t\t2+1\n";
cout<<"\t3\tSociology \t\t\t\t\t\t3+0\n";
cout<<"\t4\tEnglish-I (Comprehension)\t\t\t\t3+0\n";
cout<<"\t5\tMathematics \t\t\t\t\t\t3+0\n";
cout<<"\t6\tPakistan Studies\t\t\t\t\t2+0\n";
cout<<"\n\n\t\tTotal Credits = 18 \n\n";
break;

}
break;
}
case 7: {
cout<<"\n\nPrograms Offered in Department of
Management & Social Sciences\n\n\n";
cout<<"Please Select Your Program\n\n";
cout<<"1.Doctor Of Physical Therapy DPT \n";
cout<<"2.BS In Human Nutrition & Dietetics \n";

54
cout<<"3.BS In Radiology Technology \n";
cout<<"4.BS In Prosthetic & Orthotics \n";
cout<<"\nPlease Enter your Program \n";
cin>>op;
switch(op)
{
case 1:cout<<"\t\tDetails for the First Semester\n\n\n";
cout<<"\t\t\tPHY CYCLE\n\n";
cout<<"\tS.No.\tSubject Name\t\t\t\t\tSubject Credits\n";
cout<<"\t1\tAnatomy —I \t\t\t\t\t\t3+0\n";
cout<<"\t2\tPhysiology-I \t\t\t\t\t\t3+0\n";
cout<<"\t3\tKinesiology-I \t\t\t\t\t\t3+0\n";
cout<<"\t4\tEnglish-I (Comprehension)\t\t\t\t2+0\n";
cout<<"\t5\tBiostatistics-I\t\t\t\t\t\t3+0\n";
cout<<"\t6\tPakistan Studies\t\t\t\t\t2+0\n";
cout<<"\n\n\t\tTotal Credits = 15 \n\n";
break;
case 2:cout<<"\t\tDetails for the First Semester\n\n\n";
cout<<"\t\t\tPHY CYCLE\n\n";
cout<<"\tS.No.\tSubject Name\t\t\t\t\t\tSubject Credits\n";
cout<<"\t1\tFundamentals of Human Nutrition \t\t\t\t3+0\n";
cout<<"\t2\tEssentials of Food Science & Technology \t\t\t2+1\
n";
cout<<"\t3\tBasic Mathematics/Fundamentals of Biology \t\t\
t3+0\n";
cout<<"\t4\tEnglish-I (Comprehension)\t\t\t\t\t2+0\n";
cout<<"\t5\tPakistan Studies\t\t\t\t\t\t2+0\n";
cout<<"\t6\tIntroductory Biochemistry\t\t\t\t\t2+1\n";
cout<<"\n\n\t\tTotal Credits = 16 \n\n";
break;
case 3:cout<<"\t\tDetails for the First Semester\n\n\n";
cout<<"\t\t\tPHY CYCLE\n\n";
cout<<"\tS.No.\tSubject Name\t\t\t\t\tSubject Credits\n";
cout<<"\t1\tBiochemistry-1 \t\t\t\t\t\t2+1\n";
cout<<"\t2\tHuman Physiology-I \t\t\t\t\t2+1\n";
cout<<"\t3\tHuman Anatomy-I \t\t\t\t\t3+1\n";
cout<<"\t4\tEnglish-I (Comprehension)\t\t\t\t3+0\n";
cout<<"\t5\tIntroduction to Computing \t\t\t\t2+1\n";
cout<<"\t6\tPakistan Studies\t\t\t\t\t2+0\n";
cout<<"\n\n\t\tTotal Credits = 18 \n\n";
break;

case 4:cout<<"\t\tDetails for the First Semester\n\n\n";


cout<<"\t\t\tPHY CYCLE\n\n";

55
cout<<"\tS.No.\tSubject Name\t\t\t\t\t\t\tSubject Credits\n";
cout<<"\t1\tBasic Mathematics/Fundamentals of Biology \t\t\t\
t3+0\n";
cout<<"\t2\tIntroduction to Orthotics & Prosthetics & workshop
\t\t\t4+0\n";
cout<<"\t3\tBehavioral Sciences (Psychiatry & Psychology) \t\t\
t\t2+0\n";
cout<<"\t4\tIntroduction to Physics \t\t\t\t\t\t3+0\n";
cout<<"\t5\tIntroduction to Computing Applications \t\t\t\t\
t2+1\n";
cout<<"\t6\tIslamic Studies / Ethics\t\t\t\t\t\t2+0\n";
cout<<"\n\n\t\tTotal Credits = 17 \n\n";
break;
}
break;
}
case 8: {
cout<<"\n\nPrograms Offered in Department of
Management & Social Sciences\n\n\n";
cout<<"Please Select Your Program\n\n";
cout<<"1.Bachelor Of Technology Civil \n";
cout<<"2.Bachelor Of Technology Electrical \n";
cout<<"3.Bachelor Of Technology Mechanical \n";
cout<<"\nPlease Enter your Program \n";
cin>>op;
switch(op)
{
case 1:cout<<"\t\tDetails for the First TRIMESTER\n\n\n";
cout<<"\t\t\tPHY CYCLE\n\n";
cout<<"\tS.No.\tSubject Name\t\t\t\t\tSubject Credits\n";
cout<<"\t1\tCalculus - I \t\t\t\t\t\t3+0\n";
cout<<"\t2\tConcrete Technology \t\t\t\t\t2+1\n";
cout<<"\t3\tApplied Physics \t\t\t\t\t3+0\n";
cout<<"\t4\tComputer Fundamentals\t\t\t\t\t2+1\n";

cout<<"\n\n\t\tTotal Credits = 12 \n\n";


break;
case 2:cout<<"\t\tDetails for the First TRIMESTER\n\n\n";
cout<<"\t\t\tPHY CYCLE\n\n";
cout<<"\tS.No.\tSubject Name\t\t\t\t\t\tSubject Credits\n";
cout<<"\t1\tCalculus - I \t\t\t\t\t\t\t3+0\n";
cout<<"\t2\tBasic Electrical Technology \t\t\t\t\t2+1\n";
cout<<"\t3\tApplied Physics \t\t\t\t\t\t3+0\n";
cout<<"\t4\tComputer Fundamentals\t\t\t\t\t\t2+1\n";

56
cout<<"\n\n\t\tTotal Credits = 12 \n\n";
break;
case 3:cout<<"\t\tDetails for the First TRIMESTER\n\n\n";
cout<<"\t\t\tPHY CYCLE\n\n";
cout<<"\tS.No.\tSubject Name\t\t\t\t\tSubject Credits\n";
cout<<"\t1\tCalculus - I \t\t\t\t\t\t3+0\n";
cout<<"\t2\tMachining Processes \t\t\t\t\t2+1\n";
cout<<"\t3\tApplied Physics \t\t\t\t\t3+0\n";
cout<<"\t4\tComputer Fundamentals\t\t\t\t\t2+1\n";
cout<<"\n\n\t\tTotal Credits = 12 \n\n";
break;

}
break;
}
case 9: cout<<"\t\tDetails for the First Semester\n\n\n";
cout<<"\t\t\tPHY CYCLE\n\n";
cout<<"\tS.No.\tSubject Name\t\t\t\t\t\tSubject Credits\n";
cout<<"\t1\tEnglish I (Functional English) \t\t\t\t\t3+0\n";
cout<<"\t2\tIntroduction to Computing \t\t\t\t\t2+1\n";
cout<<"\t3\tCalculus and Analytical Geometry \t\t\t\t3+0\n";
cout<<"\t4\tPhysics-I\t\t\t\t\t\t\t3+1\n";
cout<<"\t5\tIslamic Studies/Ethics (for Non-Muslims) \t\t2+0\
n";
cout<<"\n\n\t\tTotal Credits = 15 \n\n";
break;
case 10: {
cout<<"\n\nPrograms Offered in Department of
Management & Social Sciences\n\n\n";
cout<<"Please Select Your Program\n\n";
cout<<"1.BS in Statistics \n";
cout<<"2.BS in Mathematics \n";
cout<<"\nPlease Enter your Program \n";
cin>>op;
switch(op)
{
case 1:cout<<"\t\tDetails for the First Semester\n\n\n";
cout<<"\t\t\tPHY CYCLE\n\n";
cout<<"\tS.No.\tSubject Name\t\t\t\t\tSubject Credits\n";
cout<<"\t1\tCalculus-I \t\t\t\t\t\t3+0\n";
cout<<"\t2\tIntroduction to Statistics \t\t\t\t3+0\n";
cout<<"\t3\tIntroduction to Economics \t\t\t\t3+0\n";
cout<<"\t4\tEnglish-I (Comprehension)\t\t\t\t3+0\n";

57
cout<<"\t5\tIslamic Studies/Ethics (for Non-Muslims)\t\t2+0\
n";
cout<<"\t6\tIntroduction to Computing\t\t\t\t3+0\n";
cout<<"\n\n\t\tTotal Credits = 17 \n\n";
break;
case 2:cout<<"\t\tDetails for the First Semester\n\n\n";
cout<<"\tS.No.\tSubject Name\t\t\t\t\tSubject Credits\n";
cout<<"\t1\tCalculus-I \t\t\t\t\t\t4+0\n";
cout<<"\t2\tMathematical Thinking \t\t\t\t\t3+0\n";
cout<<"\t3\tIntroduction to Economics \t\t\t\t3+0\n";
cout<<"\t4\tEnglish-I (Comprehension)\t\t\t\t3+0\n";
cout<<"\t5\tIslamic Studies/Ethics (for Non-Muslims)\t\t2+0\
n";
cout<<"\t6\tIntroduction to Computing\t\t\t\t2+1\n";
cout<<"\n\n\t\tTotal Credits = 17 \n\n";
break;

}
break;
}

cout<<"\n\n\t\tTotal Credits = 20\n\n";


default :break;
}
return choice;
}

//fees details of the student to be seleceted by the student//


void fees_details()
{
int feec,bec;
cout<<"\n\nFEES DETAILS:\n\n";
cout<<"Select the Course \n\n";
cout<<"\n1.B.E\n\n2.Exit\n\n";
cin>>feec;
switch(feec) {
case 1:
cout<<"\t\t\t\nB.E.\n";
cout<<"\n\nEnter The Admission Type:-\n";
cout<<"\n1.CET \n\n2.COMEDK-UGET\n\n3.Management Quota\n\n4.Degree Program\n\
n5.OTHER FEE\n\n";
cin>>bec;

58
if(bec==1){
cout<<"\n\n\t\t\tCET\n\n";
cout<<"\n\n\t\tFees per Year"<<endl;
cout<<"\nTution Fees= 36,000/-"<<endl;
cout<<"\nCollege University Fees = 60,000/-\n"<<endl;
cout<<"\nHostel Fees"<<endl;
cout<<"\nCaution Deposit = 10,000/-"<<endl;
cout<<"\nHostel Fees = 90,000/-\n\n"<<endl;
}

else if(bec==2){
cout<<"\n\n\t\tCOMEDK-UGET\n";
cout<<"\n\n\t\tFees per Year\n";
cout<<"\nTution Fees= 50,000/-";
cout<<"\nCollege University Fees = 1,50,000/-\n\n";
cout<<"\nHostel Fees\n";
cout<<"\nCaution Deposit = 10,000/-";
cout<<"\nHostel Fees = 90,000/-\n";
}

else if(bec==3){
cout<<"\n\n\t\t\tManagement Seat\n";
cout<<"\n\n\t\t\tFees per Year\n";
cout<<"\nTution Fees= 1,00,000/-";
cout<<"\nCollege University Fees = 1,50,000/-\n\n";
cout<<"\nHostel Fees\n";
cout<<"\nCaution Deposit = 10,000/-";
cout<<"\nHostel Fees = 90,000/-\n\n";
}
else if(bec==4){
cout<<"TUITION FEE (per credit hour)"<<endl;
cout<<"B.Tech (Civil/Electrica/Mechanicall) PKR 22000/-"<<endl;
cout<<"BE- Civil Engineering PKR 7125/-"<<endl;
cout<<"MS- Project Management PKR 4600/-"<<endl;
cout<<"MS- Management Science PKR 4600/-"<<endl;
cout<<"MS- Electrical Engineering PKR 4600/-"<<endl;
cout<<"MS- Software Engineering PKR 4600/-"<<endl;
cout<<"MS- Computer Science PKR 4600/-"<<endl;
cout<<"MS - Data Science PKR 4500/-"<<endl;
cout<<"BE- Electrical Engineering PKR 4200/-"<<endl;
cout<<"M.Phil - Micro Biology PKR 4100/-"<<endl;
cout<<"Pharm-D PKR 3895/-"<<endl;
cout<<"DPT PKR 3050/-"<<endl;
cout<<"BS- Software Engineering PKR 3000/-"<<endl;

59
cout<<"BS- Computer Science PKR 2560/-"<<endl;
cout<<"BS- Microbiology PKR 2400/-"<<endl;
cout<<"BS - MLT PKR 2350/-"<<endl;
cout<<"BS - HN & Dietetics PKR 2300/-"<<endl;
cout<<"BS-Electronics PKR 2300/-"<<endl;
cout<<"BS Prosthetics & Orthotics PKR 2300/-"<<endl;
cout<<"BS Radiology Technology PKR 2300/-"<<endl;
cout<<"BS - Fashion and Design PKR 2300/-"<<endl;
cout<<"BS - Psychology PKR 2300/-"<<endl;
cout<<"BS - English PKR 2300/-"<<endl;
cout<<"BS - Human Nutrition and dietetics PKR 2250/-"<<endl;
cout<<"B.Ed (Hons) PKR 2150/-"<<endl;
cout<<"BS - Mass Communication PKR 2150/-"<<endl;
cout<<"BS - Mathematics PKR 2150/-"<<endl;
cout<<"BS - Environmental sciences PKR 2150/-"<<endl;
cout<<"BS - Biochemistry PKR 2150/-"<<endl;
cout<<"BBA PKR 2150/-"<<endl;
cout<<"BS - T&H Management PKR 2150/-"<<endl;
cout<<"BS - Statistics PKR 2100/-"<<endl;
cout<<"Bachelor in Business Administration PKR 2100/-"<<endl;

}
else{
cout<<"cCr. Hour Transfer Fee 1,000/-"<<endl;
cout<<"Admission Fee (One Time) 10,000/-"<<endl;
cout<<"Security Fee (One Time) 10,000/-"<<endl;
cout<<"Semester Registration/Misc Fee (Per Semester) 10,000/-"<<endl;
cout<<"Semester Freeze Fee 10,000/-"<<endl;
cout<<"Paper Retake Fee (Per Paper) 3000/-"<<endl;
cout<<"Paper Recheck Fee (Per Paper) 2,000/-"<<endl;
cout<<"Course Exemption Fee 2,000/-"<<endl;
cout<<"Prospectus Fee 1,000/-"<<endl;
}

default: break;
}
}

// for displaying all student details


void display()
{

//local variables

60
float adminid;
int Found=0;
char s;

// opening the admin file


if((admin_id=fopen("admin_id.txt","r"))==NULL) {
cout<<" ! The File is Empty...\n\n";
}
else {
cout<<"\nEnter The Administrator ID: ";
cin>>adminid;
while(!feof(admin_id)&& Found==0) {
fscanf(admin_id,"%f",&host.id);
if(adminid==host.id) {
Found=1;
}
}
if(Found) {
student_detail = fopen("student_details.txt","r");
while((s=fgetc(student_detail))!=EOF) {
cout<<s;
}

fclose(student_detail);
}

else if(!Found) {
cout<<"Please Enter the Correct Administrator ID\n\n";
fclose(admin_id);
}
}
}
// =========================================================
// Strategy pattern
//===========================
class Strategy
{
public:
virtual ~Strategy() {
/* ... */
}
virtual void AdmissionInterface(){
cout<<"950 Marks with premedical"<<endl;

61
}
};

/*
* Concrete Strategies
* implement the Admission using the Strategy interface
*/
class LifeSciencesStrategy : public Strategy //Concrete Strategies 1
{
public:
~LifeSciencesStrategy() {
/* ... */
}

void AdmissionInterface()
{
cout <<"You are able to get Admission in Life Sciences Degrees"<< endl;
}
};

class ComputerStrategy : public Strategy //Concrete Strategies 2


{
public:
~ComputerStrategy() {
/* ... */
}

void AdmissionInterface()
{
cout <<"\nYou are able to get Admission in Computer Degrees"<< endl;
}
};

class EngineeringStrategy : public Strategy //Concrete Strategies 3


{
public:
~EngineeringStrategy() {
/* ... */
}

void AdmissionInterface()
{
cout <<" \nYou are able to get Admission in Engineering"<< endl;
}

62
};

class Context //Context class


{
public:
Context( Strategy* const s ) : strategy( s ) {}

~Context()
{
delete strategy;
}

void StudentInterface()
{
strategy->AdmissionInterface();
}

private:
Strategy *strategy;
};

// end
// state pattern

class Enable
{
public:
void accept()
{
cout <<"\n\n\t\tRequest Accept Sucessfuly\n\n";
}
};

class Disable
{
public:
void reject()
{
cout <<"\n\n\t\tYour are not able to get admission.....\nThanks for applying.....\n\n";
exit(0);
}
};
class Contxt

63
{

public:

void request(float p)
{
if(p > 50 )
{
Enable *obj;
obj->accept();
}
else if (p < 50)
{
Disable *obj;
obj->reject();
}
}

};

//===============
void admission_form()
{

float obtMarks, toatalMarks;


cout <<"\nEnter your prevoius obtain marks :: ";
cin >>obtMarks;
cout <<"\nEnter your prevoius total marks :: ";
cin >>toatalMarks;

cout <<obtMarks << endl<< toatalMarks << endl ;


float per = 0;
per = (obtMarks/toatalMarks) * 100;

cout << per << endl;


Contxt obj;
obj.request(per);

Context c(new Strategy);


c.StudentInterface();
if(per >= 50 && per<= 60){

64
Context context( new LifeSciencesStrategy() );
context.StudentInterface();}
else if(per > 60 && per<= 70){
Context context1( new ComputerStrategy() );
context1.StudentInterface();
Context context( new LifeSciencesStrategy() );
context.StudentInterface();
}
else if(per > 70)
{
Context context2( new EngineeringStrategy() );
context2.StudentInterface();
Context context( new LifeSciencesStrategy() );
context.StudentInterface();
Context context1( new ComputerStrategy() );
context1.StudentInterface();
}
int check_id;
int branchcode;

char ece[]="Electronics and Communication Engineering";


char ise[]="Information Science and Engineering";
char civ[]="Civil Engineering";
char cse[]="Computer Science and Engineering";
char mech[]="Mechanical Engineering";
char eee[]="Electrical and Electronics Engineering";

student_detail = fopen("student_details.txt","a+");
student_id = fopen("student_id.txt","a+");
cout<<" \t \t STUDENT ADMISSION FORM \n";
cout<<"\n\t\t\t\t\tuse underscore\"_\" for space\n";
cout<<"\n1.Personal Details \n \n \n";
cout<<"Create Your Unique User Id\n";
cin>>form.uniq_id;
while(!feof(student_id)) {
fscanf(student_id,"%d",&check_id);
if(form.uniq_id==check_id) {
cout<<"\nSorry this ID has been taken please select a different ID\n";
return;
}
}
cout<<"Enter Your Name \n \n";
gets(form.Name);
cout<<"Enter the DOB in DD/MM/YYYY format \n \n";

65
gets(form.dob);
cout<<"Enter Your Gender : \n \n";
cin>>form.Gender;
cout<<"Enter Your Religion \n \n";
cin>>form.Religion;
cout<<"Enter Your Nationality \n \n";
cin>>form.Nationality;
cout<<"Enter Your Permanent Address \n \n";
getchar();
gets(form.Address);
cout<<"Enter Your City:\n \n";
gets(form.City);
cout<<"Enter Your Father's Name: \n \n";
gets(form.Father_Name);
cout<<"Enter Your Father's Occupation \n \n";
gets(form.Father_Occupation);
cout<<"Enter Your Mother's Name: \n \n";
gets(form.Mother_Name);
cout<<"Enter Your Mother's Occupation \n \n";
gets(form.Mother_Occupation);
cout<<"Enter Your Father's Income: \n \n";
cin>>form.father_income;
cout<<"Enter Your Mother's Income: \n \n";
cin>>form.mother_income;
cout<<"\n2.Academic Details \n \n \n";
cout<<" \t Class 10th \n\n";
cout<<"\nName of Board\nName of School\nState";
cout<<"\n\n";
getchar();
gets(form.Name_b);
gets(form.Name_school);
gets(form.school_s);
cout<<"\nMax Marks\nMarks Obtained\nPercentage\nyear of passing";
cout<<"\n\n";
gets(form.maxmarks);
gets(form.marksob);
gets(form.perc);
gets(form.yop);
cout<<" \t Class 12th \n\n";
cout<<"\nName of Board\nName of School\nState";
cout<<"\n\n";
gets(form.Name_b1);
gets(form.Name_school1);
gets(form.school_s1);

66
cout<<"\nMax Marks\nMarks Obtained\nPercentage\nyear of passing";
cout<<"\n\n";
gets(form.maxmarks1);
gets(form.marksob1);
gets(form.perc1);
gets(form.yop1);
cout<<"Enter If you Have a Migration Certificate or not? \n";
gets(form.mig);
cout<<"Enter If you Have a Transfer Certificate or not \n";
gets(form.tc);

branchcode=show_academic_details();

if (branchcode==1)
strcpy(form.branch,ece);
else if (branchcode==2)
strcpy(form.branch,ise);
else if (branchcode==3)
strcpy(form.branch,civ);
else if (branchcode==4)
strcpy(form.branch,cse);
else if (branchcode==5)
strcpy(form.branch,mech);
else if (branchcode==6)
strcpy(form.branch,eee);

fprintf(student_id,"\n%d",form.uniq_id);
fclose(student_id);
fprintf(student_detail,"\n\n\nUnique ID:%d \t\t\n \n The Name of Student:%s\n\n Branch:%s\n \n DOB
of student:%s\n \n Gender of the student:%s\n \n Religion of the student:%s\n \n Nationality of the
student:%s\n \n Address :%s\n \n City :%s\n \n Father's Name:%s\n \n Father's Occupation:%s\n \n
Mother's Name:%s\n \n Mother's Occupation:%s\n \n Father's Income:%s\n \n Mother's Income:%s\n \n
Name of Board of Class 10th:%s\n \n Name of School of Class 10th:%s\n \n Name of School State of
Class 10th:%s\n \n Max Marks:%s\n \n Marks Obtained:%s\n \nPercentage:%s\n \n Year of Passing:%s\
n \n Name of Board of Class 12th:%s\n \n Name of School of Class 12th:%s\n \n Name of School State of
Class 12th:%s\n \n Max Marks:%s\n \n Marks Obtained:%s\n \n Percentage:%s\n \n Year of Passing:%s\n
\n Migration Card:%s\n \n Transfer Certificate:%s\n\
n",form.uniq_id,form.Name,form.branch,form.dob,form.Gender,form.Religion,form.Nationality,form.Ad
dress,form.City,form.Father_Name,form.Father_Occupation,form.Mother_Name,form.Mother_Occupatio
n,form.father_income,form.mother_income,form.Name_b,form.Name_school,form.school_s,form.maxm
arks,form.marksob,form.perc,form.yop,form.Name_b1,form.Name_school1,form.school_s1,form.maxma
rks1,form.marksob1,form.perc1,form.yop1,form.mig,form.tc);
fclose(student_detail);

67
cout<<"\n\nThankyou For Submitting the Admission form!\nHave a Great Day\n";

// main function
int main()
{
char choice;

for(;;)
{
system("cls");
cout<<"\n\n+-++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+--+-+--\n";
cout<<"+ \t\t \t\t\t+\n+\t\t MENU\t\t\t";
cout<<"+\n+\t\t\t\t\t\t+\n+-++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-\n";
cout<<"+\t\t\t\t\t\t+\n+ 1.Admission/Registration\t\t\t+\n+\t\t\t\t\t\t+\n+ 2.Academic Details\t\t\t\t+\
n+\t\t\t\t\t\t+\n+ 3.Fees Details\t\t\t\t+\n+\t\t\t\t\t\t+\n+ 4.Show all Registrations\t\t\t+\n+\t\t\t\t\t\t+\n+
5.Quit\t\t\t\t\t+\n+\t\t\t\t\t\t+\n+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+--+-+-+-+-+-";
cout<<"\n\nEnter Your Choice? \n\n";
cin>>choice;
switch(choice)
{
case '1': system("cls");
admission_form();
break;
case '2': show_academic_details();
break;
case '3': fees_details();
break;
case '4':display();
break;
case '5': return 0;

default:cout<<"Invalid input \n Please Enter correct option";


break;
}
}
}

Screenshots:

68
69
Quality Attributes& Tatics Lab:

Non- Functional Requirements

Performance:
 Each page must load within 5 seconds.
 Admission form pages must load within 0.2 seconds.
 The system can process 100,000 checks per hour.
 Each request should be processed within 10 seconds.

Scalability:
 The site should load in 3 seconds when the number of simultaneous users is > 10000.

Modifiability:.
 Every piece of text that a user might see must be modifiable without changing source
code.

Portability:
 The system shall be able to run on any browser.
 The system shall run on all kinds of operating systems.
 The system shall be able to run on both computer and mobile devices.

Availability:

70
 Student can apply for admission system the throughout the week at any time during the
day.
 In the case of unplanned system downtime, all features will be available again after one
working day.

Maintainability:
 If the automated email services become unavailable, they can be under maintenance for
approximately three hours.
 The maintenance group must be able to maintain the software.

Recoverability:
 If a major incident happens on the website and, the system must take measures to go back
to being fully operational within 24 hours.
 During a system restart, the system will return to a functioning state.

Capacity:
 Up to 500 students can request for a admission detail at a same time.
 Up to 1,000,000 applications can be stored.

Serviceability:
 The user’s automated emails can be edited and replaced by uploading an XML file, no
need to recompile any code.

Security:
 Only the users with the role “administrator” can view the user’s verified phone number.
 A password must be entered to use the system.
 The password should be encrypted for safety.
 Any crashes in the applet should be fixable in a subsequent login.

71
Manageability:
 During code editing for user’ profile pages, the rest of the site stays up and running.

Usability:

 The website’s interface has to be user-friendly and easy to use.

Accuracy:
 Every email typed by user must have all the proper characters its exactly correct.
 Computed scholarship must be accurate to 50 % (NM - compared to what it is?)
 The system will notify the system administrator if the input data source is corrupted.
 Every register user must have a unique registration number.

Adaptability
 The system must support new students types without needing to be rewritten or
recompiled.
 The system must be flexible.
 The system must be adaptable.

Configurability
 The system must use a java .properties file that contains key value pairs defining the jdbc
driver to use. (NR)
 The system must adapt to changes in any input record format without the need to
recompile any code. (GE)

Human Factors
 The UI must be user-friendly.
 The system must provide form filing helps

72
 The UI must be intuitive.

Localizability
 It must be possible to operate the system in any local language.
 All user interface components must support the locale of the system.
 If a locale is not available, US English shall be used.
 The UI language can be switched from English to urdu without recompiling nor
rebuilding the program.

Portability
 The system will run, without modification, on any Java target platform.
 The system is not portable.

Predictability:
 The system can never crash.
 The system must produce predictable results.
 The software will never cause the user's computer to explode.

Reliability
 The system will be available 100% of the time.
 The system must never crash.

Response Time:
Query response time must be fast.

All queries must return a response in < 2 seconds.

73
Reusability:
 All admissions must be encrypted.
 Only the teacher may modify accept applications.
 The security system must be upgradable.

Testability:
 All major use cases must be regression tested.
 100% of the quality requirements must be measurable.
 100% of the quality requirements must be met.

Quality Scenarios

1. Availability:

Artifact:
Source: Stimulus: Environment:
Process Response: Response Measure:
External to the System
Server Unresponsive Normal Operation
Inform operator to continue operate
No Downtime

74
2. Modifiability:

Artifact:
Source: Stimulus: Environment:
Code Response: Response Measure:
Wishes to change UI
External to the Developer Modification
At design time is made with no side
Ineffects.
at least 3 hours

3. Performance:

Artifact:
Source: Stimulus: Environment:
System Response: Response Measure:
Students Initiate Form Submission
Under normal Operations Form is submitted Within 2 seconds

75
4. Security:

Artifact:
Source: Stimulus: Data within
Environment: Response: Response Measure:
Correctly identified
Tries
individual Under the
to modify Form information System
normal Operations
System maintains
Correct
auditdata
trailis restored within a day

5. Testability:

Artifact:
Component
Source: Stimulus: Environment:
Of the Response: Response Measure:
Unit tester Preforms unit test
Component
At the completion
has interface
of theforcomponent
controlling behavior, and output
Path coverage of of
85%theiscomponent is obse3
achieved within
System

76
6. Usability:

Artifact:
Source: Stimulus: Environment:
System Response: Response Measure:
Users Minimize impact of errors At runtime Wishes to cancel current action
Cancellation takes less than one second

Interface Diagram
Resgisteration

77
Login

78
79
Dashboard

80
Personal Details

81
Educational Details

82
83
Program Selection

Challan

84
Design Implementatio Andriod
Intro Scree

85
86
Login

87
88
Registeration

89
90
Dashboard

91
92
Personal Details

93
94
Educational Details

95
96
Program Selection

97
98
Challan Form

99
100
101
The APK code file is uploaded on lms.ss

102

You might also like