Skip to main content
BSC Moodle
Log in
  • Moodle Home
  • MyBSC Links
    Academic Alerts (formerly Starfish) Apogee BSC Email BSC Intranet BSC Website Change Password Colleague Events Records IT Helpdesk IT Help for Online Course Students Library MobilePrint OrgSync TheSIS Time & Attendance Trakstar
  • Moodle FAQs
  1. Home
  2. Courses
  3. Miscellaneous
  4. 22FA_CAC180A
  5. Week Seven: 10/3-10/7
  6. Lab #7

22FA_CAC180A-Programming

Lab #7

Completion requirements
Make a submission
Opened: Wednesday, 4 March 2020, 12:00 AM
Due: Friday, 7 October 2022, 11:59 PM

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.

◄ Images for Image Manipulation Lecture
Image Manipulation Code Example ►

Moodle Help

BSC Students - Please contact the BSC Helpdesk at helpdesk@bsc.edu or 205-226-3033, option 2. If you're an online course student, please consult the IT Website for Online Course Students. 

BSC Faculty and Staff - Please visit the Instructional Technology Moodle Course or contact Angela Brooks at adbrooks@bsc.edu, 205-226-3039.

facebooklinkedininstagram

  • Moodle Home
  • MyBSC Links
    Academic Alerts (formerly Starfish) Apogee BSC Email BSC Intranet BSC Website Change Password Colleague Events Records IT Helpdesk IT Help for Online Course Students Library MobilePrint OrgSync TheSIS Time & Attendance Trakstar
  • Moodle FAQs
Built with Open LMS, a Moodle-based product.
Copyright © 2024 Open LMS, All Rights Reserved.

Data retention summary
Get the mobile app
Switch to the standard theme