rt, does any senior remember last year’s COMP300205 - Fundamentals of Programming exam questions? What were they like?
I am in Teacher Qiu’s class, and our class has six problems. The first five problems are very basic; the hardest among them is only as difficult as bubble sort, but the sixth problem is relatively hard. It seems that the exam questions differ for each class, and I only know about Teacher Qiu’s situation from last year.
Okay, thank you.
I was also in Teacher Qiu’s class last year. I think the sixth question was about handling arrays? Iterate over the array, store the processed results, and print out a little person.
To prevent cheating, an exam room should have two sets of test papers, A and B. The set I drew should not be the printed “little person”. I only vaguely remember that not many people solved the sixth problem last year.
Please use nested loops to output a parallelogram, with the number of rows equal to n and each row containing n “*” characters; n is entered from the keyboard.
Example input:
5
Example output:
This was the problem our teacher gave us last year; is yours the same?