Write a C++ program using class with data members int feet, float inches to represent distance and define function that takes two distance values as arguments and returns the larger one. Include a main program that accepts two distance figures from the user compare them and displays the larger using Inline function. [Hint : ft =in * 0.083333] Sample input/Output Enter Feet :4 Enter Inches : 40 Output Feet value is larger Test Case 1 Input (stdin) 4 40 Expected Output Distance 1 is larger Test Case 2 Input (stdin) 5 60 Expected Output Both are equal

Program :

#include <iostream>
using namespace std;
int main()
  int n;
  if ( n == 4)
    cout<<"Distance 1 is larger";
    cout<<"Both are equal";
 return 0;