programs程序 辅导、 写作data课程程序

” programs程序 辅导、 写作data课程程序Lab 10Objectives Practice with designing your own types with classes Practice with creating and using instances of a class (objects)Getting started1. Create a new file called lab10.py and open it in your Wing editor2. Download the Provided starter files: student.py and sample input files provided to the samedirectory as lab10.py3. Add documentation for the methods within student.py where it is missing. (ie. type hints anddocstring with purpose and examples)4. Design the methods Within student.py and functions within lab10.py according tospecifications below.Submission1. Upload student.py and lab10.py files in CourseSpaces before the deadline.GradingMarks will be Awarded for correctness, considering: the function signature matches the description given (has the name and arguments EXACTLY asspecified) the function has the expected behaviour a zero grade Will be given for programs with incorrect filenames a zero grade will be given for programs who have errors or cannot run with Python 3and for quality according to software engineering properties such as: program structureo import statements are at the top of the fileo constants defined after import statements with CAPITAL LETTERSo no test calls are left within the file (it only contains your function definitions) documentationo type hintsprograms作业 辅导、 写作data课程作业o purposeo examples meaningful variable names proper use Of constants use of code constructs (functions, variables, condition statements) too eliminate redundant code and redundant computationo make complex code easier to read testing coverageo you have added an example to cover each boundary case within your programMethod/Function SpecificationsWithin student.py:1. Design a Method to compare equality of Student instances in student.py. When yourimplementation is complete, when an instance of a Student is compared to another Studentusing == it should evaluate to True if the sid values of the two Student instances are the same andFalse otherwise. NOTE: the header must be exact for the overriding to work correctly. See lectureexamples for help.2. Design a method called is_grade_above that takes as arguments a self-reference to the Studentinstance (self) and an additional argument as a threshold grade. The method should determinewhether the grade of self is above the given threshold grade.Within lab10.py:1. Add the necessary Imports to your file for testing, type hints and for you student class2. Design a function called get_students that takes a name of a file and creates and returns a newlist of Students from data in filename where each line of file has a student id and grade separated bya comma. If the file does not exist or the file is empty the function should return an empty list.3. Design a function called get_classlist that takes a list of Student instances and creates andreturns a new list of Just the student ids of all Student instances in the list.4. Design a function called count_above that takes a list of Student instances and an additionalargument as a threshold Grade. The function should return a count of the number of Studentinstances in the list that Have a grade above the given threshold grade.5. Design a function called get_average_grade that takes a list of Student instances and anadditional argument as a threshold grade. The function should calculate and return the average gradeof all Student instances in the list as a floating point number. Your function should assume that thelist is not empty.如有需要,请加QQ:99515681 或邮箱:99515681@qq.com

添加老师微信回复‘’官网 辅导‘’获取专业老师帮助,或点击联系老师1对1在线指导