rendered paste bodyint main (){
int time;
int height;
double bounceHeight;
double dash;
cout << "Please enter the initial height\n";
cin >> height;
if (height > lower && height < upper){
cout << " 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80\n";
for (time = 0; dash = height; dash = (dash-((time*time)/2)); dash > end;){
cout << ""<<mark<<"";
dash = dash+1;
time = time+1;
}
cout << "\n";
bounceHeight=height;
while (bounceHeight > end){
for (dash=(bounceHeight*(3/4)) ; dash > end ; --dash){
cout << ""<<mark<<"";
bounceHeight = dash ;
}
cout << "\n";
}
}
else{
cout << " Invalid Input! \n";
}
cout << "\n";
return 0;
}