So I have been messing with my code (in C++) that solves for thevolume of a hemisphere for a pot hole. I have been getting helphere and there, but I just need to help to incorporate an if-elsestatement and an array that is processed with a loop (even its justto print out). I am pretty stuck so any help is appreciated.
Thank you in advance
#include
double computePotHoleVolume(double pHoleDiam, doublepHoleHt);
double computePotHoleVolume(double pHoleDiam, double pHoleHt){
double PotHoleRadius;
double PotHoleArea;
double PotHoleVolume;
const double piVal = 3.14159265;
//commented out these lines as function gets pHoleDiam andpHol6eHt from main,CHEGGEA
/*printf(“Enter a positive number. n”);
scanf(“%d” ,&pHoleDiam);
scanf(“%d”,&pHoleHt);*/
PotHoleRadius = pHoleDiam / 2.0;
PotHoleArea = piVal *
PayPal Gateway not configured
PayPal Gateway not configured