Developing a specific c++ program

ASSIGNMENT 2AAssignment 2A tests your knowledge of basic C++ concepts (Chapters 2). For the assignment you are going to develop a
specific C++ program called YourName-Assignment1B (replace YourName with your actual name, no spaces) that
implements the solution/flowchart for the problem from Assignment 1 in C++.
Part 1. Design a program called YourNameAssignment1B (replace YourName with your actual name) with the following
exact/precise steps (should be in this order) and the variable names, messages, computation messages should be exact/as
requested):
1. Output a message “Enter a Number: ” that asks the user to enter a number.
2. Input a value from the user into a floating-point variable called Number. This can be any number the user wants; do
not hardcode a value.
3. Compute the area of the square1 with the side Number and store it in a floating-point variable called AreaSquare. This
should work on any number the user entered into variable Number, do not hardcode it.
4. Compute the area of the rectangle2 with the length Number and width 2*Number and store it in a variable
called AreaRectangle.
5. Output a message “The area of the square is: “ .
6. Output the value from the variable AreaSquare and move to a new line.
7. Output a message “The area of the rectangle is “
8. Output the value of the variable AreaRectangle.
For example, if the user enters 10 for the Number, the output should look like this:
Enter a Number: 10.00000
The area of the square is: 100.000000
The area of the rectangle is: 200.000000
Part 2. Implement the program in Visual Studio 2022: Create a CPP project called YourNameAssignment1B (same name
as the driver class) and add your code to YourNameAssignmen1B main method. Your program should be user-friendly
(prompt the user for the input using a descriptive message) and be well-documented/commented (have comments for
every line of code). Your program should be general and work on any number, and you should not hardcode the Number
or the 2 Areas– your algorithm should input the Number from the user and compute the areas based on the Number.
Also, your algorithms should not input, output, or compute more than requested (e.g. do input side, length, width, etc,
you should only input the Number).
Part 3. Create the screenshot document for your code and output: Create a Microsoft Word document from the
YourName-Assignment.docx template and call it YourName-Assignment1B.docx (replace YourName with your actual
name) Add to the document your complete screenshots of the Visual Studio editor window showing the complete C++
source code for YourNameAssignment1 class and complete screenshots the complete output. If the entire class C++
source code or the output does not fit in one screenshot or the screenshots cannot be easily read, create multiple
screenshots and add multiple screenshots to the screenshot document. Please keep the screenshots in order (look at the
line numbers). If your output is longer than a line and does not fit on one screen, Wrap Text in your output panel. See the
instructions on how to use the template.
Part 4. Submit your work: Submit YourName-Assignment1B.docx document 3 on eCampus under the Assignment 1B. Do
not archive the files (e.g. no RAR, ZIP, etc.) or submit other types/formats of files (e.g. no CLASS, PDF, CPP, etc.). Please
take time after submitting to review the file and check it is correct and resubmit it if there are any errors.
1
The area of a square can be computed by multiplying the side of the square by itself aka side*side.
2
The area of a rectangle can be computed by multiplying the length by the width. Since the length is Number and width
is 2*Number, you will need to replace them. At the end the formula should only be dependent on Number and constants.
3
The DOCX screenshots documents will show me that your program compiles correctly (hence the screenshots of the complete code
in editor) and runs correctly (hence the screenshots of the complete output in output window) for you.

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper
Still stressed from student homework?
Get quality assistance from academic writers!

Order your essay today and save 25% with the discount code LAVENDER