/***************************************************************************** * Outputs the volume of a cyclinder. * * Written: December 6, 2001 * * By: Ronald Roberts * *****************************************************************************/ //Ronald Roberts //6DEC01 //Program 55 #include #include struct { double volume; double height; double radius; }cyclinder; char sentinel='Y'; double calvolume(double height, double radius); void main() { while (sentinel=='Y' || sentinel=='y') { cout<<"Enter height: "; cin>>cyclinder.height; cout<<"Enter radius: "; cin>>cyclinder.radius; cout<<" "<>sentinel; } } double calvolume(double height, double radius) { const pi=3.14; double volume; volume=pi*height*pow(radius, 2); return volume; } /* Enter height: 5 Enter radius: 3 The volume is: 135 Run again? (Y/N) n */