Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 80

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

Making Databases Work The Pragmatic Wisdom Of Michael Stonebraker

Authors: Michael L. Brodie

1st Edition

1947487167, 978-1947487161

More Books

Students also viewed these Databases questions

Question

=+5.5. Suppose that X has mean m and variance o2.

Answered: 1 week ago

Question

4. Choose appropriate and powerful language

Answered: 1 week ago

Question

2. Choose an appropriate organizational pattern for your speech

Answered: 1 week ago