Here credentials.txt
and students.txt
must be created in the same directory.
credentials.txt must be empty.
students.txt must be empty or must contain data in the following format:
<name> <age> <gpa>
<name> <age> <gpa>
...
...
...
Example:
John 20 3.5
Jane 19 3.8
...
...
...
credentials.txt will contain data in the following format:
<username> <password>
<username> <password>
...
...
...
Example:
john john123
jane jane123
...
...
...
Student Management System
-
Login
-
Register
-
Exit
Enter your choice:
1
Enter username: admin
Enter password: admin
Authentication successful.
Student Management System
-
Add Student
-
View All Students
-
Logout
Enter your choice:
1
Enter student name: John
Enter student age: 20
Enter student GPA: 3.5
Student added successfully.
Student Management System
-
Add Student
-
View All Students
-
Logout
Enter your choice:
2
Student List
Student 1:
Name: John
Age: 20
GPA: 3.50
Student Management System
-
Add Student
-
View All Students
-
Logout
Enter your choice:
3
Logging out...
Student Management System
-
Login
-
Register
-
Exit
Enter your choice:
2
Enter username: admin
Enter password: admin
Username already taken.
Student Management System
-
Login
-
Register
-
Exit
Enter your choice:
2
Enter username: admin2
Enter password: admin123
Registration successful.