Question: PYthon. 1. Insert 10 students IDs(3-digit number) and random scores (0-100) for each student 2. Print the IDs and corresponding Scores in the list 3.

PYthon.

1. Insert 10 students IDs(3-digit number) and random scores (0-100) for each student 2. Print the IDs and corresponding Scores in the list 3. Search a student by ID and check/print his/her score. If the score is not correctly recorded before(compare it with a given score), update it 4. Compute the average score for the class 5. Delete a student from the beginning, middle, and end of the list and print after deletion.

This is what was given:

class Scores220: def __init__(self,ID,Score): self.ID = ID self.Score=Score self.next = None

def getID(self): return self.ID def getSCore(self): return self.Score

def getNext(self): return self.next

def setID(self,newID): self.ID = newID def setScore(self,newScore): self.Score = newScore def setNext(self,newnext): self.next = newnext

def createList(n) #Insert 10 students IDs(3-digit number) and random scores (0-100) for each student

def printItems(): #Print the IDs and corresponding Scores in the list def updateScore(ID,Score): #Search a student by ID and check/print his/her score. If the score is not correctly recorded #before(compare it with a given score), update it def averageScore() #Compute the average score for the class def delScore(ID) #Delete a student from the beginning, middle, and end of the list and print after deletion.

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!