Quiz+7

ICE3C/3U Quiz 7



1) Create a program which meets the following criteria: (15 marks)


 * The current date is entered as a string in the form dd-mm-yyyy.
 * A birth date is entered as a string in the form dd-mm-yyyy.
 * Convert each date to either real or int
 * Output the number of days that have elapsed between the birthdate and the current date.
 * Note: 5 mark bonus if you successfully account for leap years

You may use Turing to create this program Submit the completed program with the filename: YourLastNameQuiz7a by posting it on your homework page or handing it in on a memory stick.

2) Create a program which meets the following criteria: (10 marks)

A word of unspecified length is entered by the user The program then converts all upper case letters to lowercase and all lower case to upper case The program then outputs the result in the following form

a ab abc abcd abcde edcbe dcba cba ba a