Question: The students dictionary is a lookup table that allows you to obtain the name of a student based on their Student ID number. The courses

The students dictionary is a lookup table that allows you to obtain the name of a student based on their Student ID
number. The courses dictionary is a lookup table that allows you to obtain the name of a course based on the Course ID
(which consists of a department name and course number). The lists sid, cid, and grade are parallel lists that represent
columns from a grade database. The sid list contains student ID numbers associated with 12 different records form the
database, the cid list contains course ID information for the 12 records, and the grade list contains the grade obtained by
the corresponding student in the corresponding course.
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

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!