Microproject
Microproject
For
Computer engineering program
(K Scheme 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
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: -
Course Outcome:-
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
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.
class User
{
protected:
string username, password;
public:
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()
{
}
};
void login()
{
}
void forgotPassword()
{
}
};
switch (option)
{
case 1:
{
int count = 0;
string id, pass;
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