0 9

BIT153 ยท 0 ยท 5 marks

Write a program to convert floating point value to object of distance class with data members feet and inch.

Write a program to convert floating point value to object of distance class with data members feet and inch. [5]

Object Oriented ProgrammingChapter 7: Operator Overloading and Type ConversionType conversion

This problem uses a conversion constructor (or single-argument constructor) to convert a floating point value (representing total inches) into a Distance object with feet and inches data members. Note: Reference notes were not available for this topic; the answer is based on standard C++ type con...