#include <iostream>
using namespace std;

int main(void)
{	
	//P=(x,y,z)
	float x = 0;//x co-ord of point
	float y = 0;//y co-ord of point
	float z = 0;//z co-ord of point

	//Pnew=(xnew,ynew,znew)
	float xnew = 0;//x co-ord of new point
	float ynew = 0;//y co-ord of new point
	float znew = 0;//z co-ord of new point

	//Translation Vector, T=(tx,ty,tz)
	float tx = 3;//translation along the x axis
	float ty = 3;//translation along the y axis
	float tz = 3;//translation along the z axis

//Input point to be translated
	cout << "Please enter a point (x,y,z)" << endl;
	cout << "Please  enter a value for x:";
	cin >> x;
	cout << "Please  enter a value for y:";
	cin >> y;
	cout << "Please  enter a value for z:";
	cin >> z;
	cout << "Input point is (" << x << "," << y<<"," << z<<")" << endl;

	//Input translation vector T
	cout << "Please enter a translation vector (tx,ty,tz)" << endl;
	cout << "Please  enter a value for tx:";
	cin >> tx;
	cout << "Please  enter a value for ty:";
	cin >> ty;
	cout << "Please  enter a value for tz:";
	cin >> tz;
	cout << "Translation Vector is (" << tx << "," << ty << "," << tz << ")" << endl;

	xnew = x + tx;
	ynew = y + ty;
	znew = z + tz;

	cout << "The translated point Pnew=(" << xnew << ", " << ynew<<", " << znew<<")" << endl;
	return 0;
}