Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Make c++programming in which the user choose which polygon and compute for the area. Please make use of relational operator logical operator and arithmetic operator

Make c++programming in which the user choose which polygon and compute for the area. Please make use of relational operator logical operator and arithmetic operator At Least 3PER CATEGORY! The below pic is my draft unfortunately was cut. So here is my code. #include using namespace std;int main(){ int A1,A2,A3,poly,s1,l1,w1,num; float radius, area; cout<<"Please choose which polygon 1.Square 2.Rectangle 3.Circle : "; cin>>num; if("num >= 1") { cout<< "Enter the side of the square: "; cin>>s1; A1=s1*s1; cout<< "Area of Square is: "<>l1; cout<< "Enter the width of the rectangle: "; cin>>w1; A2=l1*w1; cout<<"Area of Rectangle is: "<image

include sing namespace std; it main () int Al, A2, A3, poly, s1, ll, wl, num; float radius, area; cout<<"Please choose which polygon 1. Square 2 . Rectangle 3. Circle : cin> >num; if ( "num >= 1") cout<< "Enter the side of the square: "; cin> >sl; Al=sl*sl; cout<< "Area of Square is: "<

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Introduction to Wireless and Mobile Systems

Authors: Dharma P. Agrawal, Qing An Zeng

4th edition

1305087135, 978-1305087132, 9781305259621, 1305259629, 9781305537910 , 978-130508713

More Books

Students also viewed these Programming questions