Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ help ASSIGNMENT 1 Build an algorithm that reads an integral number x from the console (input from the user),. computes the area of the
C++ help
ASSIGNMENT 1 Build an algorithm that reads an integral number x from the console (input from the user),. computes the area of the square ABED (with side x). computes the area of the rectangle ACFD (with length x x and height x) "computes the area of the circle with center E (and side x) . outputs the 3 areas to the console. Search the web or your math textbook for the correct formulas for the requested shapes area. As part of the assignment you need to write the flowchart for the algorithm AND the Cs program for the algorithm. Your flowchart and program should be user-friendly (prompt user for input and show a message/explain the utputting the numeric value for the area) and programmer-friendly (have comments at the beginning of the code explaining the program, and have comments before eact line of code explaining what the line is doing) For example, the output should look like this (and work for any value x entered from the user) This program calculates the area of a square, rectangle, and cirele detined based on a Enter the value for x: The area of the square with side 5 is The area of the rectangle with length and height is The area of the circle vith radius 5s 80Step 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