Question: (a) Define the following terms used in Object Oriented Programming (OOP) with Python: (Class (i) Object (iii) Message (iv) Inheritance (4 marks) (b) A robot
(a) Define the following terms used in Object Oriented Programming (OOP) with Python: (Class (i) Object (iii) Message (iv) Inheritance (4 marks) (b) A robot currently has the ability to sense the width and length of a pieces of wood. As a way of improving its abilities, the robot is now required to also calculate the average width and length of any number of pieces of wood in a workshop. You are required to develop a program that performs this task so that it be embedded into the robot's chip. Assume 500 pieces of wood. (1) draw a structure chart for your program (4 marks) (II) develop a flowchart for your program (6 marks) (iii) convert your flowchart into a Python program. Use random () from the random module to simulate the sensing of width and length by the robot. (6 marks)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
