Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

C++ program

image text in transcribed

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*

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database Technology

Authors: Suad Alagic

1st Edition

354096276X, 978-3540962762

More Books

Students also viewed these Databases questions