Question: // This program has overloaded functions #include #include using namespace std; // Function Prototypes char userInput(); double inputValue(); int main() { // These are the

// This program has overloaded functions #include  #include  using namespace std; // Function Prototypes char userInput(); double inputValue(); int main() { // These are the variables for the program. double asquArea; double length; double width; char radius; char shape; const double pi = 3.14; // Prompt user to enter the length shape = userInput (); // User inputs the char for what shape. } // Prototype Definition char userInput () { char input; cout<<"What shape the user input and to find the area of it "; cout<<"Enter S for Square, R for Rectangle, C for Circle"; cin>>input; // Switch statement for the area calculation. return input; // Switch statement } // This function gets the length of a square. double inputValue() { double input; cout<< " enter the length or radius"; cin>> input; return input; } // Local variables for this function. 

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!