Programming Lab 3: Course Schedule Input/Display, due Thursday, 10/5
Objective: To write a program that uses a DataSet to store and display a course schedule
Here are the details and rules:
- Write a program to allow the user to enter and view their couse schedule like
this program (If link doesn't seem to work, right-click on it and select "Save Target As", then
execute the program after saving it.)
- Put "Option Strict On" at the top of each module.
- No database access is necessary for this program.
- Use a DataSet to store the data, and that DataSet should be created in code that you write.
- If the user enters an invalid Start Time or Length or number of Units, your program should display a
MsgBox explaining the error and allowing the user to fix it.
- When turning in your homework, zip up your entire solution and e-mail the zip file to
cpersiko@ccsf.edu
- For 5% Extra Credit: Make your program behave like this one:
- Sort the classes by Days, then Start Time when displaying. So classes that meet the same days are
grouped together, in order. (This part is worth 2 extra credit points)
- Enforce a constraint that no two courses can meet on the same days at the same time. For example,
if the user tries to add two classes that meet MW at 7:10PM, then an error message will be displayed
explaining the problem, and the user will be allowed to correct their mistake. (This part is worth 3
extra credit points)
- If you really want to challenge yourself, I'll give an additional 5 extra credit points to
anyone who can enforce true scheduling constraints: Two overlapping classes cannot both be scheduled.
For example, if the user tries to add a class on MW at 7:10PM that lasts 110 minutes, they cannot also
add a class on W at 8:30PM. This capability is not included in my extra credit program.
Return to main CS 112D page