Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Program Purpose Using Visual Studio 2017 create a CLR console application. Create a program plan and then convert it into C++ statements. Practice debugging, declaring

image text in transcribed
image text in transcribed
Program Purpose Using Visual Studio 2017 create a CLR console application. Create a program plan and then convert it into C++ statements. Practice debugging, declaring variables, type casting, formatting output, if statements and input /output to / from the console, while loop, nested loops. Always bring to clas 1. Gaddis' book, How-to handouts from Canvas and your class notes. 2. This assignment sheet&the grade sheet for this lab already printed out. 3. USB Flash drive(s) or other storage media. Mandatory Instructions Write a complete C++ program for the following program description. In this lab, you wi draw rectangles or triangles depending on what the user selects . Ask the user for the size of the base, i.e., number of characters at the bottom of the rectangle. Validate user input so that if they enter anything smaller than 6 or larger than 20 you will not accept it as valid. Program should NOT end. Height should be of the base. 2. Ask the user how many shapes they want to draw, i.e, if they rectangle and provided base length as 7 then 3 shapes you will produce output shown below. Validate user input, i.e., do not accept values that are negative or 0 or greater than 10. 3. Ask the user if they want a filled shape or an outline. Outline is pictured below. Filled shape would have a inside the rectangle. Present a choice "Filled? [Y or N]" and validate user input. Do not accept any other character then Y or N but allow lower case or upper case Implement drawing of the shapes by utilizing nested loops and symbol. You are only allowed to COUT a single * character at a ti Output Example: St Declare all variables and constants that your program uses at the beginning of your program. Your program should include two types of comments: a. Program banner 2. // File Name LastF Lab12.cpp / DescriptionProgram description

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

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

More Books

Students also viewed these Databases questions

Question

2. How much time should be allocated to the focus group?

Answered: 1 week ago