Question: marks) QUESTION 2: (a) Briefly describe the following programming language paradigms: Imperative (ii) Functional (iii) Object oriented (iv) Declarative (4 marks) (b) A robot is

marks) QUESTION 2: (a) Briefly describe the following programming language paradigms: Imperative (ii) Functional (iii) Object oriented (iv) Declarative (4 marks) (b) A robot is used to lift bags of maize onto the conveyor belt in a factory. To lift a bag, the robot uses a camera senser to estimate the length, width, and height of the bag to be lifted. The bulk density of the maize is 550 kg/m.. The dimensions of the bags range as follows: length: 1.2 - 1.4 m, width: 0.4 - 0.6 m and height 0.2 -0.3 m. The robot lifts bags at the rate of 1200 bags per hour and works for 10 hours per shift. It is desired that the total estimated weight lifted at the end of each shift be recorded by the robot. You are required to develop a program that performs this task so that it be embedded into the robot's chip. (i) draw a structure chart for your program (4 marks) (ii) develop a flowchart for your program (6 marks) (6 marks) (iii) convert your flowchart into a Python program. 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
