Graderpractice for programmers

254275 OOP (Summer) - Mini Test 1B

Awaiting submission
Write a program that reads an integer and prints out its times table from 1 to 3, in the format 1 x A = A, 2 x A = B, etc.
Awaiting submission
Write a program that prints "hello" x times, where x is input by the user. After saying all the hellos, print "and how are you?" (all lowercase).
Awaiting submission
Read in 3 words (one per line) and print out the one that is the shortest (has the fewest characters).
Awaiting submission
You are making wallpaper for a geeking house and the owner wants the wallpaper to contain alternating & and $. Your program should input the width of the wall, w. The height of the wall, h, is always 5. Print out the wallpaper following the given size.
Awaiting submission
You are playing the original Super Mario Bros and you would like to record how to complete every level. You write down the sequence of actions:

walk, walk, jump, shoot, jump, jump, walk.

To save space, you can simplify the sequence to: W2 J1 S1 J2.

Write a program that reads in a command per line (e.g. W2) and prints out the full description (walk walk). You can assume that the maximum number of repeated actions is 3 (W3 is accepted, but W4 is not). The X marks the end of the input.