Question: #include using namespace std; //function prototype float findCircleArea(float radius); float findSquareArea(float baseLength); float findRectangleArea(float baseLength,float baseHeight); int main() { //declaration int choice; float radius,base,length,height; do

#include using namespace std; //function prototype float findCircleArea(float radius); float findSquareArea(float baseLength); float findRectangleArea(float baseLength,float baseHeight); int main() { //declaration int choice; float radius,base,length,height; do { //display menu cout << "Menu:" << endl; cout << " 1. Circle 2. Square 3. Rectangle 4. Exit" << endl; //prompt for choice cout << "Enter your choice to caliculate Area: "; cin>>choice; //break if choice is 4 if(choice==4) break; //caliculate area switch(choice) { case 1: //for circle //do do { //get radius cout<<"Enter the radius of circle :"; cin>>radius; //if radius is negative number if(radius<0) { cout<<"invalid number!"<>base; //if base is negative number if(base<0) { cout<<"invalid number!"<

//call area function on base length cout<<"Area of a Square with base ="<>length; //if base is negative number if(length<0) { cout<<"invalid number!"<

//do do { //get base length cout<<"Enter the base height of Rectangle :"; cin>>height; //if base is negative number if(height<0) { cout<<"invalid number!"<

//call area function on length and width cout<<"Area of a Rectangle with length="<

} while(true); return 0; } //function to caliculate area of square float findSquareArea(float baseLength) { //returning the result to calling return (baseLength*baseLength); } //function to caliculate area of rectancle float findRectangleArea(float baseLength,float baseHeight) { //returning the result to calling return (baseLength*baseHeight); } //function to caliculate area of circle float findCircleArea(float radius) { //returning the result to calling return (3.14f*radius*radius); }

I have to do the following things to this program:

Design a blue print for the program (Draw a hierarchal tree and a pseudo code)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!