the purpose of this is to find the percent of error of a trnsducer and the overall error.
I'm kinda stuck can you guys quickly take a look at it please

#include <iostream>
#include <cmath>
using namespace std;

void main()
{
	float td_1, td_2, td_3, ktd_1, ktd_2, ktd_3, 
		err_1, err_2, err_3, sum; 
	double ovrlerr;

	
	cout << "Enter the known value of Transducer 1  ";
	cin >> ktd_1;
	cout << "Enter the known value of Transducer 2  ";
	cin >> ktd_2;
	cout << "Enter the known value of Transducer 3  ";
	cin >> ktd_3;
	cout << endl << "#####################################";
	
	cout << endl << "Enter the tested force for Transducer 1  ";
	cin >> td_1;
	err_1 = fabs((td_1 - ktd_1)/ktd_1) * 100;
	cout << "Percent error of Transducer 1 = " << err_1 <<endl;
	
		  if (err_1 > 7.5) 
			  cout << "Transducer 1 needs to be Replaced" << endl;
		  else 
			  cout << "Transducer 1 is good for Crash Test";
	
	cout << endl << "Enter the tested force for Transducer 2  ";
	cin >> td_2;
	err_2 =  fabs((td_2 - ktd_2)/ktd_2) * 100;
	cout << "Percent error of Transducer 2 = " << err_2 <<endl;
	
		  if (err_2 > 7.5) 
			  cout << "Transducer 2 needs to be Replaced" << endl;	  
		  else 
			  cout << "Transducer 2 is good for Crash Test";

	cout << endl << "Enter the tested force for Transducer 3  ";
	cin >> td_3;
	err_3 =  fabs((td_3 - ktd_3)/ktd_3) * 100;
	cout << "Percent error of Transducer 3 = " << err_3 <<endl;
	
		  if (err_3 > 7.5) 
			  cout << "Transducer 3 needs to be Replaced" << endl;		  
		  else 
			  cout << "Transducer 3 is good for Crash Test" << endl ;


	  	 sum = (err_1 + err_2 + err_3);
		 
		 ovrlerr = fabs((sum - (3*ktd_1))/(3*ktd_1)) * 100;
		 
		 cout << "Overall error for all three Transducer is " << ovrlerr << endl;
		 
			if (ovrlerr > 5)
			    cout << "The test can not be carreid due to malfunction of the Transducers" << endl;
			else 			
				cout << "The Test can be carried on" << endl;




}

thanks guys

here is what the criteria looks like

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.