C++ is known to be an object-oriented program. Objects are also known to exist in real life. You have been invited as a computer science student to distinguish between real life objects and object found in object oriented program OOP
a. C++ is known to be an object-oriented
to exist in real life. You have been invited as a computer science student
to distinguish between real life objects and object found in object oriented
program OOP
b. Write an OOP to compare the risk factor that will lead to high payment of
life insurance premium. The variables to consider are: age, weight, and
height
4
1. The program should request for the variables to be inputted from the
keyboard.
2. Premium should be high if age is greater than or equal to 60 years and
weight is greater than or equal 80kg and has greater than or equal 6.8
feet. Otherwise the premium should be low
3. Critically explain how the program could be adopted by allied
companies for their operations.
Total:
Step by step
Solved in 2 steps