0% found this document useful (0 votes)
22 views23 pages

Microproject

The document outlines a micro project report for a Registration and Login Form developed in C++ by students of Government Polytechnic Awasari for the academic year 2024-25. It includes project objectives, methodology, implementation details, source code, and potential improvements for future development. The project aims to enhance understanding of C++ programming concepts such as classes, inheritance, and file handling.

Uploaded by

rutujagaikawad27
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views23 pages

Microproject

The document outlines a micro project report for a Registration and Login Form developed in C++ by students of Government Polytechnic Awasari for the academic year 2024-25. It includes project objectives, methodology, implementation details, source code, and potential improvements for future development. The project aims to enhance understanding of C++ programming concepts such as classes, inheritance, and file handling.

Uploaded by

rutujagaikawad27
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 23

Assessment Manual

For
Computer engineering program
(K Scheme Curriculum)

Board of Technical Education Mumbai


(ISO-9001-2008) (ISO/IEC 27001:2013)

Government Polytechnic Awasari(KH) 2023-24

A Micro project Report On

“Registration And Login From”


GOVERNMENT POLYTECHNIC AWASARI(KH).
Microproject
ProgramMing in C++(313304)
❖ Branch: Computer Engineering
❖ Year: Second year
❖ Academic year: 2024-25
❖ Topic of Project: Registration And Login Form
❖ Group Number: 11
❖ Group Leader: Hande Soham Navnath.
❖ Subject Teacher: Mrs.Panchakshari Mam.
MAHARASHTRA STATE BOARD OF
TECHNICAL EDUCATION
(ISO -9001-2008) (ISO/IEC 27001 – 2013)
Certificate
This is to certify that the following students of
semester 3rd of diploma in computer engineering of
institute, Government Polytechnic Awasari (KH)
(INST.Code-1051) have completed the micro project
satisfactorily in course of Programming in ‘C++’ for the
academic year 2024-25 as prescribed in the curriculum.

SUBMITTED BY –
Enrollment No Roll No Name of Students
Sr No.
1 23210270255 24CO231 CHAVAN ADITI SANTOSH
2 23210270256 24CO232 HANDE SOHAM NAVNATH
3 23210270257 24CO233 LOHOT ANISHA ATAMARAM

GUIDED BY- Mrs. Panchakshari Mam

------------- ------------------------------ --------------


Guide Head OF Department Principal
PART A - MICRO PROJECT PROPOSAL

Aim/Benefits of micro-project: -
To understand the Basic Code and Programs in C++
language.

Proposed Methodology: -
1. First of all, we have to select a topic and then take a
reference of subject teacher. The teacher will assign one
set of micro projects and said to the student to create a
report on introduction to “Programing in C++”.
2. We collected information about the topic using sources
such as the internet. Programming books and then we
asked subject teacher about topic on which we have a
micro project and then we type the required part-A and
done proper page. Set up and submitted to subject
teacher after the setup of part-A. we prepare a report of
our topic. After finishing all the data in proper
arrangement. We selected proper margin font. Lay out
4A size etc. At least we get the printouts of the micro-
project and submitted to teacher.
Action Plan: -

Sr. No. Detail of Planned Planned Name of


Activity Start Date Finished Members
Date
1 Group All team
formation members
and
allocation
of micro
project
tittle
2 Information All team
search and members
required
analysis
3 Actual All team
/assembly members
project
4 Testing of All team
project members
5 Acquire the All team
printout members
and submit
it
6 Submission All team
members
RESOURCES REQUIRED: -

Sr. No. Name of Specification Qty. Remark


resources
1 Software Microsoft 1
Word
2 Book Let us C++, 1
Programing
in ANSII.

Course Outcome:-

1) Developed c++ program using classes and objects

2)Implemented Inheritance in C++

3)Developed C++ programs to perform file operations

Date: -
(Mrs.Panchakshari Mam)
PART – B
CONTENTS

1. Introduction
2. History of Programming in ‘C++’
3. Header Inclusions.
4. Implementation
5. Key Features
6. Breakdown Features
7. Source Code.
8. Output.
9.Conclusion
Introduction

This C++ program We create Registration and login


