Dear CG Forum,

I need help with a very important program. God bless any one who can help me out. Here is the question:

Write a program that accepts Distance measured in feet and inches from the user. The program can add two distances and display the result in feet and inches. The initial distance is set in the beginning of the program, which is modified according to the input of the user.

The following points have to be implemented:

1) Constructor Overloading.
2) Member Functions should be defined Outside the class.
3) Objects passed as Function Parameters.
4) Depicts the two ways by which the Data Variables or items of an object can be assigned values.