Question: C++ Programming !!!!Important!!!! I need help to solve this problem. Can anyone help me. Task: Your task is to create a grade management program for

C++ Programming !!!!Important!!!!

I need help to solve this problem. Can anyone help me.

Task: Your task is to create a grade management program for student grades. Your program should contain the classes Student and Subject (see class diagrams):

C++ Programming !!!!Important!!!! I need help to solve this problem. Can anyone

Special features of the data elements and element functions are: -> The constructor of Subject should be able to initialize the data elements description and grade with externally adopted values on the one hand, but on the other hand it should also be a standard constructor that creates a not yet named and graded subject (the description of the subject has Value (empty string) and the grade of the subject just the value 0.0). -> toString should return the data of a Subject object in a suitable formatting as a string (see sample output on the next page). -> Student's standard constructor is to create a student whose matNr has the value 0. The subjects (i.e. the subject objects in the subjects array) do not yet contain grades, but they already contain the correct names: The names to be set by the constructor are PAD1, PAD2, TGI, EDM, WI, ITS and MIC. -> takeExams ('carry out exams') should assign a grade to all objects in subjects. Each individual note should be randomly selected from the set of 11 possible note values 1.0, 1.3, 1.7, 2.0, 2.3, 2.7, 3.0, 3.3, 3.7, 4.0 and 5.0 with the same probability. o If there is at least a 5.0 among the assigned grades, true should be returned, if not, false should be returned. -> repeatExams ('Perform repeat exams') should assign a new grade to all objects in subjects that contain a grade of 5.0 (and only these!). This new grade should again be chosen at random from the possible grade values (see above) with the same probability. o If there is at least a 5.0 among the assigned grades, true should be returned, if not, false should be returned.

-> sortByGrade soll die Subject-Objekte innerhalb des arrays subjects nach ansteigendem Noten-wert sortieren. Hierbei soll das Sortierverfahren 'Direktes Auswhlen (Selection-Sort)' benutzt wer-den. -> sortByDescription soll die Subject-Objekte innerhalb des arrays subjects alphabetisch nach der Beschreibung sortieren. Sie knnen ein Sortierverfahren Ihrer Wahl (auer 'Selection-Sort', s.oben) benutzen. -> averageGrade soll den Durchschnittswert aller in einem Student-Objekt gespeicherten Noten be-rechnen und zurckgeben. -> toString soll Matrikelnummer, die im Student-Objekt enthaltenen Fcher mit den zugehrigen No-ten und den Durchschnittswert der Noten in folgender Formatierung als string zurckgeben:

help me. Task: Your task is to create a grade management program

The application program (main) should test the two classes. To do this, the following actions should take place in sequence (menu control should therefore not be implemented): -> Creation of an array with 30 student objects. -> Assignment of a unique four-digit matriculation number to each of the 30 student objects, execution of the exams and output of all results in the format as specified above (initially no sorting is necessary). In addition, the average value of the 30 average values belonging to the individual students should be calculated and output. -> Sorting according to grade values and output of all results in the format specified above. -> Sorting according to descriptions and output of all results in the format as specified above. -> Afterwards: Carrying out the exams including repeat exams for 30 new students in the following way: Assigning a new unique four-digit matriculation number to each of the 30 student objects, carrying out the exams and carrying out a maximum of two repeat exams for those subjects which were completed with 5.0, then sorting by grades and output of all results in the format as stated above. In addition, the average value of the 30 average values belonging to the individual students should also be calculated and output here.

Student matNr: int subjects: array + Student () + setMatNr (int) : void + take Exams (): bool + repeatExams (): bool + sortByGrade(): void + sortByDescription(): void + averageGrade(): double + toString(): string Subject description: string - grade: double + Subject(string, double) + toString(): string + (Beispiel fr Beginn der Ausgabe bei Sortierung nach Noten) 7000 : MIC:1.0 TGI:1.7 PAD1:1.7 EDM:2.0 ITS: 2.0 WI:2.7 PAD2:4.0 Avg=2.16 7001: ITS:1.0 WI:1.3 PAD2:2.0 PAD1:2.3 TGI:3.7 EDM:3.7 MIC:3.7 Avg=2.53 7002: TGI:1.3 ITS:1.7 PAD2:2.7 MIC:2.7 WI:3.3 PAD1:3.3 EDM:3.3 Avg=2.61 (Beispiel fr Beginn der Ausgabe bei Sortierung nach Beschreibungen) 7000: EDM:2.0 ITS: 2.0 MIC:1.0 PAD1:1.7 PAD2:4.0 TGI:1.7 7001: EDM:3.7 ITS:1.0 MIC:3.7 PAD1:2.3 PAD2:2.0 TGI:3.7 7002: EDM:3.3 ITS:1.7 MIC:2.7 PAD1:3.3 PAD2:2.7 TGI:1.3 WI:2.7 Avg=2.16 WI:1.3 Avg=2.53 WI:3.3 Avg=2.61 Student matNr: int subjects: array + Student () + setMatNr (int) : void + take Exams (): bool + repeatExams (): bool + sortByGrade(): void + sortByDescription(): void + averageGrade(): double + toString(): string Subject description: string - grade: double + Subject(string, double) + toString(): string + (Beispiel fr Beginn der Ausgabe bei Sortierung nach Noten) 7000 : MIC:1.0 TGI:1.7 PAD1:1.7 EDM:2.0 ITS: 2.0 WI:2.7 PAD2:4.0 Avg=2.16 7001: ITS:1.0 WI:1.3 PAD2:2.0 PAD1:2.3 TGI:3.7 EDM:3.7 MIC:3.7 Avg=2.53 7002: TGI:1.3 ITS:1.7 PAD2:2.7 MIC:2.7 WI:3.3 PAD1:3.3 EDM:3.3 Avg=2.61 (Beispiel fr Beginn der Ausgabe bei Sortierung nach Beschreibungen) 7000: EDM:2.0 ITS: 2.0 MIC:1.0 PAD1:1.7 PAD2:4.0 TGI:1.7 7001: EDM:3.7 ITS:1.0 MIC:3.7 PAD1:2.3 PAD2:2.0 TGI:3.7 7002: EDM:3.3 ITS:1.7 MIC:2.7 PAD1:3.3 PAD2:2.7 TGI:1.3 WI:2.7 Avg=2.16 WI:1.3 Avg=2.53 WI:3.3 Avg=2.61

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!