I've uploaded solutions of the C++ Programs Manual i had uploaded before. See that manual and find your solutions in my uploads.
For my c++ programming tutorials. Visit http://uolbscs.com/my-tutorials/
OR my website at www.uolbscs.com
1. #include <iostream.h>
using namespace std;
int main()
{
char a[20],b[20];
float km,centimeters,feet,inches,meters;
cout<<"Enter the name of the city where you live:-";
cin>>a;
cout<<"Enter the name of the city you belong:-";
cin>>b;
cout<<"Enter the suppose distance b/w these two cities:-";
cin>>km;
meters= km * 1000;
centimeters= meters * 100;
feet= meters * 3.281;
inches= feet * 12;
cout<<"The differences in"<<a<<"and"<<b<<"is given below:-"<<"n";
cout<<"The difference in meters is:-"<<meters<<"n";
cout<<"The difference in centimters is:-"<<centimeters<<"n";
cout<<"The difference in feet is:-"<<feet<<"n";
cout<<"The difference in inches is:-"<<inches<<"n";
system("pause");
}