Question: Consider the following table, which represents a database of ( fictional ) student information. First Last Major Credits GPA Anna Anderson Mathematics 1 1 0
Consider the following table, which represents a database of fictional student information.
First Last Major Credits GPA
Anna Anderson Mathematics
Beatrice Brown Data Science
Charles Clark Biology
David Daniels Chemistry
Emma Edwards Computer Science
In this problem, you will be asked to create parallel lists to store the contents of the columns in the table above. You will
then use these lists to print a version of this table.
Create lists named first, last, major, credits, and gpa to store the contents of each of the columns in the table
above. Each list should represent the column for which it is named, and the order of elements in the list should be in
descending order by row. The lists fist, last, and major should contain string values, credit should contain
integers, and gpa should contain floats.
Use a loop to print the contents of the lists in the format shown below. Match the format exactly, including the following
the alignment of the columns and the spacing between columns. To assist with the alignment, note that the dashed line
contains dashes.
First Last Major Credits GPA
Anna Anderson Mathematics
Beatrice Brown Data Science
Charles Clark Biology
David Daniels Chemistry
Emma Edwards Computer Science
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
