Answered step by step
Verified Expert Solution
Question
1 Approved Answer
input a number (x) and create a program that allows the user to select finding the area (Area) of one of the the following. -
input a number (x) and create a program that allows the user to select finding the area (Area) of one of the the following.
- The Area of a Square with the side x, Area = x * x
- The Area of a a circle with radius x, Area = 3.14 * x^2
- The area of an equilateral triangle with side x, Area = sqrt(3)/4 * x^2
Note: Because x represents a dimension, we require that x > 0. Be sure to include this requirement in your program.
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