Question: Task 1 : Update the program such that it will continuously prompt the user to enter a choice like 1 . for square, 2 .

Task1:
Update the program such that it will continuously prompt the user to
enter a choice like 1. for square, 2. for triangle, 0. for the exit.
if the user enters 1 display area and the perimeter of the square
if the user enters 2 display area and the perimeter of the triangle
otherwise, exit.
Task2:
Create a similar concept program and demonstrate the stack and heap
allocation of memory.
Task3:
Create a similar concept program and demonstrate the pointer to the base class
Create a similar concept program and demonstrate the virtual members
Create a similar concept program and demonstrate the abstract base class

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!