(Solved) : 1 2 Writing Pretty Printer Program Prints Student Transcripts Students Enrolled Degree Stu Q30546152 . . .
C++ program
![1-2 You are writing a pretty printer program that prints out student transcripts for all students enrolled in a degree. The students and their grades are encoded in a multi-dimensional array called report_card in which each row represents a student, and each column represents a course. All course names are encoded in a courses array, with the understanding that column Y in the report card is element Y in the courses array. In a similar manner, all student names are encoded in a students array and the student name at index X corresponds to row X in the report card. Your pretty_printer program should define and initialize these three arrays and print them to stdout using a function. void print-class(string courses[4] , string students report-card?[4],int ns Signature : tudents) ,int There are 4 courses but any number of students. The first line of output must start with Report Card and be followed by the course names. Each of the 5 columns must be separated by a space and the last column is followed by a newline (std:endl). For each student there is a line of output with the students name in the first column followed by each of their 4 marks. Example output (note Quantum Mechanics is one course in this example): 1 Report Card 00P Statics Electronics Quantum Mechanics 2 Joe 100 70 50 25 3 Bethany 100 100 75 50 1-2*](https://media.cheggcdn.com/media%2F945%2F94586af7-d6ce-4c64-9028-5467d023ded3%2FphpjuYNjd.png)
1-2 You are writing a “pretty printer” program that prints out student transcripts for all students enrolled in a degree. The students and their grades are encoded in a multi-dimensional array called “report_card” in which each row represents a student, and each column represents a course. All course names are encoded in a “courses” array, with the understanding that column Y in the “report card” is element Y in the “courses” array. In a similar manner, all student names are encoded in a “students” array and the student name at index X corresponds to row X in the “report card”. Your “pretty_printer” program should define and initialize these three arrays and print them to stdout using a function. void print-class(string courses[4] , string students report-card?[4],int ns Signature : tudents) ,int There are 4 courses but any number of students. The first line of output must start with “Report Card” and be followed by the course names. Each of the 5 columns must be separated by a space and the last column is followed by a newline (std:endl). For each student there is a line of output with the student’s name in the first column followed by each of their 4 marks. Example output (note “Quantum Mechanics” is one course in this example): 1 Report Card 00P Statics Electronics Quantum Mechanics 2 Joe 100 70 50 25 3 Bethany 100 100 75 50 1-2* Show transcribed image text
Expert Answer
Answer to 1 2 Writing Pretty Printer Program Prints Student Transcripts Students Enrolled Degree Stu Q30546152 . . .
OR