instructions please read the following instructions carefullybefore submitting assig 3546545
Instructions Please read the following instructions carefullybefore submitting assignment: It should be clear that your assignment will notget any credit if:
oTheassignment is submitted after duedate. oThesubmitted assignment does not open or file iscorrupt. oTheassignment is copied.
Note: You have to uploadonly .cpp file. Assignment in any other format(extension) will notbe accepted. If you will submit codein .doc (Word document) you will get zeromarks.
Objective The objective of this assignment is to provide hands onexperience of using
oBasicconcepts of C++ language and Programming oWritingand editing a C program oSavinga C program oCompilinga C program oExecutingthe program oConditionalstatements of C language


Assignment 

Problem Statement: You are required to write a calculator for Geometric shapes(Circle, Square, and Rectangle). The basic idea is that you willprovide theinformation regarding a geometric shape and yourprogram will calculate the area, circumference and perimeter. e.g In case of circle, you will enter the radius of the circleand your program will display the area and circumference ofcircle.
Detailed Description: 1.The program should display Enter 1 for Circle Enter 2 for Square Enter 3 for Rectangle Enter your choice: Then the program should take the input, 2.Depending upon the choice thatuser has entered, yourprogramwill further display the prompt a.If user has entered 1, then your program should promptthe user toenter the radius of the circle, andthen after taking the input it should calculate thearea andcircumference of circleand display it on the screen. b.If the user has entered the 2, then your programshould prompt the userto enter the length of theside of Square. c.If the user has entered 3, your program should promptthe user toenter the length andwidth of Rectangle. 3.At the end your program should display your name and VU ID.
Hints
Area of Circle:3.14 × radius ×radius
Area of Square: Length of side × Length ofside Perimeter of Square: 4 × Length ofside
Area of Rectangle:Length ×Width Perimeter of Rectangle:2 × (Length +Width)
Sample Output Enter 1 for Circle Enter 2 for Square Enter 3 for Rectangle Enter your choice: 1 Enter the Radius of Circle: 2.5 The Area of Circle is: 19.64 The Circumference of Circle is:15.71 Name: Muhammad Irfan. VU ID: BC020121111 Sample Output Enter 1 for Circle Enter 2 for Square Enter 3 for Rectangle Enter your choice: 2 Enter the Length of side A of Square: 2.5 The Area of Square is:6.25 The Perimeter of Square is: 10 Name: Muhammad Irfan. VU ID: BC020121111 Sample Output Enter 1 for Circle Enter 2 for Square Enter 3 for Rectangle Enter your choice: 3 Enter the Length of Rectangle: 2.5 Enter the Width of Rectangle: 4 The Area of Rectangle is: 10 The Perimeter of Rectangle is: 13 Name: Muhammad Irfan. VU ID: BC020121111 