0% found this document useful (0 votes)
56 views10 pages

School Addmission Online System Project CPP

The document outlines a C++ project titled 'School Admission Online System' created by Shaikh Mohd Aliyan Anwar Hussain. It includes a class structure for managing school admissions, allowing for new admissions, terminations, and checking candidate fee balances, along with a simple user interface for interaction. The program features password protection and provides options for users to manage admissions and view balances.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views10 pages

School Addmission Online System Project CPP

The document outlines a C++ project titled 'School Admission Online System' created by Shaikh Mohd Aliyan Anwar Hussain. It includes a class structure for managing school admissions, allowing for new admissions, terminations, and checking candidate fee balances, along with a simple user interface for interaction. The program features password protection and provides options for users to manage admissions and view balances.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

“Project of C++ programming ”.

Name :- Shaikh Mohd aliyan Anwar hussain.


Phone number :- 9022721335.
Email Id :- [email protected].
Project name :- School Addmission online
System.

Project Code:-

#include<cstring>
#include<iostream>
using namespace std;

class School
{
public:
double addmissionfees = 77837878.02;
void newaddmissioncandidate(float m)
{
addmissionfees += m;
}

void terminatecandidateaddmission(float m)
{
addmissionfees -= m;
}

double
checkcandidatestotalfeesbalanceschool()
{
return addmissionfees;
}
};

class Candidate:public School{


public:
float balance = 1000;
void newaddmission(float m)
{
addmissionfees += m;
}

void terminatecandidate(float m)
{
addmissionfees -= m;
}

float checkcandidatestotalfeesbalance()
{
return balance;
}

};
int main()
{
School s;
Candidate a;

cout<<"**Welcome to the 'World Schools'


addmission system **"<<endl;
char password[100] = "schoolcandidate123";
char newPassword[100];

int count = 0;
while(true)
{
cout<<"Enter your password: ";
cin>>newPassword;
count++;

if(count > 3)
{
cout<<"Wrong Password Attemp
Over..."<<endl;
return 0;
}

if(strcmp(password,newPassword) == 0)
{
cout<<"Login Successful ..."<<endl;
break;
}
else{
cout<<"Wrong Password please try
again..."<<endl;
}

}
while(true)
{
int choice;
cout<<"Enter 1 for new addmission(the
amount is 35000 rupees..): "<<endl;
cout<<"Enter 2 for terminate the candidate(the
amount is 1000 rupees..): "<<endl;
cout<<"Enter 3 for check candidates total fees
balance: "<<endl;
cout<<"Enter 0 end program "<<endl;
cout<<"Enter your choice: ";
cin>>choice;

switch(choice)
{
case 1:
cout<<"Enter amount of fees for
addmission : "<<endl;
cin>>choice;
a.newaddmission(choice);
s.newaddmissioncandidate(choice);
break;
case 2:
cout<<"Enter the amount to terminate
the candidate:"<<endl;
cin>>choice;
(a.checkcandidatestotalfeesbalance()
> choice);
{

s.terminatecandidateaddmission(choice);
a.terminatecandidate(choice);
}
break;
case 3:
cout<<"Total fees balance of the
candidate for the year 2023 :
"<<a.checkcandidatestotalfeesbalance()<<endl;
cin>>choice;
break;
case 0:
cout<<"Thank you for using 'World
Schools' addmission system...:) "<<endl;
return 0;
}
}
return 0;
}

Output :-
**Welcome to the 'World Schools' addmission
system **
Enter your password: schoolcandidate123
Login Successful ...
Enter 1 for new addmission(the amount is 35000
rupees..):
Enter 2 for terminate the candidate(the amount is
1000 rupees..):
Enter 3 for check candidates total fees balance:
Enter 0 end program
Enter your choice: 1
Enter amount of fees for addmission :
1000
Enter 1 for new addmission(the amount is 35000
rupees..):
Enter 2 for terminate the candidate(the amount is
1000 rupees..):
Enter 3 for check candidates total fees balance:
Enter 0 end program
Enter your choice: 2
Enter the amount to terminate the candidate:
1000
Enter 1 for new addmission(the amount is 35000
rupees..):
Enter 2 for terminate the candidate(the amount is
1000 rupees..):
Enter 3 for check candidates total fees balance:
Enter 0 end program
Enter your choice: 3
Total fees balance of the candidate for the year
2023 : 1000
0
Enter 1 for new addmission(the amount is 35000
rupees..):
Enter 2 for terminate the candidate(the amount is
1000 rupees..):
Enter 3 for check candidates total fees balance:
Enter 0 end program
Enter your choice: 0
Thank you for using 'World Schools' addmission
system...:)

--------------------------------
Process exited after 24.94 seconds with return
value 0
Press any key to continue . . .

You might also like