PLEASE NOTE: this server, secure.csse.uwa.edu.au, will be unavailable on WEDNESDAY 7th December, from 1pm until 4pm.
Web-based programs, such as csmarks, cssubmit, and the help fora, will all be unavailable.
  It's UWAweek 49

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


 UWA week 37 (2nd semester, week 7) ↓
SVG not supported

Login to reply

👍?
helpful
6:17pm Wed 14th Sep, ANONYMOUS

Hello, just for clarifications if we have commands with the same total number of commands invoked, are we allowed to return any of them? Based on the sample solution with month =7, it returns (weekly-backup 5 2) even though all of the commands have the same total number. Why does it return the 2nd command and not return the first or last command from crontab file? Is it safe to assume that as long as the total numbers are the same, then we can return any of the commands? Thank you! crontab file: # execute a command at 3AM every day 8 2 7 * 0 daily-backup # # execute a command at 4:15AM every Sunday 15 4 7 7 sun weekly-backup # # start thinking about the project.... 0 10 7 * 0 deep-thought # # submit my project automatically, just in case I forget! 59 16 16 7 * submit-project # # mail out a monthly newsletter 0 2 7 7 0 send-monthly-newsletter estimates file: # format: command-name minutes weekly-backup 6 daily-backup 2 send-monthly-newsletter 10 submit-project 1 deep-thought 600


SVG not supported

Login to reply

👍?
helpful
5:42am Thu 15th Sep, Christopher M.

ANONYMOUS wrote:
> Hello, just for clarifications if we have commands with the same total number of commands invoked, are we allowed to return any of them? Based on the sample solution with month =7, it returns > (weekly-backup 5 2) even though all of the commands have the same total number.
Yes. The sample solution prints the most frequently executed command-name appearing first in the estimates file.
> Is it safe to assume that as long as the total numbers are the same, then we can return any of the commands? Thank you!
You may assume that, but the testing files will ensure that only one command if the most frequently executed.

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