Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started