Write a Python program that represent the following scenario: a. 3 students participated in Robotic Competition with 3 robots b. The robots have legs, cameras, and sensors. c. The robots participated one Bipedal, one Tripodal and one Hexapod. d. Saeed programmed the Bipedal, Mariam programmed the Bipedal, and Sam programmed the Hexapod e. Its is up to you to assign how many cameras and sensors (or you can research that) f. Each robot has a purpose in the competition in one of the two fields, health and agriculture (you will assign the task) g. Mariam’s Robot won first prize place, then Sam and finally Saeed. h. Suggested list of classes for this scenario, Person, Robot, Bipedal, Tripodal, Hexapod, and Competition_Field. It is up to you to add any extra class if needed. First draw a UML to represent the given class. Then, create the necessary classes (with their attributes and methods) to represent the problem. Write a separate test module where instances are created, and the methods are tested by giving the required details and print the details for each class.
-
Write a Python program that represent the following scenario:
a. 3 students participated in Robotic Competition with 3 robots
b. The robots have legs, cameras, and sensors.
c. The robots participated one Bipedal, one Tripodal and one Hexapod.
d. Saeed programmed the Bipedal, Mariam programmed the Bipedal, and Sam programmed theHexapod
e. Its is up to you to assign how many cameras and sensors (or you can research that)
f. Each robot has a purpose in the competition in one of the two fields, health and agriculture (you willassign the task)
g. Mariam’s Robot won first prize place, then Sam and finally Saeed.
h. Suggested list of classes for this scenario, Person, Robot, Bipedal, Tripodal, Hexapod, andCompetition_Field. It is up to you to add any extra class if needed.
First draw a UML to represent the given class. Then, create the necessary classes (with their attributes and methods) to represent the problem.
Write a separate test module where instances are created, and the methods are tested by giving the required details and print the details for each class.
Step by step
Solved in 4 steps