C++ File
C++ File
2023-24
DEPARTMENT OF COMPUTER ENGINEERING
Subject: - OBJECT ORIENTED PROGRAMMING USING C++
Submitted by
Samir Mesram
Rashi Nirale
Nagesh Motirave
Prathmesh Ramteke
Under the Guidance of
Prof. S.S.Mete Mam
Certificate
Micro Project
This is certify that the microproject titled Login and Registration System using
File Handling in C++ has Completed by Satisfactorily for the subject of Object
Oriented Programming using C++ by the students second year third semester
diploma in computer engineering.
Name of students:-
Samir Mesram
Rashi Nirale
Nagesh Motirave
Prathmesh Ramteke
In partial fulfillment of requirement for the award of the computer in
Diploma in computer engineering and Submitted to the department computer
engineering of government polytechnic Yavatmal (1011) for the work carried out
during the period for the academic year 2023-24 as per curriculum.
We are also thankful to our friends and library staff members whose
encouragement suggestions helped us to complete our Microproject.
DECLARATION
We here by declare that the project entitled “Login and Registration C++”
in the partial fulfillment of the course Object Oriented Programming in C++
(22316) in curriculum of the program. Diploma in computer engineering is
submitted to the department of computer of the institute government polytechnic
Yavatmal.
The work done by us in our own piece of work and authentic to the best of
our knowledge under the guidance of S.S.Mete mam
Gpy(1011)
Group Details
The demand for registration and login may be caused by the need to
establish user system, or the need to collect user information, or the need for user
operation etc. To realize see data of student function shall have the vital effect
for business, and it can also play the important influence on so many business
functions, and such work may need the careful and cautious design accordingly.
The key point for whether an APP needs registration and login depends on the
product form of such APP .
If user’s registration and login cannot bring any further value to user’s demand,
product function and business model itself, it shall be unnecessary to design such
function accordingly, for example, those products in practical tools category like
calculator, flashlight etc.
It may be for the need to establish the user system, or the need to collect user
information, or the need for user operation etc., and following APP in certain
types may need the design of registration and login. Some strong-ties social
software products, like WeChat, facebook etc. concerned so many user’s treasure
security, like Alipay; some products focused on user’s attention to information
even more, like e-mail etc.; in addition, some other APPs in entertainment, game
categories, all need the support of account system; of course, they also need the
function of registration and login.
Annexure – I
PART A – Micro-Project Proposal
Login and Registration
In accordance with the aim of the project and to assure the proposed and desired . .
outcome we are committed to adopt the following methodologies: Firstly, we will determine
to go through the encyclopedia and some content available on the websites regarding to our
project to cope up with the issue of overall thought process. Secondly, a study on the
literature review about the and web page is also in the line of action to get the first-hand
information about emerging contents and trends. Thirdly, references of various standard
books will also be taken to enhance the quality of content and to set a profound basis for the
explanation of newly added terminologies to be added.
ACTION PLAN
1.0 Rationale:
Login Page is very common among any type of secured applications and its widely
used on the internet for authenticating the user before presenting the secured pages of the
web applications. For example, to use Facebook you have to get authenticated by the
Facebook before they give you access to their platform. The user authentication is done
through a special web page called Login Page. The Login page asks you to enter your
credentials which is then validated by the application and after successful validation you are
presented with the secured part of the application.
In this example we will see the actual use of Login Page in web application or any
other type of applications. For example, if you have to use Windows or Linux operating
system you have to login to the system by providing the username and password. So, login
page will validate you to find if you are the authenticated user of the OS or not. If not, you
won't be able to the operating system and can't access it
1. Save time: By using login and registration system it cut down the time spent on
tedious, manual processes, countless documents and systems by gathering all registrations
and participant information in one place.
Also save time on updates of your own website through a few simple clicks in the sign-up
system that feeds directly to the website.
2. Easy administration of participants: With a complete registration system, you not only
get sign-ups and participant information in a collective and neat portal, but you also get
the opportunity to follow up the participants throughout the process. If the registration
system offers participant administration, you can follow up on the participants’ status
(insert data, delete, store, etc.).
3. Improve efficiency and increase value creation: The time you save by using a
registration solution can be spent on other, value-creating tasks. Get the opportunity to
improve the quality and breadth of your training portfolio.
Firstly, we will determine to go through the encyclopedia and some content available
on the websites regarding to our project to cope up with the issue of overall thought process.
Secondly, a study on the literature review about the and electric circuit is also in the
line of action to get the first-hand information about emerging contents and trends.
Thirdly, references of various standard books will also be taken to enhance the quality
of content and to set a profound basis for the explanation of newly added terminologies to
be added.
Finally, the content regarding the basis for innovative trends and adopted style will be
taken from the syllabus of various renowned universities who are having tie up with
platforms like NPTEL, SWAYAM and other MOOCS sources to enhance the desired
working and ethical culture as an ultimate objective for language learners.
6.0 Actual Resources required
void login();
void registr();
void forgot();
int main()
{
int choice;
cout <<
"***********************************************************************\
n\n\n";
cout << "Welcome to login page \n\n";
cout << "* MENU *\n\n";
cout << "1. LOGIN" << endl;
cout << "2. REGISTER" << endl;
cout << "3. FORGOT PASSWORD (or) USERNAME" << endl;
cout << "4. Exit" << endl;
cout << "Enter your choice: ";
cin >> choice;
cout << endl;
switch (choice)
{
case 1:
login();
break;
case 2:
registr();
break;
case 3:
forgot();
break;
case 4:
cout << "Thanks for using this program.\nThis program is created by\n1.
Harshal\n2. Rohan\n3. Alok\n\n";
break;
default:
system("cls");
cout << "You've entered the wrong choice. Try again..\n" << endl;
main();
}
}
void login()
{
int count = 0;
string user, pass, u, p;
system("cls");
cout << "Please enter the following details" << endl;
cout << "USERNAME: ";
cin >> user;
cout << "PASSWORD: ";
cin >> pass;
ifstream input("database.txt");
input.close();
if (count == 1)
{
cout << "\nHello " << user << "\n<LOGIN SUCCESSFUL>\nThanks for
logging in..\n";
cin.get();
cin.get();
main();
}
else
{
cout << "\nLOGIN ERROR\nPlease check your username and password\n";
main();
}
}
void registr()
{
string reguser, regpass;
system("cls");
cout << "Enter the username: ";
cin >> reguser;
cout << "\nEnter the password: ";
cin >> regpass;
ofstream reg("database.txt", ios::app);
reg << reguser << ' ' << regpass << endl;
system("cls");
cout << "\nRegistration Successful\n";
main();
}
void forgot()
{
int ch;
system("cls");
cout << "Forgotten? We're here to help\n";
cout << "1. Search your id by username" << endl;
cout << "2. Search your id by password" << endl;
cout << "3. Main menu" << endl;
cout << "Enter your choice: ";
cin >> ch;
switch (ch)
{
case 1:
{
int count = 0;
string searchuser, su, sp;
cout << "\nEnter your remembered username: ";
cin >> searchuser;
ifstream searchu("database.txt");
searchu.close();
if (count == 1)
{
cout << "\nHurray, account found\n";
cout << "\nYour password is " << sp;
cin.get();
cin.get();
system("cls");
main();
}
else
{
cout << "\nSorry, your userID is not found in our database\n";
cout << "Please kindly contact your system administrator for more details\n";
cin.get();
cin.get();
main();
}
break;
}
case 2:
{
int count = 0;
string searchpass, su2, sp2;
cout << "\nEnter the remembered password: ";
cin >> searchpass;
ifstream searchp("database.txt");
searchp.close();
if (count == 1)
{
cout << "\nYour password is found in the database\n";
cout << "Your ID is: " << su2;
cin.get();
cin.get();
system("cls");
main();
}
else
{
cout << "Sorry, we cannot find your password in our database\n";
cout << "Kindly contact your administrator for more information\n";
cin.get();
cin.get();
main();
}
break;
}
case 3:
cin.get();
main();
break;
default:
cout << "Sorry, you entered the wrong choice. Kindly try again" << endl;
forgot();
}
}
OUTPUT:
THANK YOU!