It's UWAweek 48


This forum is provided to promote discussion amongst students enrolled in CITS2002 Systems Programming.
Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

Displaying selected article
Showing 1 of 919 articles.
Currently 4 other people reading this forum.

 UWA week 34 (2nd semester, week 5) ↓
SVG not supported

Login to reply

10:58am Wed 24th Aug, Christopher M.

Hi Alicia,

"Alicia Lau" [email protected] wrote:

adding on to the question recently asked by Ryan, I would like to know if you expect our program to check the calendar for valid dates.

Yes. A pattern such as 1 1 32 7 * is invalid because there are only 31 days in August.

I'm concerned about this because of the asterisk, which basically takes in all the possible values of a month. So for the example given by Ryan, the program would assume that every month starts on Monday as its first day, where foo will be run.

Yes, but the asterisk cannot every represent the 32, because it's not part of a valid date.

So want to have a clarification that if you do expect us to implement a calendar system for this year, then the example would be an invalid time. Otherwise no

It's not really a 'calendar system', and you don't need to 'do it all yourself', as we've already seen something helpful in a class session (big hint :-).

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  1:17AM Sep 14 2022
Privacy policy