It's UWAweek 48

help2002

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 the 3 articles in this topic
Showing 3 of 919 articles.
Currently 4 other people reading this forum.


 UWA week 35 (2nd semester, week 6) ↓
SVG not supported

Login to reply

👍?
helpful
9:26pm Tue 30th Aug, ANONYMOUS

Hi, how many lines does the expected solution consist of for Project 1? I currently have over 200 lines but am not sure if this what others have (approx) or if I'm completely out of it and writing a lot of unnecessary code. Reading in the file spans over multiple lines of code and I have other numerous functions to calculate the top command, max number of commands and total number of commands, but I'm not sure if I'm supposed to incorporate these functions within this code. I apologise, I'm still trying to understand cron. Thanks in advance.


SVG not supported

Login to reply

👍?
helpful
9:55pm Tue 30th Aug, ANONYMOUS

ANONYMOUS wrote:
> Hi, how many lines does the expected solution consist of for Project 1? I currently have over 200 lines but am not sure if this what others have (approx) or if I'm completely out of it and writing a lot of unnecessary code. Reading in the file spans over multiple lines of code and I have other numerous functions to calculate the top command, max number of commands and total number of commands, but I'm not sure if I'm supposed to incorporate these functions within this code. > > I apologise, I'm still trying to understand cron. Thanks in advance.
I just rewatched the workshop and realised the sample solution consists of 380 lines. My bad. A big part of my code is from lecture slides, though, for example: reading in files. I hope that's valid.


SVG not supported

Login to reply

👍x1
helpful
6:13am Wed 31st Aug, Christopher M.

ANONYMOUS wrote:
> I just rewatched the workshop and realised the sample solution consists of 380 lines. My bad. A big part of my code is from lecture slides, though, for example: reading in files. I hope that's valid.
The sample solution, today (it keeps getting improved!), has 520 lines, of which 390 are lines of code (including all its debug statements). You may run the following shell commands to count yours:
/bin/echo -n 'total lines:   ' ; wc -l < estimatecron.c
/bin/echo -n 'lines of code: ' ; grep -v '^//' < estimatecron.c | grep -v '^$' | wc -l
And, yes, you may use all code that I've written/provided from lectures, and workshop and labsheet solutions, without attribution. That's one reason it's provided, and there's no point rewriting/paraphrasing such code if it works for you.

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