It's UWAweek 48

help2003/help4407

This forum is provided to promote discussion amongst students enrolled in Open Source Tools and Scripting.

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.

How do I ask a good question?
Displaying selected article
Showing 1 of 564 articles.
Currently 4 other people reading this forum.


 UWA week 16 (1st semester, non-teaching week) ↓
SVG not supported

Login to reply

👍?
helpful
10:20pm Thu 21st Apr, Michael W.
Edited: 4 mins later

ANONYMOUS wrote:
> Hi, > > I have 2 problems with Task2, just for clarification, > > 1. If user input a large number which is larger than the number of words in a file, how can we deal with this situation? 1) Use only the last word for the calculation, or 2) skip that file ? > > 2. Are we allowed to print some custom infos? For example, when the input parameter is larger than the number of words in a file, are we allowed to print the message like "Your input parameter is too large"? Or do we just need to process it and not print any message? > > Thanks!
Hi, The whole point about anti-bugging is foremost, to let the user know that there is a problem, and then do something sensible. For example if N is larger than the number of words, it won't be found. Say something. This relates to the second question, indeed it is expected that you say something, if appropriate. Doing nothing is not acceptable, as the user thinks the program is broken rather than their input. Cheers MichaelW

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