/*A program that uses a function to calculate a table of body mass index.*/ #include #include #include #include #include int calcBMI(double weight, double height); int main() { clrscr(); double weight, height; int bmi, begw, endw, change, test, temp; do{ cout<<"Enter Beginning Wt:"; cin>>begw; cout<<"Enter End Wt:"; cin>>endw; cout<<"Change By How much (10 is average)?"; cin>>change; clrscr(); test=endw-begw; test/=change; }while(begw>endw || test>=21); if (test>=21){ cout<<"Too Many, try again"; getch();} cout<<"Ht "; for(weight=begw; weight