Homework Help Question & Answers
C++ Example 1 of command and output Example 3 of command and output You will create…
C++
Example 1 of command and output Example 3 of command and output You will create a C++ program that can read the arguments, according to the arguments, your program should output some patterns accordingly. The C++ source codes will become the executable to be tested by the TAs. The result should be outputted to the console. The general call to the executable is as follows in Linux: ./main 1 2 Linux Command: ./main 1 2 Linux Command: ./main 5 2 output1 #********* ********** ********** ********** ********** output3 #####***** **#####*** ****#####* ******#### ********## Your outputted results should fulfill the following requirements. 1) Like above blue command shows, two parameters will be given when running your program. The first number represents the number of “#” (pound) sign in the output, the second number represents the number of right moves for the following line. 2) When the “#” sign(s) move out of the line, the output stops. 3) Including the “#” sign(s), total 10 characters should be outputted in each line. The “*” (asterisk) sign(s) used to fill the reminder characters. 4) All parameters range from 1 to 9 (including 1 and 9). The two parameters will always be given. Example 2 of command and output Linux Command: ./main 34 output2 ###******* ****###*** ********##
Add a comment