SlideShare une entreprise Scribd logo
1  sur  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

Contenu connexe

Similaire à 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
 

Similaire à 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
 

Dernier

Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 

Dernier (20)

Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 

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