FINAL PROJECT-Paper
FINAL PROJECT-Paper
COMPUTER PROGRAMMING 1
(ITC111L)
Login and Registration System
Submitted by:
I. INTRODUCTION
As technology advanced, computerized systems were developed for the betterment and
enhancement of humans; in fact, most corporations and institutions use computerized systems to assist
with some of the issues experienced in the manual process. A log-in system may be a powerful tool for
restricting access to a computer or online service. The log-in system can provide a level of protection and
control by requiring a username and password, which helps prevent unauthorized users from accessing
sensitive information or interrupting system performance. Students can benefit from a log-in system as an
instructional aid. By requiring them to use a username and password to access their accounts, it can help
them learn good habits around password management and internet security, which may be useful when
they become more mature and begin using the website more responsibly.
III. OBJECTIVES
The main objective of the login system is to manage the details of the registered accounts,
such as password and username.
It also introduces the general idea of how a login system with the utilization of the C++
programming language works.
void login();
void registration();
void forgotPass();
int main()
{
system("Title LOGIN SYSTEM");
system("Color 0A");
int choice;
case 2:
registration();
break;
case 3:
forgotPass();
break;
case 4:
system("cls");
cout << "\t\t\t\xc9\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\
xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\
xcd\xcd\xcd\xcd\xbb\n";
cout << "\t\t\t\xba \xba\n";
cout << "\t\t\t\xba \xba\n";
cout << "\t\t\t\xba Thank you for using the system! \xba\n";
cout << "\t\t\t\xba \xba\n";
cout << "\t\t\t\xba by: \xba\n";
default:
system("cls");
cout << "\n\n\t\t\t INVALID INPUT!!! PLEASE SELECT FROM GIVEN OPTIONS!!! \n" << endl;
main();
}
}
void login()
{
int count = 0;
string logUsername, logPass, recUsername, recPass;
system("cls");
cout << "\t\t\t\xc9\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\
xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\
xcd\xcd\xbb\n";
cout << "\t\t\t\xba \xba\n";
cout << "\t\t\t\xba \xba\n";
cout << "\t\t\t\xba LOGIN YOUR ACCOUNT \xba\n";
cout << "\t\t\t\xba \xba\n";
cout << "\t\t\t\xba \xba\n";
/jav2021 INFORMATION TECHNOLOGY DEPARTMENT
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
ifstream input("record.txt");
if (count == 1)
{
cout << "\n\t\t\t CONGRATULATIONS!!! You have successfully LOGGED IN!!! \n";
cout << "\n\t\t\t Thanks for logging in! \n";
main();
}
else {
system("cls");
cout << "\n\t\t\t LOGIN ERROR!!! \n";
cout << "\n\t\t\t Please check your USERNAME and PASSWORD! \n";
main();
}
}
void registration()
{
string regUsername, regPass;
system("cls");
cout << "\t\t\t\xc9\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\
xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\
xcd\xcd\xbb\n";
cout << "\t\t\t\xba \xba\n";
cout << "\t\t\t\xba \xba\n";
cout << "\t\t\t\xba REGISTER AN ACCOUNT \xba\n";
cout << "\t\t\t\xba \xba\n";
cout << "\t\t\t\xba \xba\n";
cout << "\t\t\t\xc8\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\
xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\
xcd\xcd\xbc\n";
system("cls");
cout << "\n\t\t\t Registration is succesfull! \n";
main();
}
void forgotPass()
{
int count = 0;
string Username, forUsername, forPass;
system("cls");
cout << "\t\t\t\xc9\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\
xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\
xcd\xcd\xbb\n";
cout << "\t\t\t\xba \xba\n";
cout << "\t\t\t\xba \xba\n";
cout << "\t\t\t\xba FORGOT PASSWORD? No worries \xba\n";
cout << "\t\t\t\xba \xba\n";
cout << "\t\t\t\xba \xba\n";
cout << "\t\t\t\xc8\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\
xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\
xcd\xcd\xbc\n";
cout << " \n";
cout << "\t\t\t Please enter the USERNAME." << endl;
cout << "\n\t\t\t\t USERNAME: ";
cin >> Username;
ifstream f2("record.txt");
while (f2 >> forUsername >> forPass)
{
if (forUsername == Username)
{
count = 1;
}
}
f2.close();
if (count == 1)
{
system("cls");
VIII. CONCLUSION