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 //call area function on base length cout<<"Area of a Square with base ="< //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
Get step-by-step solutions from verified subject matter experts
