Answered step by step
Verified Expert Solution
Question
1 Approved Answer
For the optional instructions part please do it and make it clear which part of the code is the optional section. Program Purpose Using Visual
For the optional instructions part please do it and make it clear which part of the code is the optional section.
Program Purpose Using Visual Studio 2017 create a CLR console application. Create a program pl an and then convert it into C++ statements. Practice debugging, declaring variables, formatting output, decision statements, input/output, loops, and functions Always bring to class 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++progra m for the following program description. In this lab, you will draw a number of rectangles depending on user input utilizing a function that you will write Draw rectangles using a function called draw rectangle(). The draw rectangle) function should draw (.e., output to console window) ONE four (rows) x seven (columns) rectangle (ie, rectangle that is empty inside). Implement this drawing by utilizing a nested loop and *' symbol In the main function, your program should ask the user to enter the number of times the rectangle is to be displayed and then call the draw_rectangle() function that specific number of times to draw the rectangle(s). Validate user input. Do not accept "hello" for input of times to repeat the shape. Do not accept any numeric value less than 1 or greater than 10 This needs to be implemented with two nested do while loops. Assume user will enter a number or they could enter a word like "hello" but no mixed input will be entered like "12hello" You program must include the function prototvpe and function definition for the draw_rectangle) function. Output Example: Enter the number of tines yo u want to draw the rectangleStep 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