TASK 3: Write C++ code to prompt the user for the number of '-' characters on the first row. Repeatedly re-prompt the user if the value entered is not at least two. Compile, run, and test this solution before continuing to the next task. TASK 4: Write C++ code to prompt the user for the total number of rows to display. Repeatedly re-prompt the user if any row would not have at least two '-' characters. TASK 5: Write C++ code to display the inverted trapezoid given the values entered in TASK 3 and TASK 4. Be sure that there is a comment documenting each variable (see the document on Carmen under Modules on how to comment your code). Do not start a variable name with a capital letter. Be sure that your code is properly indented, readable, and use good descriptive names. Test your solution.
TASK 3: Write C++ code to prompt the user for the number of '-' characters on the first row. Repeatedly re-prompt the user if the value entered is not at least two. Compile, run, and test this solution before continuing to the next task.
TASK 4: Write C++ code to prompt the user for the total number of rows to display. Repeatedly re-prompt the user if any row would not have at least two '-' characters.
TASK 5: Write C++ code to display the inverted trapezoid given the values entered in TASK 3 and TASK 4.
-
Be sure that there is a comment documenting each variable (see the document on Carmen under Modules on how to comment your code).
-
Do not start a variable name with a capital letter. Be sure that your code is properly indented, readable, and use good descriptive names.
-
Test your solution.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 6 images