python代写 python作业代写 python程序代写 代写python程序

python homework代写 代写python homework

Homework 4

Due: Sunday, April 12, 2020, 11:55pm

Guidelines:

All homeworks will be submitted via Courseworks. For a given assignment, all files should be put in a folder called uni-hw4, all lowercase, which is then zipped and submitted on courseworks. The folder should contain a single readme.txt which has your name, uni, the homework number, and a brief summary of your work for each part (if necessary).

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))

We can also run an interactive version utilizing the same code (%run -m engi1006_simulator)

Hello! Welcome to the ENGI1006 class modeler.

With this program we will simulate the ENGI1006 course at Columbia University 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/n)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/n)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: 2

Joe,Jane

Number of Assignments: 0

Would you like to register students? (y/n)y Generating a new student...

What would you like to name the new student: Brian Registered new student: Brian

Course Overview:

Professor: Tim Number of Students: 3

Joe,Jane,Brian Number of Assignments: 0

Would you like to register students? (y/n)n

Would you like to create assignments? (y/n)y

Generating a new assignment...

How difficult would you like the new assignment to be? (0-100):50

Assigned new assignment: Student Count:3

Course Overview: Professor: Tim

Number of Students: 3 Joe,Jane,Brian

Assignment Difficulty: 50

Number of Assignments: 1 50

Average grade: 68.20083541884999

Would you like to create assignments? (y/n)y

Generating a new assignment...

How difficult would you like the new assignment to be? (0-100):75

Assigned new assignment: Student Count:3

Course Overview: Professor: Tim

Number of Students: 3 Joe,Jane,Brian

Assignment Difficulty: 75

Number of Assignments: 2 50,75

Average grade: 68.72536959414673

Would you like to create assignments? (y/n)n Finishing the course...

Class Average: 68.72536959414673

Teacher pay: 375

Course Overview:

Professor: Tim Number of Students: 3

Joe,Jane,Brian Number of Assignments: 2

50,75

Average grade: 68.72536959414673

Plot? (y/n)y


Some skeleton code will be provided. It is missing a number of methods, which you will need to implement to get this library working. This assignment is mostly an exercise in getting comfortable with an object-oriented codebase, and reading and interpreting error messages to fill in the missing details.

京ICP备2025144562号-1
微信
程序代写,编程代写
使用微信扫一扫关注
在线客服
欢迎在线资讯
联系时间: 全天