Question: Use a loop to print a table displaying the twelve records. The table should be formatted as follows: The first row of output should contain

Use a loop to print a table displaying the twelve records. The table should be formatted as follows:
The first row of output should contain column headers.
The second row should be a dividing line consisting of 69 dashes.
The table should have columns for student ID, first name, last name, course id, course name, and grade.
The number of characters reserved for each column should be 9,10,12,11,22, and 5(in that order).
All columns should be left-aligned except for the grade column, which should be right-aligned.
The first few rows rows of the output are shown below. Try to match the format of this output exactly.
SID First Last CID Course Name Grade
---------------------------------------------------------------------
149126 Jason Penopolis ENGL 101 Composition I D
146832 Brendan Small MATH 117 College Algebra C

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!