Originally Answered: Computer Science?
# question 1, done in Python 2:
m = int(raw_input("Enter numerator: "))
n = int(raw_input("Enter denominator: "))
q = m//n
r = m%n
# display results:
print m, '/', n, '=', q, 'R', r
The output from a run of that in Idle:
Enter numerator: 17
Enter denominator: 5
17 / 5 = 3 R 2
Notice how the program is divided into three sections: input, processing, and output. This is a common way to organize pieces of a program. In this case, it's actually the whole program.
Now, you try these ideas on your other problems. One more hint, though:
print "%d:%02d" % (8, 30) # this will display 8:30
print "%d:%02d" % (12, 1) # this will display 12:01
The % operator with a string on the left performs formatting of the items in a list or tuple on the right. You could assign the resulting string to a variable, as well, instead of just printing it.