*** I NEED THIS PROGRAM CONVERTED TO NOT USE POINTERS***
#include using namespace std; double getSales() { double sales; cin>>sales; if(sales>0) return sales; } void findHighest(double *no_est_sales,double *no_wst_sales,double *sou_est_sales,double *sou_wst_sales) { if(*no_est_sales>*no_wst_sales) { if(*no_est_sales>*sou_est_sales) { if(*no_est_sales>*sou_wst_sales) { cout<<"North East Division : "<<*no_est_sales; } else { cout<<"South West Division : "<<*sou_wst_sales; } } } else if(*no_wst_sales>*sou_est_sales) { if(*no_wst_sales>*sou_wst_sales) { cout<<"North West Division : "<<*no_wst_sales; } else { cout<<"South West Division : "<<*sou_wst_sales; } } else if(*sou_est_sales>*sou_wst_sales) { cout<<"South East Division : "<<*sou_est_sales; } else { cout<<"South West Division : "<<*sou_wst_sales; } } int main() { double no_est_sales,no_wst_sales,sou_est_sales,sou_wst_sales; cout<<"Enter value for North East division "; no_est_sales= getSales(); cout<<"Enter value for North West division "; no_wst_sales= getSales(); cout<<"Enter value for South East division "; sou_est_sales= getSales(); cout<<"Enter value for South West division "; sou_wst_sales= getSales(); //call by reference findHighest(&no_est_sales,&no_wst_sales,&sou_est_sales,&sou_wst_sales);
}