Lab #7
Please complete the following problems.
1. The next day problem. You have already completed this problem. I would like you to edit your solution to use functions. Here is a reminder of the problem:
Write a program that reads a date from the user and computes its immediate successor. For example, if the user enters values that represent 2013-11-18 then your program should display a message indicating that the day immediately after 2013-11-18 is 2013-11-19. If the user enters values that represent 2013-11-30 then the program should indicate that the next day is 2013-12-01. If the user enters values that represent 2013-12-31 then the program should indicate that the next day is 2014-01-01. The date will be entered in numeric form with three separate input statements; one for the year, one for the month, and one for the day. Ensure that your program works correctly for leap years.
Think about this problem in terms of functions. For example, you could have a function that determined if a year is a leap year. You could put the logic for determining the next day in a function itself. Your solution should have a minimum of one function.
2. Please find an image to manipulate by changing the color to sepia. Please submit the before and after pictures as well as your code for doing the sepia manipulation. The logic for sepia is in the slides. Please be sure that you have the code for sepia contained within a function.