Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python coding problem. Please help me solve and Please explain the steps of how everything works so that I can understand. Thanks. Instructions student.py 1

Python coding problem. Please help me solve and Please explain the steps of how everything works so that I can understand. Thanks.

image text in transcribed

Instructions student.py 1 # Write your code below: A simple course management system models a student's information with a name and a set of test scores. This system should be able to create a student object with a given name and a number of scores, all of which will be 0 at startup. The system should be able to access or replace a score at the given position (counting from 0): def main(numScores = 3): **"Tests sorting.*** # Create the list and put 5 students into it students = list) names = ("Juan", "Bill", "Stacy", "Maria", "Charley") for name in names: s = Student(name, numScores) for index in range (numScores): S.setScore(index, randint(70, 100)) students.append(s) # Print the contents print("The list of students:") for sin students: print(s) 1. obtain the number of scores - getNumberOfScores) 2. obtain the highest score - getHighScore() 3. obtain the average score - getAverage() 4. obtain the student's name - getName() In addition, the student object when printed should show the student's name and scores as in the following example: if __name__ == "_main_": main Name: Ken Lambert Score 1: 88 Score 2: 77 Score 3: 100 Define a Student class that supports these features and behavior. A main() has been provided for you in order to test the implementation of your student class. Grading Write your Python code in the code editor. Use the Run button to execute and run the code. To review your progress, open up the "Tasks" panel on the left to view the curated list of tasks for the project. Once you are happy with the test results, click Submit and then the Confirm button to submit your project for grading

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 Design Using Entity Relationship Diagrams

Authors: Sikha Saha Bagui, Richard Walsh Earp

3rd Edition

103201718X, 978-1032017181

Students also viewed these Databases questions

Question

Distinguish between hearing and listening.

Answered: 1 week ago

Question

Use your voice effectively.

Answered: 1 week ago