Question: In this lab, we will have more practice on programming C++ with while loop, nested while loop and user defined functions. Develop two programs for

 In this lab, we will have more practice on programming C++

with while loop, nested while loop and user defined functions. Develop two

In this lab, we will have more practice on programming C++ with while loop, nested while loop and user defined functions. Develop two programs for the following two tasks Programming Problem One Write a C++ program, named draw.cc, that 1. Reads in from user two pieces of information: 1. the height of a triangle to draw, and 2. the character used to draw the triangle and 2. 2. Draws the one right triangle of the 'height" given in the "character" entered, and another right triangle that flips vertically from the first trianlge First, create a director "CLASB" under the "CLA" directory. Use "cd" command to change directory to the "CLA5B" directory. Use scite to write the program named draw.cc. $scite draw.cc & Compile the program with $aCc draw.cc Programming Requirements void function "GetUserinput" will prompt the user to get the two pieces of information. The input entered by user should be sent back to the calling function using the parameters passed by reference void function "DrawTriangle" will draw the triangle based on the user input values Here are example runs of the program. The output of the program should look like this

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!