CSCI 261 - Programming ConceptsFall 2018 - Lab 9B - Calendar EventsQuick Links: Canvas | Mines | Piazza | zyBooks | 
|
| | Home | Contact | Syllabus | Assignments | Schedule | Resources | | |
| 
 This lab is due by Tuesday, December 4, 2018, 11:59 PM. ConceptsFocus on defining a Date and an Event class from
	scratch. 
Suggestion: Use NotePad or WordPad
	Consider using NotePad or WordPad on your computer to write your code
	for this lab. Once you feel good about what you've written, then copy
	the code into your project. Doing this will help you see where
	you might make mistakes on the exam!
 
	You should write a
	 
main.cpp
	that tests each feature of your class works as expected. You
	will need to submit your class declaration files, your class
	definition files, and your
	main.cpp
	file for this lab.
Date Class
    We know you, as a Mines student, have a busy social life. Wouldn't it
    be great to have a program that helped you keep track of all your
    important dates (as in month, day, and year)? Write a Date class to
    represent this "thing" to the computer. What properties do you need to
    represent a date? Make these properties private to your class. (Again,
    you should know why private makes sense; ask it you don't!) In
    all functions that modify data members, you should always ensure the
    values being set make sense. (You do not need to worry about leap
    years.) Also, use a private helper function wherever one makes sense.
    Functions you should include in your class:
     
 Event Class
	Now that we have a way to represent a calendar date, we need a way to make
	entries into a calendar.  Create a new class called  
Event that
	contains a data member of type Date created above.
	In addition, add data members to track the event title and location.
	Functions you should include in your class:
	
 Lab SubmissionYou will submit your solution to this lab with the rest of Set9. Detailed instructions for doing this are posted in Assignment 9. This lab is due by Tuesday, December 4, 2018, 11:59 PM.  | |
| 
 Last Updated: 11/22/18 15:20 
 |