#include<iostream>
#include<conio.h>
#include<stdio.h>
#include<string>
#include<Windows.h>
using namespace std;
class Login_Pass
{
private:
string pass;
char ch;
public:
void password()
{
system("color 1f");
cout << "\n\n\n\n\n\n\n\n\n\t\t[Welcome To The Entry Test Program by Faraz & Ossaf] " << endl << endl << endl;
cout << "\t\t\t\tEnter Login Password";
cout << endl << endl << endl << "\t\t\t\t\t";
ch = _getch();
while (ch != 13)
{
pass.push_back(ch);
cout << '*';
ch = _getch();
}
if (pass == "faraz" || pass == "ossaf")
{
system("cls");
cout << "Checking Password";
Sleep(750);
cout << " . ";
Sleep(750);
cout << " . ";
Sleep(750);
cout << " . " << endl << endl;
cout << "Access Granted!" << endl << endl;
system("pause");
system("cls");
cout << "Welcome!" << endl << endl;
system("pause");
system("cls");
}
else
{
system("cls");
cout << "Checking Password";
Sleep(750);
cout << " . ";
Sleep(750);
cout << " . ";
Sleep(750);
cout << " . " << endl << endl;
cout << "Sorry! Wrong Password!" << endl << endl;
cout << "The Program Will Now Exit!" << endl << endl;
system("pause");
exit(0);
}
}
};
class StudentInfo
{
private:
string name;
double reg_num;
public:
void enter()
{
cout << "Please Enter Your Registered Name/Registration Number Alotted!" << endl << endl;
cout << "Full Name : ";
cin >> name;
fflush(stdin);
cout << endl;
cout << "Registration Number : ";
cin >> reg_num;
cout << endl;
system("pause");
system("cls");
}
};
class English
{
private:
char ans;
int q1, q2, q3, q4;
protected:
int score_eng;
public:
void test()
{
cout << "Welcome to your English Quiz. Please choose b/w True and False (T/F)" << endl << endl;
system("pause");
system("cls");
cout << "Q1) A proposition is always followed by a noun?" << endl << endl;
cout << "Answer : ";
cin >> ans;
cout << endl;
system("pause");
if (ans == 'T' || ans == 't')
{
system("cls");
q1 = 25;
}
else
{
system("cls");
q1 = 0;
}
cout << "Q2) Phrasal verbs always consist of two verbs?" << endl << endl;
cout << "Answer : ";
cin >> ans;
cout << endl;
system("pause");
if (ans == 'F' || ans == 'f')
{
system("cls");
q2 = 25;
}
else
{
system("cls");
q2 = 0;
}
cout << "Q3) The Past tense of 'must' is 'musted'?" << endl << endl;
cout << "Answer : ";
cin >> ans;
cout << endl;
system("pause");
if (ans == 'F' || ans == 'f')
{
system("cls");
q3 = 25;
}
else
{
system("cls");
q3 = 0;
}
cout << "Q4) The main verb and the direct object are not normally separated?" << endl << endl;
cout << "Answer : ";
cin >> ans;
cout << endl;
system("pause");
if (ans == 'T' || ans == 't')
{
system("cls");
q4 = 25;
}
else
{
system("cls");
q4 = 0;
}
system("cls");
cout << "Loading Score";
Sleep(750);
cout << " . ";
Sleep(750);
cout << " . ";
Sleep(750);
cout << " . " << endl << endl;
score_eng = (q1 + q2 + q3 + q4);
system("pause");
system("cls");
cout << "Score Obtained (Out of 100) : " << score_eng << endl << endl;
system("pause");
}
};
class Phy
{
private:
char ans;
int q1, q2, q3, q4;
protected:
int score_phy;
public:
void test()
{
cout << "Welcome to your Physics Quiz. Please choose b/w True and False (T/F)" << endl << endl;
system("pause");
system("cls");
cout << "Q1) The speed of a particle is always positive?" << endl << endl;
cout << "Answer : ";
cin >> ans;
cout << endl;
system("pause");
if (ans == 'T' || ans == 't')
{
system("cls");
q1 = 25;
}
else
{
system("cls");
q1 = 0;
}
cout << "Q2) The acceleration of a particle can be non-zero when its speed is constant?" << endl << endl;
cout << "Answer : ";
cin >> ans;
cout << endl;
system("pause");
if (ans == 'F' || ans == 'f')
{
system("cls");
q2 = 25;
}
else
{
system("cls");
q2 = 0;
}
cout << "Q3) The velocity of an object can reverse direction when its acceleration is constant?" << endl << endl;
cout << "Answer : ";
cin >> ans;
cout << endl;
system("pause");
if (ans == 'F' || ans == 'f')
{
system("cls");
q3 = 25;
}
else
{
system("cls");
q3 = 0;
}
cout << "Q4) When the average velocity of a particle is zero, its average speed is also equal to zero?" << endl << endl;
cout << "Answer : ";
cin >> ans;
cout << endl;
system("pause");
if (ans == 'T' || ans == 't')
{
system("cls");
q4 = 25;
}
else
{
system("cls");
q4 = 0;
}
system("cls");
cout << "Loading Score";
Sleep(750);
cout << " . ";
Sleep(750);
cout << " . ";
Sleep(750);
cout << " . " << endl << endl;
score_phy = (q1 + q2 + q3 + q4);
system("pause");
system("cls");
cout << "Score Obtained (Out of 100) : " << score_phy << endl << endl;
system("pause");
}
};
class Chem
{
private:
char ans;
int q1, q2, q3, q4;
protected:
int score_chem;
public:
void test()
{
cout << "Welcome to your Chemistry Quiz. Please choose b/w True and False (T/F)" << endl << endl;
system("pause");
system("cls");
cout << "Q1) Acids have a pH level below 7?" << endl << endl;
cout << "Answer : ";
cin >> ans;
cout << endl;
system("pause");
if (ans == 'T' || ans == 't')
{
system("cls");
q1 = 25;
}
else
{
system("cls");
q1 = 0;
}
cout << "Q2) An electron carries a positive charge?" << endl << endl;
cout << "Answer : ";
cin >> ans;
cout << endl;
system("pause");
if (ans == 'F' || ans == 'f')
{
system("cls");
q2 = 25;
}
else
{
system("cls");
q2 = 0;
}
cout << "Q3) Bases have a pH level below 7?" << endl << endl;
cout << "Answer : ";
cin >> ans;
cout << endl;
system("pause");
if (ans == 'F' || ans == 'f')
{
system("cls");
q3 = 25;
}
else
{
system("cls");
q3 = 0;
}
cout << "Q4) A proton carries a positive charge?" << endl << endl;
cout << "Answer : ";
cin >> ans;
cout << endl;
system("pause");
if (ans == 'T' || ans == 't')
{
system("cls");
q4 = 25;
}
else
{
system("cls");
q4 = 0;
}
system("cls");
cout << "Loading Score";
Sleep(750);
cout << " . ";
Sleep(750);
cout << " . ";
Sleep(750);
cout << " . " << endl << endl;
score_chem = (q1 + q2 + q3 + q4);
system("pause");
system("cls");
cout << "Score Obtained (Out of 100) : " << score_chem << endl << endl;
system("pause");
}
};
class Maths
{
private:
char ans;
int q1, q2, q3, q4;
protected:
int score_math;
public:
void test()
{
cout << "Welcome to your Mathematics Quiz. Please choose b/w True and False (T/F)" << endl << endl;
system("pause");
system("cls");
cout << "Q1) The slope of a vertical line is undefined?" << endl << endl;
cout << "Answer : ";
cin >> ans;
cout << endl;
system("pause");
if (ans == 'T' || ans == 't')
{
system("cls");
q1 = 25;
}
else
{
system("cls");
q1 = 0;
}
cout << "Q2) Two lines with positive slopes can be perpendicular?" << endl << endl;
cout << "Answer : ";
cin >> ans;
cout << endl;
system("pause");
if (ans == 'F' || ans == 'f')
{
system("cls");
q2 = 25;
}
else
{
system("cls");
q2 = 0;
}
cout << "Q3) Is the equation ((2^2)^3) = 2^5 correct?" << endl << endl;
cout << "Answer : ";
cin >> ans;
cout << endl;
system("pause");
if (ans == 'F' || ans == 'f')
{
system("cls");
q3 = 25;
}
else
{
system("cls");
q3 = 0;
}
cout << "Q4) The additive