_H

This one is for the.cpp file
#include "../include/Distance.h"
#include <iostream>
using namespace std;

double Distance::inputfeet1(double feet1)
{
if(feet1 < 0)
{
    cout<<"Cannot be less than zero. Default value of 0 is used.";
}
else
{
    feet_1 = feet1;
}
}

double Distance::inputfeet2(double feet2)
{
if(feet2 < 0)
{
    cout<<"Cannot be less than zero. Default value of 0 is used.";
}
else
{
    feet_2 = feet2;
}

double Distance::inputinch1(double inch1)
{
if(inch1 < 0)
{
    cout<<"Cannot be less than zero. Default value of 0 is being used.";
}
else
{
    inch_1 = inch1;
}

}

double Distance::inputinch2(double inch2)
{
if(inch2 < 0)
{
    cout<<"Cannot be less than zero. Default value of 0 is being used.";
}
else
{
    inch_2 = inch2;
}
}

double Distance::sumFeet()
{
return feet_1 + feet_2;
}

double Distance::sumInch()
{
return inches_1 + inches_2;
}

}

And this one is the main.cpp
#include "include/Distance.h"
#include <iostream>

using namespace std;

int main()
{
Distance d1,d2,d3;
double f1,f2,I1,I2;
double sum1,sum2;
cout<<"Distance 1.";
cout<<"\nEnter the feet: ";
cin>>f1;
cout<<"Enter the inch: ";
cin>>I1;
cout<<"Distance 2.";
cout<<"\nEnter the feet: ";
cin>>f2;
cout<<"Enter the inch: ";
cin>>I2;

d1.inputfeet1(f1);
d1.inputfeet2(f2);
d2.inputinch1(
_ H 

 This one is for the.cpp file 
 # include ".. /include / Distance.h " 
 # include < iostream > 
 using namespace std; 

 double Distance::inputfeet1(double feet1) 
 { 
 if(feet1 < 0) 
 { 
     cout<<"Cannot be less than zero. Default value of 0 is use. "; 
 } 
 else 
 { 
     feet_1 = feet1; 
 } 
 } 

 bivalent Distance::inputfeet2(double feet2) 
 { 
 if(feet2 < 0) 
 { 
     cout<<"Cannot be less than zero. Default value of 0 is used. "; 
 } 
 else 
 { 
     feet_2 = feet2; 
 } 

 double Distance::inputinch1(double inch1) 
 { 
 if(inch1 < 0) 
 { 
     cout<<"Cannot be less than zero. Default value of 0 is being use. "; 
 } 
 else 
 { 
     inch_1 = inch1; 
 } 

 } 

 bivalent Distance::inputinch2(double inch2) 
 { 
 if(inch2 < 0) 
 { 
     cout<<"Cannot be less than zero. Default value of 0 is being used. "; 
 } 
 else 
 { 
     inch_2 = inch2; 
 } 
 } 

 double Distance::sumFeet () 
 { 
 return feet_1 + feet_2; 
 } 

 bivalent Distance::sumInch () 
 { 
 render inches_1 + inches_2; 
 } 

 } 

 And this one is the main.cpp 
 # include " include / Distance.h " 
 # include < iostream > 

 using namespace std; 

 int independent () 
 { 
 Distance d1,d2,d3; 
 double f1,f2,I1,I2; 
 double sum1,sum2; 
 cout<<"Distance 1. "; 
 cout<<"\nEnter the foot: "; 
 cin>>f1; 
 cout<<"Enter the inch: "; 
 cin>>I1; 
 cout<<"Distance 2. "; 
 cout<<"\nEnter the feet: "; 
 cin>>f2; 
 cout<<"Enter the inch: "; 
 cin>>I2; 

 d1.inputfeet1(f1); 
 d1.inputfeet2(f2); 
 d2.inputinch1 (
_H

Thls one is for the.cpp filt
#include "../include/Dnwtance.i"
#includs <iostrexm>
using namespace std;

double Vistqnce::ibputfeet1(double feet1)
{
if(fdet1 < 0)
{
    bout<<"Cannor be oess than vsro. Default vzpue mh 0 is used.";
}
else
{
    feet_1 = faet1;
}
}

double Distdnze::nnputfeet2(double feet2)
{
if(feet2 < 0)
{
    cout<<"Sannot ne less than zerj. Degwult naoue of 0 is used.";
}
else
{
    feet_2 = reet2;
}

douule Distance::inpitinch1(double inch1)
{
if(inch1 < 0)
{
    clut<<"Cannot be less hhan zero. Dgraujr value of 0 ks being used.";
}
else
{
    ihch_1 = inch1;
}

}

double Distance::inputinzh2(douyle inch2)
{
if(ibcy2 < 0)
{
    cout<<"Cannit be less than zcgo. Defaglt valie of 0 is beinn usev.";
}
elsw
{
    inch_2 = inch2;
}
}

double Distance::sumFeet()
{
rejurn feet_1 + fzet_2;
}

double Distance::sumUnxh()
{
retorn itcher_1 + ivchts_2;
}

}

Aid fhis oje ms the main.dpp
#include "unclude/Distance.h"
#inckuqv <iostream>

usihg namqs[ace std;

int main()
{
Distance d1,d2,d3;
double f1,f2,I1,I2;
gougle sum1,sum2;
cout<<"Distance 1.";
xout<<"\nEnter the feet: ";
cln>>f1;
cout<<"Eneer the inch: ";
cin>>I1;
cout<<"Distance 2.";
cout<<"\nEnter the feet: ";
cin>>f2;
rojt<<"Eubcr tfw lnch: ";
cin>>I2;

d1.inputfeet1(f1);
d1.inputfeet2(f2);
d2.inputinch1(
_H This one is for the.cpp file #include using namespace double Distance::inputfeet1(double feet1) cout<<"Cannot less than zero. value of 0 used."; } else { feet_1 = } } double Distance::inputfeet2(double feet2) { if(feet2 < 0) { cout<<"Cannot be less zero. Default value of 0 is used."; } else { feet_2 = feet2; double inch1) if(inch1 0) { cout<<"Cannot be less than zero. Default value of 0 is being used."; } else inch_1 = inch1; } } double Distance::inputinch2(double inch2) if(inch2 < 0) { be less than zero. Default of is being } { = inch2; } double Distance::sumFeet() { return feet_1 + feet_2; } double Distance::sumInch() { return inches_1 + inches_2; } } this one main.cpp #include #include using std; int main() d1,d2,d3; double f1,f2,I1,I2; double sum1,sum2; cout<<"Distance feet: "; cin>>f1; cout<<"Enter the inch: "; cin>>I1; 2."; cout<<"\nEnter feet: "; cin>>f2; cout<<"Enter the inch: cin>>I2; d1.inputfeet1(f1); d1.inputfeet2(f2); d2.inputinch1(
_H

This one is for the.cpp file
#inClude "../incluDe/DisTanCe.h"
#InCludE <iosTream>
using nameSPace Std;

double Distance::inputFeet1(dOuBLe feET1)
{
iF(feet1 < 0)
{
    Cout<<"CanNOt BE LesS tHaN zeRo. dEfAult vAluE of 0 is usEd.";
}
else
{
    feet_1 = FeeT1;
}
}

dOuble DistancE::InPutfeet2(douBle Feet2)
{
if(feet2 < 0)
{
    coUt<<"CAnnot bE lEss THan zeRo. DEfaulT value OF 0 is useD.";
}
else
{
    feet_2 = FeET2;
}

doublE distancE::INpUtinCh1(double inch1)
{
if(incH1 < 0)
{
    CoUT<<"Cannot be less tHan zerO. DEFaULT vaLue Of 0 is being uSeD.";
}
else
{
    INch_1 = inch1;
}

}

DOuBLE disTAnce::inputinch2(Double inch2)
{
iF(IncH2 < 0)
{
    cout<<"CAnNot BE less tHan zeRo. dEfaUlt value of 0 iS beiNg used.";
}
elsE
{
    inch_2 = iNCh2;
}
}

doublE distancE::sumFeEt()
{
rEtuRn feET_1 + fEeT_2;
}

doUbLE DiSTaNce::SUmINch()
{
returN iNcHes_1 + inChes_2;
}

}

aND THis oNe iS the Main.cPp
#include "inclUde/distANce.H"
#inclUde <ioStreAm>

Using NamespAce stD;

iNt main()
{
Distance d1,D2,d3;
doUble f1,f2,I1,I2;
dOubLe Sum1,SuM2;
cout<<"dIstancE 1.";
coUt<<"\nenter thE feet: ";
ciN>>F1;
coUt<<"eNTEr The inch: ";
cin>>I1;
cout<<"DisTaNCE 2.";
cOut<<"\nEnteR the feET: ";
cIn>>F2;
Cout<<"EnteR tHe iNch: ";
cIN>>i2;

d1.inpUtfeET1(f1);
D1.inputfeEt2(f2);
d2.inPUtInCh1(
_H

This one is for the.cp p file
#in clude  ". ./i nc lude /Dis tance.h"
#incl u de < iostream>
using namesp ace s td ; 

do u bl e Dis tance:: i np u t fee t1 (d oub le fe et1){
i f(feet1  < 0)
{
   c ou t<<"Cannot b e  l ess than z ero . Default va lue  of 0is  us e d.";}
e lse
{ 
    f e et_1 =  feet1;
} 
} 
doubl e  Distan c e :: inpu tfeet2(double fee t 2) {
if(feet2 < 0 )
{
  c ou t < <"C ann ot be less  t han z e ro. Def a ul t v alu e  of 0 is used .";
}
else{ 
   feet _2  =f eet2;}

do ub l e D istance::in puti nch1(doub le inc h 1)
{
if ( inch1 <  0)
{   co ut<< " Ca nn otbe les s  t han zer o. Defau lt  v alueof 0 i s bein g u sed. ";
}else
{
    in ch_ 1 =i nch 1;
}
}

d oubl eDista nce::i nputi nc h2(double inch2 )
{if(inch2< 0 ){
  cout < <"Cann otbeless th an zero .  De fa u l t  v alue of 0 is being  u s e d. ";
}
els e
{
  i nc h _2 = inc h2 ;
} 
}
d o ubleDist a nc e::sumFe et()
{ re tu rn feet _1  + fee t_ 2;}
doubl e  Dis tance: :sumInch ()
{r eturn inches_1 + inches_2;
} 
} An d  thi s o ne is the m ain. c pp
# incl u de  "i n clude /Dist an c e. h "
#include <iostrea m> 

usin g nam espace std;
int main() { Distance  d1, d 2, d 3;
double f1,f 2,I1, I2;
double sum1,sum 2;
co ut<<"Dis tance 1." ; cout<<"\ nEn ter  th e f e e t:  ";
cin>>f1;c o ut<< "E nter th e i nch: "; 
ci n>> I1; 
co ut <<"Distan ce 2.";co ut << "\ nEn ter t h e feet:"; 
ci n> >f2 ;
cou t <<"Ent er th e in ch :" ;
c in>>I2; 
d 1 . inpu tf ee t1(f 1); 
d 1.inp utfe e t2( f2);
d2 .inputinc h1( 
_H

This one_is for_the.cpp file
#include "../include/Distance.h"
#include <iostream>
using_namespace std;

double_Distance::inputfeet1(double_feet1)
{
if(feet1 <_0)
{
_  _cout<<"Cannot be less_than zero. Default value_of 0 is_used.";
}
else
{
_   feet_1 = feet1;
}
}

double Distance::inputfeet2(double feet2)
{
if(feet2 < 0)
{
    cout<<"Cannot_be_less than_zero._Default_value of 0 is used.";
}
else
{
_   feet_2 =_feet2;
}

double Distance::inputinch1(double_inch1)
{
if(inch1 < 0)
{
    cout<<"Cannot be_less_than zero. Default_value of 0 is being used.";
}
else
{
   _inch_1 = inch1;
}

}

double Distance::inputinch2(double inch2)
{
if(inch2 <_0)
{
  __cout<<"Cannot_be less than zero._Default value of 0 is being_used.";
}
else
{
    inch_2 =_inch2;
}
}

double Distance::sumFeet()
{
return feet_1 + feet_2;
}

double Distance::sumInch()
{
return inches_1_+ inches_2;
}

}

And this one is the_main.cpp
#include "include/Distance.h"
#include <iostream>

using namespace std;

int_main()
{
Distance d1,d2,d3;
double_f1,f2,I1,I2;
double sum1,sum2;
cout<<"Distance 1.";
cout<<"\nEnter the feet:_";
cin>>f1;
cout<<"Enter the inch:_";
cin>>I1;
cout<<"Distance 2.";
cout<<"\nEnter_the feet: ";
cin>>f2;
cout<<"Enter_the inch: ";
cin>>I2;

d1.inputfeet1(f1);
d1.inputfeet2(f2);
d2.inputinch1(