Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PYTHON. I am having trouble validating the unique IDs over multiple entries of student records. Description of Data: A student is identified by a name

PYTHON. I am having trouble validating the unique IDs over multiple entries of student records.

image text in transcribed

Description of Data: A student is identified by a name (first name only) and a 7-digit ID number. For each student, there are 4 grades based on 2 tests and 2 assignments. - Each test and assignment is marked on 25 and is worth 25% of the total grade for a total of 100%. - Each grade is entered as an integer or float value. Your program should be able to process the information for any number of students but you can limit your tests to 8 students. Description of Program: Data Table: Your program defines a 2-dimensional list (list of lists). list_of_students = [] which will hold the data for all students. Each list element holds the data for one student. Note that the list is initialized as an empty list and will be filled in by the program. Data Entry: Your program asks the user to enter the information for each student (student record). The program verifies and stores the information in list_of_students. Important: When a student record is entered, your program should calculate the total grade and letter grade and store them (append them) on the student list. The student list is then added to the list_of_students. Here is an example of how the list_of_students should look like after entering the information for 3 students: list_of_students = [["Lea", 1234567, 20, 25, 22, 25, 92, 'A'), ["Bob", 2345678, 22, 25, 21, 18, 86, 'B'), ["Ben", 3456789, 25, 20, 22, 22, 89, 'A']] The list of each student stores the data in the following order: student's name (string), ID (an integer), 2 test scores (out of 25 each) and 2 assignment scores (out of 25 each). All test and assignment scores should be stored as floats. Here are some additional requirements: There may be duplicate names but IDs are unique. The program rejects an incomplete record (missing any of the 6 data items). Just check count. For each student record, create a student_list to hold the data for 1 student When a valid record is entered, calculate total and letter grades and store on the student_list The complete student_list is then added to the list_of_students. |

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

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions

Question

Provide examples of KPIs in Human Capital Management.

Answered: 1 week ago

Question

What are OLAP Cubes?

Answered: 1 week ago