Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 x 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 C++ program for the algorithm Your flowchart and program should be user-friendly (prompt user for input and show a message/explain the output before outputting the numeric value for the area) and programmer-friendly (have comments at the beginning of the code explaining the program, and have comments before each 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 circle defined based on a value x Enter the value for x: 5 The area of the square with side 5 is 25 The area of the rectangle with length 10 and height 5is 50 The area of the circle with radius 5 is 78.50 You need to create and submit the following 3 files the flowchart for the algorithm in a Microsoft Word document (using Shapes or SmartArt to draw it) (call the file [YourNamel-Assignment1-Flowchart.docx; replace [YourName] with your actual name, no spaces) the C++code for the algorithm in Visual Studio 2015 (call the project YourNamel-Assignment1). Archive the project folder using ZIP and submit the YourName]-Assignment1.zip ZIP archive a screenshot of the entire program output (if it does not fit on one screen take multiple screenshots of the output window) and paste it/them into a Word document called YourNamel-Assignment1- Screenshot.docx See the AssignmentSubmissionRequirements.pdf for submission requirements. 1Replace the highlighted values with the value x entered from the user or computed in your algorithm
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