Question: QUESTION 3: (a) Define the following terms used in Object Oriented Programming (OOP) with Python: (i) Class (ii) Object (iii) Message (iv) Inheritance (4 marks)

 QUESTION 3: (a) Define the following terms used in Object Oriented

QUESTION 3: (a) Define the following terms used in Object Oriented Programming (OOP) with Python: (i) Class (ii) Object (iii) Message (iv) Inheritance (4 marks) (b) It is required in a certain air condition that the perfect gas law be solved. The perfect gas law for air is expressed as: pv= 286 T where p is the pressure, v is the specific volume and T is the temperature at any given state. (i) Define Python functions that implement the above formula. A specific function should return the value of one of the parameters in the given law taking the other parameters as as argurments (6 marks) (ii) Write a test Python program that uses the functions above to determine a desired parameter. Allow the user to select the term to determine as desired. The user should be able to continuously determine the terms of interest within a loop and exit the program when desired. (10 marks)

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!