from with help of C++ programming language .This
code implements a simple console based login system
in C++ .In this code we use 4 key features and
Breakdown of functions.This is our team work and code
show a proper output.
History of ‘C++’ Programming

CPP Development by Bjarne Stroustrup (1979–1983)


C++ was created by Bjarne Stroustrup, a Danish
computer scientist, while working at Bell Labs in New
Jersey. Stroustrup started working on a project in 1979,
motivated by the idea of combining the efficiency and
low-level access provided by C with the high-level
abstractions of Simula, the first object-oriented
programming language.C was already a powerful, low-
level system programming language (developed by
Dennis Ritchie in 1972), but lacked high-level features
like classes and objects.
Stroustrup’s initial language, called "C with Classes,"
aimed to incorporate object-oriented programming
(OOP) into C. His primary goal was to make a language
suitable for both high-performance systems
programming and complex software design.In 1983, the
language was renamed C++, with the "++" symbol,
which in C indicates incrementing a value, suggesting
that this language was an enhancement of C. During this
time, Stroustrup added features like classes, inheritance,
default function arguments, and function overloading.
Header Inclusions

#include <iostream.h>:iostream stands for standard


input-output stream.This header file contains definitions
of objects like cin ,cout ,etc.The methods declared in
these files are used for manipulating streams
#include <conio.h> is specific to non-standard MS-
DOS compilers and is not recommended for modern
C++development. Platform-independent alternatives
like compilation can be used for clearing the screen.
#include <string.h> A string is a variable that stores
a sequence of letters or other characters.It is a data type
used in programming, that is used to represent text
rather than numbers.
#include<fstream.h> This class describes a file stream
in general. It has ofstream and ifstream capabilities.
This means it can create files, write to files, and read
data from files.
Implementation

This code implements a simple console-based login


system in C++ that allows users to:

1. Login: Users can enter their username and password.


The program checks if the entered credentials exist in a
file named records.txt, where username and password
pairs are stored.

2. Registration: New users can register by providing a


username and password. The credentials are then
appended to the records.txt file.

3. Forgot Password: If a user forgets their password,


they can search for their account using their username.
If found, the password will be displayed.

4. Exit: The user can exit the program.


Key Features
1) classes and objects :- are key concepts of Object-Oriented
Programming (OOP). A class is a blueprint for creating
objects, defining their properties (attributes) and behaviors
(methods). An object is an instance of a class.

2) Inheritance in C++ :- is a fundamental concept of Object-


Oriented Programming (OOP) that allows one class (derived
class) to inherit attributes and behaviors (methods) from
another class (base class). It promotes code reusability and
establishes a natural hierarchy between classes

3) File Handaling in C++ :- File handling in C++ allows


programs to read from or write to files. C++ provides the
fstream library, which includes the following classes:

1. ifstream: For reading from files.

2. ofstream: For writing to files.


Breakdown Function

1. main(): Displays the main menu and directs the user to the
appropriate function based on their choice.

2. login(): Checks the credentials entered by the user against the stored
credentials in records.txt. If a match is found, the login is successful;
otherwise, an error message is shown.

3. registration(): Allows a new user to register by entering a username


and password. The credentials are saved in records.txt.

4. forgot(): Helps users retrieve their password if they've forgotten it. It


searches for the username in the file and, if found, displays the
corresponding password.
Source Code
#include <fstream>
#include <iostream>
#include <string>
using namespace std;

class User
{
protected:
string username, password;

public:

virtual void login() = 0;


virtual void registration() = 0;
virtual void forgotPassword() = 0;

void setCredentials(string user, string pass)


{
username = user;
password = pass;
}
};
class Login : public User
{
public:
void login()
{
int count = 0;
string id, pass;

cout << "\t\t\t PLEASE ENTER THE USERNAME AND PASSWORD : " << endl;
cout << "\t\t\t USERNAME : ";
cin >> username;
cout << "\t\t\t PASSWORD : ";
cin >> password;

ifstream input("records.txt");
while (input >> id >> pass)
{
if (id == username && pass == password)
{
count = 1;
break;
}
}
input.close();

if (count == 1)
{
cout << username << "\n YOUR LOGIN IS SUCCESSFUL! \n THANKS FOR
LOGGING IN!\n";
}
else
{
cout << "\n LOGIN ERROR \n PLEASE CHECK YOUR USERNAME AND
PASSWORD\n";
}
}

void registration()
{

}
void forgotPassword()
{

}
};

