Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Lab 5 Areas2.cpp Marisol castellanos Villa tinclude // INCIUDE ANY NEEDED FILES HERE include using namespace std; int main() I DEFINE THE NAMED CONSTANT PI

image text in transcribedimage text in transcribed

Lab 5 Areas2.cpp Marisol castellanos Villa tinclude // INCIUDE ANY NEEDED FILES HERE include using namespace std; int main() I DEFINE THE NAMED CONSTANT PI HERE AND SET ITS VALUE TO 3.14159 const double PI-3.14159 float c radius, c area: float s side, sarea float t_height, t width, t_area; / DECLARE ALL NEEDED VARIABLES HERE. GIVE EACH ONE A DESCRIPTIVE int choice; char ch / NAME AND AN APPROPRIATE DATA TYPE cout> choice; if (choice--1) / WRITE STATEMENTS HERE TO DISPLAY THE 4 MENU CHOICES // WRITE A STATEMENT HERE TO INPUT THE USER 'S MENU CHOICE // USE AN IF/ELSE IF STATEMENT TO OBTAIN ANY NEEDED INPUT INFORMATION cout Enter the Length of the side of the square:"; cin>> s side; s area=s siders side cout>c radius; c area PIc radiusc radius: cout> t_height; cout> t_width; t-area-.5*t. height*t, width; cout>ch cout

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

Database Application Development And Design

Authors: Michael V. Mannino

1st Edition

0072463678, 978-0072463675

More Books

Students also viewed these Databases questions

Question

How does the concept of hegemony relate to culture?

Answered: 1 week ago