Question: Codes : Output in notepad : Question: There is an error when the print on Notepad. Can I know what is the error? #include #include

Codes :

Codes : Output in notepad : Question: There is an error whenthe print on Notepad. Can I know what is the error? #include#include #include #include #include 1 2 3 4 5 6 7 89 16 11 12 13 using namespace std; class Quiz public: floatquizi, quiz2, quiz3; }; 15 16 17 18 19 28 21 22

Output in notepad :

23 24 25 26 27 28 class Student { public: string idio;

Question: There is an error when the print on Notepad. Can I know what is the error?

#include #include #include #include #include 1 2 3 4 5 6 7 8 9 16 11 12 13 using namespace std; class Quiz public: float quizi, quiz2, quiz3; }; 15 16 17 18 19 28 21 22 23 24 25 26 27 28 class Student { public: string idio; float carryMark, test, assignment, labTest, totalCarryMark; Quiz quiz; Student() { idNo= "null"; carryMark = a, test = @, assignment labTest = 0, totalcarryMark = 0; quiz.quizi = 0; quiz.quiz2 = 0; quiz.quiz3 = @; 3e 31 32 33 34 35 36 37 38 39 48 41 42 43 44 Estring main menu() { string choice; cout > choice; return choice; Estring add_new_student_menu() { string choice; cout > choice; return choice; 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 68 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 F! Evoid add_new_student(vector& students) { Student s; cout > s.idNo; bool repeat = true; while (repeat) { string choice = add_new_student_menu(); if (choice = "1") { // quiz if (s.quiz.quiz1 != @ || s.quiz.quizz != 0 || s.quiz.quiz3 != e) { cout > s.quiz.quizi; cout > s.quiz.quiz2; cout > s.quiz.quiz3; float total_quiz - s.quiz.quizi + s.quiz.quiz2 + s.quiz.quiz3; cout > s.test; cout > s.assignment; cout > s.labtest; cout > ch; if (ch == "") repeat = false; students.push_back(s); 122 123 Ein dstudent(vector& students, string id) { for (int i = 0; i & s) { string id; cout > id; int pos = findstudent(s, id); if (pos = -1) { cout > num; if (num == "1") { cout > [pos] quiz.quizi; else if (num == "2") { cout > S[pos].quiz.quiz2; else if (num - "3") { cout > s[pos].quiz.quiz3; else if (choice == 2) { // update assessment update_assessment(students); else if (choice == "3") { 1/ carry mark summary carry_mark_summary(students); 288 289 298 291 292 293 294 295 296 297 298 299 306 301 382 303 384 385 306 387 308 389 318 311 312 313 314 315 316 317 318 319 328 else if (choice => "4") { // carry mark summary -- save to file string file_name; cout > file_name; fstream file; file.open(file_name.c_str(), ios::in ios: tout);//file.open(file_name, ios: lout); file.close(); ofstream file_obj; file_obj.open(file_name.c_str(),ios:out); for (int i = 0; i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!