0% found this document useful (0 votes)
19 views8 pages

FINAL PROJECT-Paper

The document describes a login system project created using C++. It includes sections on introduction, description, objectives, significance, scope, and source code. The project creates a basic login system with functions for registration, login, and password retrieval.
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)
19 views8 pages

FINAL PROJECT-Paper

The document describes a login system project created using C++. It includes sections on introduction, description, objectives, significance, scope, and source code. The project creates a basic login system with functions for registration, login, and password retrieval.
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
You are on page 1/ 8

Republic of the Philippines

RIZAL TECHNOLOGICAL UNIVERSITY


Cities of Mandaluyong and Pasig

COLLEGE OF ENGINEERING, ARCHITECHTURE AND TECHNOLOGY

COMPUTER PROGRAMMING 1
(ITC111L)
Login and Registration System

Submitted by:

Bete, Fhel Alexandre Camero, Mary Chris Dumagan, Troy Jetro Mallorca, Chelsea
CEIT-37-104A CEIT-37-104A CEIT-37-104A Kyle
CEIT-37-104A

/jav2021 INFORMATION TECHNOLOGY DEPARTMENT


Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig

COLLEGE OF ENGINEERING, ARCHITECHTURE AND TECHNOLOGY

Mantos, Ahron Patungan, Loyd


CEIT-37-104A Angelo
CEIT-37-104A

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.

II. DESCRIPTION OF THE PROJECT


The login system is basically a common system on the internet nowadays. It is the procedure used
to get access to an operating system, applications, or websites. Logging in means that a user identification
and password are provided to allow access to the user's account, as well as making sure that all
information will be kept private.

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.

IV. SIGNIFICANCE OF THE STUDY


The significance of our program is that it can be used on any website or application, which is
especially important in this day and age when account management is common. Login system functions
such as those that create an account, login to that account, and remember account details enable security
and control over a user’s confidential information.

V. SCOPE AND DELIMITATIONS

/jav2021 INFORMATION TECHNOLOGY DEPARTMENT


Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig

COLLEGE OF ENGINEERING, ARCHITECHTURE AND TECHNOLOGY


Our
program is a login system that utilizes the C++ programming language. It only consists of three functions
common in a login system: account registration, account login, and forgot password feature. Any other
expected functions after logging in are not implemented. Although the program may allow several
accounts to be registered, the construction of the program only serves as a simple system that provides a
general idea of how a login system works, it is recommended to avoid registering more than one account,
as other features will not seem to function properly.

VI. SCREEN OUTPUT

/jav2021 INFORMATION TECHNOLOGY DEPARTMENT


Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig

COLLEGE OF ENGINEERING, ARCHITECHTURE AND TECHNOLOGY

/jav2021 INFORMATION TECHNOLOGY DEPARTMENT


Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig

COLLEGE OF ENGINEERING, ARCHITECHTURE AND TECHNOLOGY

VII. SOURCE CODE


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

void login();
void registration();
void forgotPass();

int main()
{
system("Title LOGIN SYSTEM");
system("Color 0A");
int choice;

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 Welcome to the Login Page \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 MAIN MENU \
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| Press 1 to LOGIN |" << endl;
cout << "\t\t\t| Press 2 to REGISTER |" << endl;
cout << "\t\t\t| Press 3 to FIND password if forgotten |" << endl;
cout << "\t\t\t| Press 4 to EXIT |" << endl;
cout << "\n\t\t\t\t Please enter your choice: ";
cin >> choice;

/jav2021 INFORMATION TECHNOLOGY DEPARTMENT


Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig

COLLEGE OF ENGINEERING, ARCHITECHTURE AND TECHNOLOGY


switch
(choice)
{
case 1:
login();
break;

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";

cout << "\t\t\t\xba \xba\n";


cout << "\t\t\t\xba Battung, Raphael Justine \xba\n";
cout << "\t\t\t\xba Bete, Fhel Alexandre \xba\n";
cout << "\t\t\t\xba Camero, Mary Chris \xba\n";
cout << "\t\t\t\xba Dumagan, Troy Jetro \xba\n";
cout << "\t\t\t\xba Mallorca, Chelsea Kyle \xba\n";
cout << "\t\t\t\xba Mantos, Ahron \xba\n";
cout << "\t\t\t\xba Patungan, Loyd Angelo \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";
break;

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

COLLEGE OF ENGINEERING, ARCHITECHTURE AND TECHNOLOGY


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 AND PASSWORD" << endl;
cout << "\n\t\t\t\t USERNAME: ";
cin >> logUsername;

cout << "\n\t\t\t\t PASSWORD: ";


cin >> logPass;

ifstream input("record.txt");

while (input >> recUsername >> recPass)


{
if (recUsername == logUsername && recPass == logPass)
{
count = 1;
system("cls");
}
}
input.close();

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";

cout << " \n";


cout << "\t\t\t Please enter the USERNAME AND PASSWORD" << endl;
cout << "\n\t\t\t\t USERNAME: ";
cin >> regUsername;
cout << "\n\t\t\t\t PASSWORD: ";
cin >> regPass;

/jav2021 INFORMATION TECHNOLOGY DEPARTMENT


Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig

COLLEGE OF ENGINEERING, ARCHITECHTURE AND TECHNOLOGY

ofstream f1("record.txt", ios::app);


f1 << regUsername << ' ' << regPass << endl;
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");

cout << "\n\t\t\t Your account is found!" << endl;


cout << "\n\t\t\t USERNAME: " << Username << endl;
cout << "\n\t\t\t PASSWORD: " << forPass << endl;;
main();
}
else
{
system("cls");
cout << "\n\t\t\t Sorry! Your account is not found! \n";
main();
}
}

VIII. CONCLUSION

/jav2021 INFORMATION TECHNOLOGY DEPARTMENT

You might also like