-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstudent.cpp
More file actions
63 lines (43 loc) · 1.49 KB
/
Copy pathstudent.cpp
File metadata and controls
63 lines (43 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#include<iostream>
#include<string>
#include<stdbool.h>
#include "student.h"
using namespace std;
void inputStudentData(struct student *s){
cout << "Enter your first name: ";
cin >> s->n.fname;
cout << "Enter your last name: ";
cin >> s->n.lname;
cout<<"Enter your roll number: ";
cin >> s->roll_number;
cout << "Enter the marks of mathematics: ";
cin >> s->M_marks;
cout << "Enter the marks of science: ";
cin >> s->S_marks;
cout << "Enter the marks of computer science: ";
cin >> s->CS_marks;
cout << "Enter the marks of english: ";
cin >> s->EN_marks;
cout << "Enter the total percentage: ";
cin >> s->precentage;
cout << "Enter the grade: ";
cin >> s->grade;
}
void displayReportCArd(struct student *s){
cout << "===============================";
cout << "\n STUDENT REPORT \n";
cout << "===============================\n";
cout << "Name: " << s->n.fname << " " << s->n.lname << endl;
cout << "Roll Number: " << s->roll_number << endl;
cout << "\nSubject \t\t Marks" << endl;
cout << "Mathematics \t\t"<<s->M_marks << endl;
cout << "Science \t \t"<<s->S_marks << endl;
cout << "Computer Science \t" <<s->CS_marks << endl;
cout << "English \t\t"<<s->EN_marks << endl;
cout << "\nTotal Percentage: " << s->precentage << endl;
cout << "\nGrade :" << s->grade << endl;
}
void exit(){
cout << "\nThank for using the INPUT OUTPUT PROGRAM.\n"
<< endl;
}