Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Q7 - Classes II: (2.5 points) the next cell define a class that meets the following specifications: - has one class attribute: a string stores
Q7 - Classes II: (2.5 points) the next cell define a class that meets the following specifications: - has one class attribute: a string stores 'Stores attendence records for a course on a given date' - has the following methods - has two arguments passed to the initializer in this exact order; sets them as instance attributes - course : a string - date : a datetime.date object (you will need to import this before defining the class) - creates and initialises one more instance attribute: = - takes a string as argument - adds to the attendance_list - calculate_attendance( ) - returns how many students are in the - prints the contents of one name on each line - Note: please use good coding style (doesn't have to be perfect, but it has to be pretty decent) If a method does not have a specified external argument or return value you can assume it does not need it
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started