I need completing my C++ program.

Job ID: 33185922

Budget: $15 – $25 USD

I am trying to write a code for finding head loss for a heat exchanger with one inlet and two outlets using the Hardy-Cross method. This is what I have so far.
#include <iostream>
#include <math.h>
#include <cmath>
#include <iomanip>
using namespace std;

int main()
{
//User input
const int ROWS=10, COLUMNS=6;
int table[ROWS][COLUMNS]={{ 1,2,3,4,5,6 }, {2 }, {3}, {4}, {5}, {6}, {7}, {8}, {9}, {10} };
int colSum;
float Q1;
float L1;
float D1;
float C;
float C1;
float k1;
float n;
float N;
float K;
float hf;
float dhf;
float dQ;
float hf1;
char response;
char yes;
char no;
int i;
int j;
string input;
string again;


cout<<setw(40)<<"Units of Q"<<setw(21)<<"k1"<<endl;
cout<<setw(50)<<"CFS (ft3/s)"<<setw(12)<<"4.727"<<endl;
cout<<setw(50)<<"MGD (million gals/day)"<<setw(12)<<"10.63"<<endl;
cout<<setw(50)<<"CMS (m3/s)"<<setw(12)<<"10.466"<<endl;

cout<<"\n"<<endl;
cout<<"Enter the value of k1\n"<<endl;
cin>>k1;


cout<<setw(40)<<"Types of Pipes"<<setw(21)<<"C"<<endl;
cout<<setw(50)<<"Extremely smooth and straight pipe"<<setw(12)<<"140"<<endl;
cout<<setw(50)<<"New,smooth cast iron pipes"<<setw(12)<<"130"<<endl;
cout<<setw(50)<<"Average cast iron, new riveted steel pipes"<<setw(12)<<"110"<<endl;
cout<<setw(50)<<"Vitrified sewer pipes"<<setw(12)<<"110"<<endl;
cout<<setw(50)<<"Cast iron pipes, some years in service"<<setw(12)<<"100"<<endl;
cout<<setw(50)<<"Cast iron pipes, in bad condition"<<setw(12)<<"80"<<endl;
cout<<"\n"<<endl;
cout << "Enter value of C from table\n" << endl;

cout<<"\n"<<endl;


cin>>C;
C1=C;
//Table headings


cout<<"Enter values for loop 1\n"<<endl;
cout<<setw(15)<<"Loop No."<<setw(15)<<"Pipe No."<<setw(15)<<"Pipe Diameter"<<setw(15)<<"Pipe Length"<<setw(15)<<"K"<<setw(15)<<"Q"<<setw(15)<<"hf"<<setw(15)<<"hf1"<<setw(15)<<"dhf"<<setw(15)<<"dQ"<<endl;
while(i<=4){

cout<<"Enter loop no."<<endl;
cin>>n;
cout<<"Enter pipe no."<<endl;
cin>>N;
cout << "Enter the desired diameter in m" << endl;
cin >> D1;
cout << "Enter the desired length in m" << endl;
cin >> L1;
cout << "Enter the desired flow rate in m3/sec" << endl;
cin >> Q1;

cout<<setw(15)<<n<<setw(15)<<N<<setw(15)<<D1<<setw(15)<<L1<<setw(15)<<K<<setw(15)<<Q1<<setw(15)<<hf<<setw(15)<<hf1<<setw(15)<<dhf<<setw(15)<<dQ<<endl;


K=(k1*L1)/(pow(C,1.852)*pow(D1,4.8704));
hf=K*pow(Q1,1.852);
hf1=K*pow(abs(Q1),0.852);
dhf=K*Q1*pow(abs(Q1),0.852);


i=i+1;



}
cout<<"Enter values for loop 2\n"<<endl;
cout<<setw(15)<<"Loop No."<<setw(15)<<"Pipe No."<<setw(15)<<"Pipe Diameter"<<setw(15)<<"Pipe Length"<<setw(15)<<"K"<<setw(15)<<"Q"<<setw(15)<<"hf"<<setw(15)<<"hf1"<<setw(15)<<"dhf"<<setw(15)<<"dQ"<<endl;
while(i<=4){

cout<<"Enter loop no."<<endl;
cin>>n;
cout<<"Enter pipe no."<<endl;
cin>>N;
cout << "Enter the desired diameter in m" << endl;
cin >> D1;
cout << "Enter the desired length in m" << endl;
cin >> L1;
cout << "Enter the desired flow rate in m3/sec" << endl;
cin >> Q1;

cout<<setw(15)<<n<<setw(15)<<N<<setw(15)<<D1<<setw(15)<<L1<<setw(15)<<K<<setw(15)<<Q1<<setw(15)<<hf<<setw(15)<<hf1<<setw(15)<<dhf<<setw(15)<<dQ<<endl;

K=(k1*L1)/(pow(C,1.852)*pow(D1,4.8704));
hf=K*pow(Q1,1.852);
hf1=K*pow(abs(Q1),0.852);
dhf=K*Q1*pow(abs(Q1),0.852);


i=i+1;



return 0;

}

}