Question: in python all information given needed to solve the problem OOP: For this part, we will be modeling some objects. We will model a class,

 in python all information given needed to solve the problem OOP:

For this part, we will be modeling some objects. We will model

a class, consisting of a teacher, students, and assignments. We will generate

and enroll some students. Then we will generate some assignments. For each

assignment, we calculate the student's grade, pay the teacher, and assign them

the grade. Here is an example test run (from the file test.py)

in python

all information given needed to solve the problem

OOP: For this part, we will be modeling some objects. We will model a class, consisting of a teacher, students, and assignments. We will generate and enroll some students. Then we will generate some assignments. For each assignment, we calculate the student's grade, pay the teacher, and assign them the grade. Here is an example test run (from the file test.py) t = Teacher('Joe') C = Class(t) c.register(Student('Jack', 50)) c.register(Student('Jill', 60)) c.register(Student('Jane', 75)) c.assign(Assignment(50)) c.assign(Assignment(75)) c.assign(Assignment(80)) c.assign(Assignment(90)) When we finish the class, we display the average, and the teacher's pay: c.finish Class Average : 75.732901 Teacher pay: 885.000000 Finally, we can plot the data from our course. The three plots are grades by assignment, grades by student, and assignment difficulty. c.ploto Grades by assignment o Jack Grade Lee OOO OO Jane av Grades by Student T Grade -000 Jack Jane 100 Assignment Difficulty Difficulty from engi1906_simulator...teacher, import Teacher from engi1006_5.imulator.course import Course from engi1906_simulator, student import Student from engi1906.5.imulator..assignment import Assignment def main(): # instantiate a teacher t = Teacher('Joe') # instantiate a class C = Course(t) # register three student objects c. register(Student('Jack', 50)) c. register(Student('Jill', 60)) c. register(Student('Jane', 75)) # assign 4 assignment objects c.assign(Assignment(50)) c.assign(Assignment (75)) c.assign(Assignment (80)) c.assign(Assignment(90)) # summarize the class c. finish() # expected output (average may vary) # Class Average : 74.083894 # Teacher pay: 885.000000 # plot the three charts c.plot() if __name__ == '_main__': main() Hello! With this First, what would you like to name the Professor: Tim Course created! Course Overview: Professor: Tim Number of Students: 0 Number of Assignments: 0 Would you like to register students? (y)y Generating a new student... What would you like to name the new student: Joe Registered new student: Joe Course Overview: Professor: Tim Number of Students: 1 Joe Number of Assignments: 0 Would you like to register students? (y)y Generating a new student... What would you like to name the new student: Jill Registered new student: Jill Course Overview: Professor: Tim Number of Students: 2 Joe, Jill Number of Assignments: 0 Would you like to register students? (y)y Generating a new student... What would you like to name the new student: Jane Registered new student: Jane Course Overview: Professor: Tim Number of Students: 3 Joe, Jill, Jane Number of Assignments: @ Would you like to register students? (y)n Would you like to create assignments? (y)y Generating a new assignment... How difficult would you like the new assignment to be? (0-100):50 Assigned new assignment: Assignment Difficulty: 50 Student Count :3 Course Overview: Professor: Tim Number of Students: 3 Joe, Jill, Jane Number of Assignments: 1 58 Average grade: 73.47422070419016 Would you like to create assignments? [y)y Generating a new assignment... How difficult would you like the new assignment to be? (0-100): 75 Assigned new assignment: Assignment Difficulty: 75 Student Count :3 Course Overview: Professor: Tim Would you like to register students? (y)n Would you like to create assignments? (y)y Generating a new assignment... How difficult would you like the new assignment to be? (0-100):50 Assigned new assignment: Assignment Difficulty: 50 Student Count :3 Course Overview: Professor: Tim Number of Students: 3 Joe, Jill, Jane Number of Assignments: 1 50 Average grade: 73.47422070419016 Would you like to create assignments? (y)y Generating a new assignment... How difficult would you like the new assignment to be? (0-100): 75 Assigned new assignment: Assignment Difficulty: 75 Student Count :3 Course Overview: Professor: Tim Number of Students: 3 Joe, Jill, Jane Number of Assignments: 2 50,75 Average grade: 73.6829930418653 Would you like to create assignments? (y)y Generating a new assignment... How difficult would you like the new assignment to be? (0-100): 1 Assigned new assignment: Assignment Difficulty: 100 Student Count:3 Course Overview: Professor: Tim Number of Students: 3 Joe, Jill, Jane Number of Assignments: 3 50, 75, 100 Average grade: 73.56458079489987 Would you like to create assignments? (y)n Finishing the course... Class Average: 73.56458079489987 Teacher pay: 675 Course Overview: Professor: Tim Number of Students: 3 Joe, Jill, Jane Number of Assignments: 3 50, 75, 100 Average grade: 73.56458079489987 Plot? (yy Grades by assignment Joe Grade Jane o Grades by Student o Grade Joe Jane Assignment Difficulty Difficulty 0 OOP: For this part, we will be modeling some objects. We will model a class, consisting of a teacher, students, and assignments. We will generate and enroll some students. Then we will generate some assignments. For each assignment, we calculate the student's grade, pay the teacher, and assign them the grade. Here is an example test run (from the file test.py) t = Teacher('Joe') C = Class(t) c.register(Student('Jack', 50)) c.register(Student('Jill', 60)) c.register(Student('Jane', 75)) c.assign(Assignment(50)) c.assign(Assignment(75)) c.assign(Assignment(80)) c.assign(Assignment(90)) When we finish the class, we display the average, and the teacher's pay: c.finish Class Average : 75.732901 Teacher pay: 885.000000 Finally, we can plot the data from our course. The three plots are grades by assignment, grades by student, and assignment difficulty. c.ploto Grades by assignment o Jack Grade Lee OOO OO Jane av Grades by Student T Grade -000 Jack Jane 100 Assignment Difficulty Difficulty from engi1906_simulator...teacher, import Teacher from engi1006_5.imulator.course import Course from engi1906_simulator, student import Student from engi1906.5.imulator..assignment import Assignment def main(): # instantiate a teacher t = Teacher('Joe') # instantiate a class C = Course(t) # register three student objects c. register(Student('Jack', 50)) c. register(Student('Jill', 60)) c. register(Student('Jane', 75)) # assign 4 assignment objects c.assign(Assignment(50)) c.assign(Assignment (75)) c.assign(Assignment (80)) c.assign(Assignment(90)) # summarize the class c. finish() # expected output (average may vary) # Class Average : 74.083894 # Teacher pay: 885.000000 # plot the three charts c.plot() if __name__ == '_main__': main() Hello! With this First, what would you like to name the Professor: Tim Course created! Course Overview: Professor: Tim Number of Students: 0 Number of Assignments: 0 Would you like to register students? (y)y Generating a new student... What would you like to name the new student: Joe Registered new student: Joe Course Overview: Professor: Tim Number of Students: 1 Joe Number of Assignments: 0 Would you like to register students? (y)y Generating a new student... What would you like to name the new student: Jill Registered new student: Jill Course Overview: Professor: Tim Number of Students: 2 Joe, Jill Number of Assignments: 0 Would you like to register students? (y)y Generating a new student... What would you like to name the new student: Jane Registered new student: Jane Course Overview: Professor: Tim Number of Students: 3 Joe, Jill, Jane Number of Assignments: @ Would you like to register students? (y)n Would you like to create assignments? (y)y Generating a new assignment... How difficult would you like the new assignment to be? (0-100):50 Assigned new assignment: Assignment Difficulty: 50 Student Count :3 Course Overview: Professor: Tim Number of Students: 3 Joe, Jill, Jane Number of Assignments: 1 58 Average grade: 73.47422070419016 Would you like to create assignments? [y)y Generating a new assignment... How difficult would you like the new assignment to be? (0-100): 75 Assigned new assignment: Assignment Difficulty: 75 Student Count :3 Course Overview: Professor: Tim Would you like to register students? (y)n Would you like to create assignments? (y)y Generating a new assignment... How difficult would you like the new assignment to be? (0-100):50 Assigned new assignment: Assignment Difficulty: 50 Student Count :3 Course Overview: Professor: Tim Number of Students: 3 Joe, Jill, Jane Number of Assignments: 1 50 Average grade: 73.47422070419016 Would you like to create assignments? (y)y Generating a new assignment... How difficult would you like the new assignment to be? (0-100): 75 Assigned new assignment: Assignment Difficulty: 75 Student Count :3 Course Overview: Professor: Tim Number of Students: 3 Joe, Jill, Jane Number of Assignments: 2 50,75 Average grade: 73.6829930418653 Would you like to create assignments? (y)y Generating a new assignment... How difficult would you like the new assignment to be? (0-100): 1 Assigned new assignment: Assignment Difficulty: 100 Student Count:3 Course Overview: Professor: Tim Number of Students: 3 Joe, Jill, Jane Number of Assignments: 3 50, 75, 100 Average grade: 73.56458079489987 Would you like to create assignments? (y)n Finishing the course... Class Average: 73.56458079489987 Teacher pay: 675 Course Overview: Professor: Tim Number of Students: 3 Joe, Jill, Jane Number of Assignments: 3 50, 75, 100 Average grade: 73.56458079489987 Plot? (yy Grades by assignment Joe Grade Jane o Grades by Student o Grade Joe Jane Assignment Difficulty Difficulty 0

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 Accounting Questions!