It's UWAweek 5


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.

 Posts from 2022 will be available until after the Deferred and Supplementary Exams
13 articles posted by this person
Showing 13 of 919 articles.
Currently 8 other people reading this forum.

 UWA week 43 (2nd semester, study break) ↓
SVG not supported 1:22pm Sat 29th Oct, Matthew C.

I read it to mean we needed to get a list of all executable files in each of the directories listed in the path, and any name that appeared in more than one directory were regarded as suspicious and the full path of each "copy" printed. I also underst...

 UWA week 42 (2nd semester, week 12) ↓
SVG not supported 9:31am Tue 18th Oct, Matthew C.

I am having an issue where isalphanum() is allowing some characters through that when I print to stdout they appear as a black diamond with a white question mark. (WSL ubuntu bash) locale command comes back with LANG C.UTF-8 LANGUAGE LC CTYPE "C.UTF-8"...

 UWA week 41 (2nd semester, week 11) ↓
SVG not supported 4:14pm Sun 16th Oct, Matthew C.

Congratulations Chris

 UWA week 37 (2nd semester, week 7) ↓
SVG not supported 11:05am Sun 18th Sep, Matthew C.

I didn't partner up for this project, my schedule wasn't suitable, but in the java unit my partner and I had a similar level of knowledge. We both worked individually on our project, but 2 or 3 times each week we had a microsoft teams meeting where...

SVG not supported 9:15am Fri 16th Sep, Matthew C.

Note to self providing small projects for students is not a profitable career. )

 UWA week 36 (2nd semester, mid-semester break) ↓
SVG not supported 11:01am Sat 10th Sep, Matthew C.

Maybe you are making system calls that are not portable? Or using POSIX headers? I would have assumed that the program would fail to compile in that case, but not certain. Either way the project won't be tested on windows.

SVG not supported 5:48pm Tue 6th Sep, Matthew C.

I think what you are asking is how to get the ascii value of a symbol character. That would be typecasting char c; int x; x (int)(c); I think you are probably trying to check if a crontab "word" is an asterisk. I think there are easier ways than what yo...

 UWA week 35 (2nd semester, week 6) ↓
SVG not supported 5:13pm Wed 31st Aug, Matthew C.

Yes, 20 commands at most. It could contain ten commands but 20 non comment lines for example, if each command had two different times to run

 UWA week 34 (2nd semester, week 5) ↓
SVG not supported 1:39pm Mon 22nd Aug, Matthew C.

(politely) it is not obvious if this is contradictory. It could mean run only when the day of the month matches the day of the week in a given month, (which would be kind of obtuse imo), or it could mean run on every monday and run on every 13th of th...

SVG not supported 11:55am Mon 22nd Aug, Matthew C.

By "the data itself" this includes that if it specifies the day of the month as a date, that there are enough days in the month (not worrying about leap years)? what is the behaviour if a day of the month and a day of the week is specified? does that...

SVG not supported 11:34am Mon 22nd Aug, Matthew C.

For the requirement to check for errors in the crontab-file and the estimate-file, are we guaranteed that "The crontab-file and the estimates-file will each contain at most 20 non-comment lines. Each line will be at most 100 characters long, and each ...

 UWA week 32 (2nd semester, week 3) ↓
SVG not supported 5:53pm Wed 10th Aug, Matthew C.

Also, if the reason you want to transfer stuff from windows to wsl linux is to get something you downloaded into wsl, say a code example like https units CITS2002 labsheets square.c, you can use the command "wget". For exampl...

 UWA week 31 (2nd semester, week 2) ↓
SVG not supported 2:58pm Sat 6th Aug, Matthew C.

It should be printf("Receives d x 50 cent coins n", i);

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  2:26AM Jan 17 2023
Privacy policy