class Registration : public User


{
public:
void registration()
{

cout << "\t\t\t ENTER THE USERNAME : ";


cin >> username;
cout << "\t\t\t ENTER THE PASSWORD : ";
cin >> password;

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


f1 << username << ' ' << password << endl;

cout << "\n\t\t\t REGISTRATION IS SUCCESSFUL!\n";


}

void login()
{

}
void forgotPassword()
{
}
};

class ForgotPassword : public User


{
public:
void forgotPassword()
{
int option;
cout << "\t\t\t YOU FORGOT THE PASSWORD? NO WORRIES \n";
cout << "PRESS 1 TO SEARCH YOUR ID BY USERNAME " << endl;
cout << "PRESS 2 TO GO BACK TO THE MAIN MENU " << endl;
cout << "\t\t\t ENTER YOUR CHOICE : ";
cin >> option;

switch (option)
{
case 1:
{
int count = 0;
string id, pass;

cout << "\n\t\t\t ENTER THE USERNAME: ";


cin >> username;

ifstream f2("records.txt");
while (f2 >> id >> pass)
{
if (id == username)
{
count = 1;
password = pass;
break;
}
}
f2.close();

if (count == 1) {
cout << "\n\n YOUR ACCOUNT IS FOUND! \n";
cout << "\n\n YOUR PASSWORD IS: " << password << endl;
}
else {
cout << "\n\t SORRY! YOUR ACCOUNT IS NOT FOUND!\n";
}
break;
}
case 2:
break;
default:
cout << "\t\t\t WRONG CHOICE! PLEASE TRY AGAIN.\n";
forgotPassword();
}
}

void login()
{

}
void registration()
{

}
};
int main()
{
int choice;
User* user;

do {
cout << "\t\t\t\n\n\n";
cout << "\t\t\t WELCOME TO LOGIN PAGE \n\n\n";
cout << "\t\t\t_________________ MENU ___________________\n\n\n";
cout << "\t PRESS 1 TO LOGIN" << endl;
cout << "\t PRESS 2 TO REGISTRATION" << endl;
cout << "\t PRESS 3 IF YOU FORGOT YOUR PASSWORD" << endl;
cout << "\t PRESS 4 TO EXIT" << endl;
cout << "\n\t\t\t PLEASE ENTER YOUR CHOICE: ";
cin >> choice;

switch (choice)
{
case 1:
user = new Login();
user->login();
delete user;
break;
case 2:
user = new Registration();
user->registration();
delete user;
break;
case 3:
user = new ForgotPassword();
user->forgotPassword();
delete user;
break;
case 4:
cout << "\t\t\t THANK YOU! \n\n";
break;

default:
cout << "\t\t\t PLEASE SELECT FROM THE OPTIONS GIVEN ABOVE \n" <<
endl;
}
} while (choice != 4);

return 0;
}
Output
Conclusion

Summary: Briefly reiterate the key features and functionalities of the


Registration And Login form
Improvements: Discuss potential enhancements for future development, such
as:
Graphical user interface (GUI) for a more user-friendly experience.
Database integration for more efficient data storage and retrieval.
Member/borrower management system with logins, borrowing history, and due
dates.
Reporting capabilities to generate reports on book availability, borrowing
trends, etc.
Recommendations: Provide suggestions for users on how to effectively interact
with the system.
Additional Considerations:
Clarity and Conciseness: Aim for a clear and concise report, providing
essential information without excessive detail.
Code Comments: While code snippets may not be included directly in the
report, ensure that the actual C++ code has well-written comments to enhance
readability and maintainability.
Modularity: Design the code with modularity in mind, making it easier to
understand, test, and modify in the future.
Error Handling: Implement robust error handling to gracefully handle user
input mistakes and other potential errors.
Testing: Conduct thorough testing to ensure the system functions as expected
before deployment.

You might also like