Create a class Distance containing Feet and Inches as data members. Write a C++ program to read distance from user, store it in the file and to read it from the file and display it to the user. Use operator overloading for the following: 1. << to write distance object in inches format to a file 2. >> to read inches from File.
#include<iostream.h> #include<fstream.h> #include<conio.h>…