From BU Computer Science
Jump to navigation Jump to search

First Repetition Assignment

Choice 1=

Write a program that takes a list of times (minutes and seconds) and outputs the total number of minutes and seconds. The list terminates with 0 minutes and 0 seconds.

Sample input:
	2 15
	10 30
	5 20
Sample output:
	18 minutes and 5 seconds

Choice 2

Adapt the previous supplemental program to produce a month’s calendar. The input should be the year, month and the day of the week of the first of that month. The code from the previous supplemental program can be used to determine when the last day of the month is.