[Solved]Use Loop Structure Code Program Produces Following Output Take One Parameter User Let Spe Q37159460
hi i need help with the following questions:
thecode has too be in Rubyı. Use a loop structure and code a program that produces the following output (Take one parameter from the user to let them specify how many lines need to be printed): AAAB AAABA AAABAA AAABAAA AAABAAAB 2. Implement your own stack class (based on Array) with methods such as push, pop, length, and empty, and provide example test code that makes use of your stack class. 3. List 3 language design features of Ruby and evaluate them using short paragraphs (state both advantages and disadvantages). 4. (Extra Credit) Implement insertion sort algorithm. Read from the input file included in the assignment and write the sorted numbers into another file (sort in decreasing order and remove duplications). Show transcribed image text ı. Use a loop structure and code a program that produces the following output (Take one parameter from the user to let them specify how many lines need to be printed): AAAB AAABA AAABAA AAABAAA AAABAAAB 2. Implement your own stack class (based on Array) with methods such as push, pop, length, and empty, and provide example test code that makes use of your stack class. 3. List 3 language design features of Ruby and evaluate them using short paragraphs (state both advantages and disadvantages). 4. (Extra Credit) Implement insertion sort algorithm. Read from the input file included in the assignment and write the sorted numbers into another file (sort in decreasing order and remove duplications).
Expert Answer
Answer to ı. Use a loop structure and code a program that produces the following output (Take one parameter from the user to let … . . .
OR

