Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

WAP- write a program im a beginner, please write a simple program Q.2 WAP to make a function Option which takes the options 1,2 and

image text in transcribed

WAP- write a program

im a beginner, please write a simple program

Q.2 WAP to make a function "Option" which takes the options 1,2 and 3 from the user. Now make three different functions "areaCircle", "areaRect" and "circumCircle" which will calculate area of circle, area of rectangle and circumference of circle on the options 1 , 2 and 3 respectively returned by the function. Finally display the output in the main function. The necessary data for calculation needs to be passed from the main function

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions