Question: I alway rate my answers Using python 3: Class with Private Attribute Collection of Objects: modRoom.py Create a class called Room as indicated by the

I alway rate my answers

Using python 3:

Class with Private Attribute Collection of Objects: modRoom.py Create a class called Room as indicated by the UML shown below: Student -length: integer -width: integer -height integer -roomNum: integer -roomType: String -room Capacity: integer > Room (tmpRoomNum:integer, tmpRoomType: String, tmpCapacity:integer, tmplength: integer, tmpWidth: integer, tmpHeight: integer) +get Length(): Integer +getWidth(): Integer +getHeight(): Integer +get RoomNum(): Integer +getRoom Type(): String +getRoomCapacity(): Integer +setRoomType(): String +setRoomCapacity(): Integer +calcArea(): Integer +calcSurfaceArea(): Integer +str():String--should return a string containing roomNum, roomCapacity, roomArea Create a testRoomModule.py file that THOROUGHLY tests your Student class. Make sure to LABEL the output so that it's easy to see what is being tested! Create another class called RoomRoster as shown by the UML below, and save it into the same modstudent.py file as the Student class: Room Roster -roomCollection: list of room Objects > Room Roster() +addRoom (roomObj):void +delRoom (roomObj): integer returns +1 if successful, -1 if unsuccessful +str(): String +findRoom (roomNum): Room Object or -1 if not there +findRoomsWithCapacity (tmpCapacity: integer): List of Room Objects (-1 if none) Add code to the testRoomModule.py to THOROUGHLY test the RoomRoster class. Make sure to LABEL the output so that it's easy to see what is being tested! Class with Private Attribute Collection of Objects: modRoom.py Create a class called Room as indicated by the UML shown below: Student -length: integer -width: integer -height integer -roomNum: integer -roomType: String -room Capacity: integer > Room (tmpRoomNum:integer, tmpRoomType: String, tmpCapacity:integer, tmplength: integer, tmpWidth: integer, tmpHeight: integer) +get Length(): Integer +getWidth(): Integer +getHeight(): Integer +get RoomNum(): Integer +getRoom Type(): String +getRoomCapacity(): Integer +setRoomType(): String +setRoomCapacity(): Integer +calcArea(): Integer +calcSurfaceArea(): Integer +str():String--should return a string containing roomNum, roomCapacity, roomArea Create a testRoomModule.py file that THOROUGHLY tests your Student class. Make sure to LABEL the output so that it's easy to see what is being tested! Create another class called RoomRoster as shown by the UML below, and save it into the same modstudent.py file as the Student class: Room Roster -roomCollection: list of room Objects > Room Roster() +addRoom (roomObj):void +delRoom (roomObj): integer returns +1 if successful, -1 if unsuccessful +str(): String +findRoom (roomNum): Room Object or -1 if not there +findRoomsWithCapacity (tmpCapacity: integer): List of Room Objects (-1 if none) Add code to the testRoomModule.py to THOROUGHLY test the RoomRoster class. Make sure to LABEL the output so that it's easy to see what is being tested

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