SlideShare a Scribd company logo
1 of 17
Students
Management System
{Sheeraz Ali ˚Qaswar Sarfarz ˚Zain Ali ˚Musa Mumtaz ˚Kumail}
TABLE OF CONTENTS
01
Intro
02
Working
03
Flow Of
the Program
04
Demonstration
Flow OF
The
Program
Here we are
going to
Demonstrate
Our Program
Demonstration
Process that allow to store
the output of program in
file (text file) and can be
used any time.
Allow a program to interact
with external files,
• Reading
• Writing
Printing of schedule
Feature of prototype of noticeboard
FILE handling IN
C++
For input andoutput operationover console
Include headerfile < iostream>
1. Cin (for input)
2. Cout (foroutput)
Nowfor input andoutput operationin file
Include headerfile <fstream>
1. ifstream (inputfile stream)
o usedto readfromthe file
2. ofstream (output file stream)
o used to writeto the file
WORKING of File
Declaration of File
This Help us to Print the
Schedule
This function Get the
Schedule From the (.txt)
File by Using Fstream
View Schedule Function
//function to print schedule
void schedule(ifstream& bsse)
{
string line;
while (getline(bsse, line))
{
cout << line << endl;
}
}
void printSchedule() {
ifstream infile("schedulebs.txt");
schedule(infile);
infile.close();
}
This Function use Update
the Notice Board
It take input from the
teacher until exit
Update NoticeBoard Function
void update(const string& updates) //function for teacher to add
updates
{
ofstream instruct("updates.txt");
cout << "Type Announcement for Studnets. Type 'exit' to stop." << endl;
string instruction;
while (true) {
getline(cin, instruction);
if (instruction == "exit")
{
break;
}
instruct << instruction << endl;
}
instruct.close();
cout << "nn";
}
void Notice() {
string uo;
update("updates.txt");
cout << "Instruction has been sent to students successfully." << endl;
cout << "nn";
}
This Help us to Print the
NoticeBorad
This function Get the
noticeboard update From
the (updates.txt) File by
Using istream
View NoticeBoard Function
void viewNotice() {
ifstream
update("updates.txt");
upd(update);
update.close();
cout << "nn";
}
It Displays the Attandace
of the Students according
by the Number of Class#
View Attandance Function
void attandance() {
cout << "**Attandance**n";
cout << ":****************:nn";
cout << setw(30) << "Attandance" << endl;
cout <<setw(19)<<"Class #" ;
for (int i = 0; i < TClasses; i++) {
cout << setw(3) << i + 1;
}
cout << endl;
cout << "******************************************" << endl;
for (int k = 0; k < tstudents; k++) {
double pre = 0;
cout << setw(14) << students[k].name <<"("<< setw(3)<< students[k].roll << ")";
for (int i = 0; i < today; i++) {
if (students[k].presence[i] == 1) {
cout << setw(3) << 'P';
pre++;
}
else {
cout << setw(3) << 'A';
}
};
if (pre >= 15) {
pre = (pre / today) * 100;
cout << setw(10) << pre << "%";
if (pre <= 60) {
cout << setw(14) << " Disqualified!";
}
else {
cout << setw(14) << " Outstanding!";
}
}
cout << "nn";
}
• It’s a Security Check For
the Teacher.
• If someone else Try to
access the teacher
function.
• it will not let him Login
Pin Security
upin = 0;
cout << "Enter Pin :";
cin >> upin;
if (pin==upin) {
teacher();
}
It’s a Attandance Marker
Function.
It let teacher to Mark
Attandance of Students
with respective days.
Mark Attandance Function
int markAttandance() {
cout << "**Teacher Interface**n";
cout << ":******** MARK Attandance
********:nn";
cout << "Enter Attandance Class# " <<
today+1 << ".nNote: 1 = Present, 0 =
Absent : n";
for (int i = 0; i < tstudents; i++) {
cout << students[i].name << " : ";
cin >> students[i].presence[today];
}
today++;
return 0;
}
To Add a Student it will
ask for the Name
And his Previous class
attandace.
Then it will Assign a ID
to the Student
Automaticaly
Manage Students> ADD Function
int add() {
cout << "**Teacher Interface**n";
cout << ":******** ADD ********:nn";
cout << "Enter Student Name: ";
cin >> students[tstudents].name;
for (int i = 0; i < today; i++) {
cout << "Enter Day " << i + 1 << endl;
cin >> students[tstudents].presence[i];
}
newid = newid + tstudents;
newid++;
students[tstudents].roll = newid;
tstudents++;
return 0;
}
To edit any Student Name
& Attandace
This finds the Student
Record with the help of
Roll#
If it finds any student
with Inputed Roll# it will
let Teacehr Edit that.
Manage Students> EDIT Function
int edit() {
int editit;
int position = 0, find = 0;
cout << "**Teacher Interface**n";
cout << ":******** EDIT ********:nn";
cout << "Enter Student Roll # To Edit :";
cin >> editit;
for (int i = 0; i < tstudents; i++) {
if (students[i].roll == editit) {
position = i;
find = 1;
break;
}
}
if (find == 1) {
cout << "Enter Re-Wrtie Name: ";
cin>>students[position].name;
for (int i = 0; i <= today; i++) {
cout << "Re-Enter Attandance Day "<< i + 1<<" Note: 1 = Present , 0 =
Absent : ";
cin >> students[position].presence[i];
}
cout << "Student Data Edited Successfulnn";
}
else {
cout << "No Data Foundnn";
}
return 0;
}
To Delete a Student from
the array it will ask for
the roll# to Find.
This Function Will replace
that student Data with the
one ahead.
And Subtract 1 from the
Total Students
Manage Students> EDIT Function
if (find == 1) {
for (int i = position; i < tstudents;
i++){
students[i].name = students[i + 1].name;
students[i].roll = students[i + 1].roll;
for (int k = 0; k < today; k++) {
students[i].presence[k] = students[i +
1].presence[k];
}
}
cout << "Student Data Deleted
Successfulnn";
}
else {
cout << "No Data Foundnn";
} tstudents--;
CREDITS: This presentation template was created by
Slidesgo, incluiding icons by Flaticon, and
infographics & images by Freepik.
THANKS!
Do you have any questions?
Please, keep this slide for attribution.
collaborators[5]=
{Sheeraz Ali,
Qaswar Sarfarz,
Zain Ali,
Musa Mumtaz
Kumail};
string

More Related Content

Similar to Students Management System c++ project.pptx

Hands on Session on Python
Hands on Session on PythonHands on Session on Python
Hands on Session on PythonSumit Raj
 
ParallelProgrammingBasics_v2.pdf
ParallelProgrammingBasics_v2.pdfParallelProgrammingBasics_v2.pdf
ParallelProgrammingBasics_v2.pdfChen-Hung Hu
 
Add an interactive command line to your C++ application
Add an interactive command line to your C++ applicationAdd an interactive command line to your C++ application
Add an interactive command line to your C++ applicationDaniele Pallastrelli
 
Templates in C++
Templates in C++Templates in C++
Templates in C++Tech_MX
 
Classes(or Libraries)#include #include #include #include.docx
Classes(or Libraries)#include #include #include #include.docxClasses(or Libraries)#include #include #include #include.docx
Classes(or Libraries)#include #include #include #include.docxbrownliecarmella
 
Very basic functional design patterns
Very basic functional design patternsVery basic functional design patterns
Very basic functional design patternsTomasz Kowal
 
Google App Engine Developer - Day3
Google App Engine Developer - Day3Google App Engine Developer - Day3
Google App Engine Developer - Day3Simon Su
 
friends functionToshu
friends functionToshufriends functionToshu
friends functionToshuSidd Singh
 
Gaurav Jatav , BCA Third Year
Gaurav Jatav , BCA Third YearGaurav Jatav , BCA Third Year
Gaurav Jatav , BCA Third Yeardezyneecole
 
Instruction1. Please read the two articles. (Kincheloe part 1 &.docx
Instruction1. Please read the two articles. (Kincheloe part 1 &.docxInstruction1. Please read the two articles. (Kincheloe part 1 &.docx
Instruction1. Please read the two articles. (Kincheloe part 1 &.docxcarliotwaycave
 
source-code-program-menghitung-gaji-pegawai
source-code-program-menghitung-gaji-pegawaisource-code-program-menghitung-gaji-pegawai
source-code-program-menghitung-gaji-pegawaiKang Fatur
 
Tugas praktikukm pemrograman c++
Tugas praktikukm  pemrograman c++Tugas praktikukm  pemrograman c++
Tugas praktikukm pemrograman c++Dendi Riadi
 
C++ extension methods
C++ extension methodsC++ extension methods
C++ extension methodsphil_nash
 
include ltiostreamgt include ltstringgt include .pdf
include ltiostreamgt include ltstringgt include .pdfinclude ltiostreamgt include ltstringgt include .pdf
include ltiostreamgt include ltstringgt include .pdfcontact32
 

Similar to Students Management System c++ project.pptx (20)

Codes on structures
Codes on structuresCodes on structures
Codes on structures
 
Lab 13
Lab 13Lab 13
Lab 13
 
Hands on Session on Python
Hands on Session on PythonHands on Session on Python
Hands on Session on Python
 
C++ practical
C++ practicalC++ practical
C++ practical
 
CSNB244 Lab5
CSNB244 Lab5CSNB244 Lab5
CSNB244 Lab5
 
ParallelProgrammingBasics_v2.pdf
ParallelProgrammingBasics_v2.pdfParallelProgrammingBasics_v2.pdf
ParallelProgrammingBasics_v2.pdf
 
Add an interactive command line to your C++ application
Add an interactive command line to your C++ applicationAdd an interactive command line to your C++ application
Add an interactive command line to your C++ application
 
Templates in C++
Templates in C++Templates in C++
Templates in C++
 
Classes(or Libraries)#include #include #include #include.docx
Classes(or Libraries)#include #include #include #include.docxClasses(or Libraries)#include #include #include #include.docx
Classes(or Libraries)#include #include #include #include.docx
 
Very basic functional design patterns
Very basic functional design patternsVery basic functional design patterns
Very basic functional design patterns
 
Presentation for structure in c
Presentation for  structure in cPresentation for  structure in c
Presentation for structure in c
 
Google App Engine Developer - Day3
Google App Engine Developer - Day3Google App Engine Developer - Day3
Google App Engine Developer - Day3
 
friends functionToshu
friends functionToshufriends functionToshu
friends functionToshu
 
Gaurav Jatav , BCA Third Year
Gaurav Jatav , BCA Third YearGaurav Jatav , BCA Third Year
Gaurav Jatav , BCA Third Year
 
Instruction1. Please read the two articles. (Kincheloe part 1 &.docx
Instruction1. Please read the two articles. (Kincheloe part 1 &.docxInstruction1. Please read the two articles. (Kincheloe part 1 &.docx
Instruction1. Please read the two articles. (Kincheloe part 1 &.docx
 
source-code-program-menghitung-gaji-pegawai
source-code-program-menghitung-gaji-pegawaisource-code-program-menghitung-gaji-pegawai
source-code-program-menghitung-gaji-pegawai
 
Tugas praktikukm pemrograman c++
Tugas praktikukm  pemrograman c++Tugas praktikukm  pemrograman c++
Tugas praktikukm pemrograman c++
 
C++11
C++11C++11
C++11
 
C++ extension methods
C++ extension methodsC++ extension methods
C++ extension methods
 
include ltiostreamgt include ltstringgt include .pdf
include ltiostreamgt include ltstringgt include .pdfinclude ltiostreamgt include ltstringgt include .pdf
include ltiostreamgt include ltstringgt include .pdf
 

Recently uploaded

Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...tanu pandey
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf203318pmpc
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projectssmsksolar
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptMsecMca
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdfKamal Acharya
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringmulugeta48
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.Kamal Acharya
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptxJIT KUMAR GUPTA
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptNANDHAKUMARA10
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoordharasingh5698
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 

Recently uploaded (20)

Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 

Students Management System c++ project.pptx

  • 1. Students Management System {Sheeraz Ali ˚Qaswar Sarfarz ˚Zain Ali ˚Musa Mumtaz ˚Kumail}
  • 2. TABLE OF CONTENTS 01 Intro 02 Working 03 Flow Of the Program 04 Demonstration
  • 4. Here we are going to Demonstrate Our Program Demonstration
  • 5. Process that allow to store the output of program in file (text file) and can be used any time. Allow a program to interact with external files, • Reading • Writing Printing of schedule Feature of prototype of noticeboard FILE handling IN C++
  • 6. For input andoutput operationover console Include headerfile < iostream> 1. Cin (for input) 2. Cout (foroutput) Nowfor input andoutput operationin file Include headerfile <fstream> 1. ifstream (inputfile stream) o usedto readfromthe file 2. ofstream (output file stream) o used to writeto the file WORKING of File
  • 8. This Help us to Print the Schedule This function Get the Schedule From the (.txt) File by Using Fstream View Schedule Function //function to print schedule void schedule(ifstream& bsse) { string line; while (getline(bsse, line)) { cout << line << endl; } } void printSchedule() { ifstream infile("schedulebs.txt"); schedule(infile); infile.close(); }
  • 9. This Function use Update the Notice Board It take input from the teacher until exit Update NoticeBoard Function void update(const string& updates) //function for teacher to add updates { ofstream instruct("updates.txt"); cout << "Type Announcement for Studnets. Type 'exit' to stop." << endl; string instruction; while (true) { getline(cin, instruction); if (instruction == "exit") { break; } instruct << instruction << endl; } instruct.close(); cout << "nn"; } void Notice() { string uo; update("updates.txt"); cout << "Instruction has been sent to students successfully." << endl; cout << "nn"; }
  • 10. This Help us to Print the NoticeBorad This function Get the noticeboard update From the (updates.txt) File by Using istream View NoticeBoard Function void viewNotice() { ifstream update("updates.txt"); upd(update); update.close(); cout << "nn"; }
  • 11. It Displays the Attandace of the Students according by the Number of Class# View Attandance Function void attandance() { cout << "**Attandance**n"; cout << ":****************:nn"; cout << setw(30) << "Attandance" << endl; cout <<setw(19)<<"Class #" ; for (int i = 0; i < TClasses; i++) { cout << setw(3) << i + 1; } cout << endl; cout << "******************************************" << endl; for (int k = 0; k < tstudents; k++) { double pre = 0; cout << setw(14) << students[k].name <<"("<< setw(3)<< students[k].roll << ")"; for (int i = 0; i < today; i++) { if (students[k].presence[i] == 1) { cout << setw(3) << 'P'; pre++; } else { cout << setw(3) << 'A'; } }; if (pre >= 15) { pre = (pre / today) * 100; cout << setw(10) << pre << "%"; if (pre <= 60) { cout << setw(14) << " Disqualified!"; } else { cout << setw(14) << " Outstanding!"; } } cout << "nn"; }
  • 12. • It’s a Security Check For the Teacher. • If someone else Try to access the teacher function. • it will not let him Login Pin Security upin = 0; cout << "Enter Pin :"; cin >> upin; if (pin==upin) { teacher(); }
  • 13. It’s a Attandance Marker Function. It let teacher to Mark Attandance of Students with respective days. Mark Attandance Function int markAttandance() { cout << "**Teacher Interface**n"; cout << ":******** MARK Attandance ********:nn"; cout << "Enter Attandance Class# " << today+1 << ".nNote: 1 = Present, 0 = Absent : n"; for (int i = 0; i < tstudents; i++) { cout << students[i].name << " : "; cin >> students[i].presence[today]; } today++; return 0; }
  • 14. To Add a Student it will ask for the Name And his Previous class attandace. Then it will Assign a ID to the Student Automaticaly Manage Students> ADD Function int add() { cout << "**Teacher Interface**n"; cout << ":******** ADD ********:nn"; cout << "Enter Student Name: "; cin >> students[tstudents].name; for (int i = 0; i < today; i++) { cout << "Enter Day " << i + 1 << endl; cin >> students[tstudents].presence[i]; } newid = newid + tstudents; newid++; students[tstudents].roll = newid; tstudents++; return 0; }
  • 15. To edit any Student Name & Attandace This finds the Student Record with the help of Roll# If it finds any student with Inputed Roll# it will let Teacehr Edit that. Manage Students> EDIT Function int edit() { int editit; int position = 0, find = 0; cout << "**Teacher Interface**n"; cout << ":******** EDIT ********:nn"; cout << "Enter Student Roll # To Edit :"; cin >> editit; for (int i = 0; i < tstudents; i++) { if (students[i].roll == editit) { position = i; find = 1; break; } } if (find == 1) { cout << "Enter Re-Wrtie Name: "; cin>>students[position].name; for (int i = 0; i <= today; i++) { cout << "Re-Enter Attandance Day "<< i + 1<<" Note: 1 = Present , 0 = Absent : "; cin >> students[position].presence[i]; } cout << "Student Data Edited Successfulnn"; } else { cout << "No Data Foundnn"; } return 0; }
  • 16. To Delete a Student from the array it will ask for the roll# to Find. This Function Will replace that student Data with the one ahead. And Subtract 1 from the Total Students Manage Students> EDIT Function if (find == 1) { for (int i = position; i < tstudents; i++){ students[i].name = students[i + 1].name; students[i].roll = students[i + 1].roll; for (int k = 0; k < today; k++) { students[i].presence[k] = students[i + 1].presence[k]; } } cout << "Student Data Deleted Successfulnn"; } else { cout << "No Data Foundnn"; } tstudents--;
  • 17. CREDITS: This presentation template was created by Slidesgo, incluiding icons by Flaticon, and infographics & images by Freepik. THANKS! Do you have any questions? Please, keep this slide for attribution. collaborators[5]= {Sheeraz Ali, Qaswar Sarfarz, Zain Ali, Musa Mumtaz Kumail}; string