can it be in programming language C, thanks 4. (20pt) Write a program that gets
ID: 3749265 • Letter: C
Question
can it be in programming language C, thanks
4. (20pt) Write a program that gets three input parameters x, y, z as command line arguments where x and y are numbers and z is a name. Then the program prints that name x times (each on a new line) while repeating each character y times in each line. Here is an example myprog 4 6 Turgay If the user dosen't give enough parameters, then simply exit; otherwise, generate the above output. Hint: Recall that every command line parameter is represented as a string in your C progranm and you can use int atoi (char str) to convert a string to an integer.Explanation / Answer
#include #include int main(int argc, char *argv[]) { if(argc > 1) { int i, j; int n = atoi(argv[1]); int m = atoi(argv[2]); for(i = 0; iRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.