It's UWAweek 25 (mid-year break)

helpOSTS

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 the 6 articles in this topic
Showing 6 of 439 articles.
Currently 11 other people reading this forum.


 UWA week 16 (1st semester, week 7) ↓
SVG not supported

Login to reply

👍?
helpful
10:26pm Tue 16th Apr, ANONYMOUS

Hello professor. I have a few questions here: 1. Regarding error messages, for the error messages provided in Sample Queries, if other error conditions are encountered, is there a template for the output error message? Or can I write my own error message such as "Please enter the correct Country Code". 2. Regarding case sensitivity, please tell me if there is case sensitivity. I think that by entering the information MALE, mALe, and mALE, you should get the correct information about male. Also for country code, Jpn should have the same effect as JPN. Is my understanding correct? Or does it mean that in the country code, only the all-capital JPN is correct, and in the gender, only Male is correct, and other information should output an error message such as "Please enter the correct gender"? Thank you.


SVG not supported

Login to reply

👍?
helpful
8:13pm Wed 17th Apr, Michael W.

Hi, I'll answer each part after the question ANONYMOUS wrote:
> Hello professor. > > I have a few questions here: > 1. Regarding error messages, for the error messages provided in Sample Queries, if other error conditions are encountered, is there a template for the output error message? Or can I write my own error message such as "Please enter the correct Country Code".
I hope it's clear that I'm expecting the program to deal with other error states. Given that I've not told you what they are, I can hardly be pedantic about the error message. True? While your program will be tested automatically, it will be marked by a human (one of the lab demonstrators). If the error is caught and error message makes sense in the context, that'll get full marks for that test.
> > 2. Regarding case sensitivity, please tell me if there is case sensitivity. I think that by entering the information MALE, mALe, and mALE, you should get the correct information about male. Also for country code, Jpn should have the same effect as JPN. Is my understanding correct? Or does it mean that in the country code, only the all-capital JPN is correct, and in the gender, only Male is correct, and other information should output an error message such as "Please enter the correct gender"?
The point of any program is to be helpful, though the first priority is not to print rubbish. So, if there is a real error, catching and commenting is the priority. However, if the user's request has an obvious interpretation, e.g. male == Male (or malE, if you wish), then, while not incorrect, it's not super helpful to call out an error.
> Thank you.
Cheers MichaelW 👨‍🎨


SVG not supported

Login to reply

👍?
helpful
12:10pm Thu 18th Apr, ANONYMOUS

Hi Professor, Regarding Point 2, I am not getting any clarity.can you explain clearly what the program is expecting.does the real test cases test only with the format (Ex: Male) or (male /mAle/maLe) to treat them as same whicdh gives output or should they be treated as errors?


SVG not supported

Login to reply

👍?
helpful
12:21pm Thu 18th Apr, Michael W.

ANONYMOUS wrote:
> Hi Professor, > > Regarding Point 2, I am not getting any clarity.can you explain clearly what the program is expecting.does the real test cases test only with the format (Ex: Male) or (male /mAle/maLe) to treat them as same whicdh gives output or should they be treated as errors?
Hi What I was trying to indicate is that treating malE as an error is not wrong, but does make use of perfectly usable information, so would be worth less as an answer, therefore half marks for that question. Cheers MichaelW 👨‍🎨


SVG not supported

Login to reply

👍?
helpful
1:48pm Thu 18th Apr, ANONYMOUS

Thank you for your reply Professor, But sorry still i could not get clarity regarding it.What i was asking is that the gender column will contain values only as Male/Female to check or it might also contains male/mAle/maLe something like that so that should we consider them as equal to Male.Same with country column as well.


 UWA week 17 (1st semester, week 8) ↓
SVG not supported

Login to reply

👍?
helpful
10:32am Mon 22nd Apr, Michael W.

ANONYMOUS wrote:
> Hello professor. > > I have a few questions here: > 1. Regarding error messages, for the error messages provided in Sample Queries, if other error conditions are encountered, is there a template for the output error message? Or can I write my own error message such as "Please enter the correct Country Code". > > 2. Regarding case sensitivity, please tell me if there is case sensitivity. I think that by entering the information MALE, mALe, and mALE, you should get the correct information about male. Also for country code, Jpn should have the same effect as JPN. Is my understanding correct? Or does it mean that in the country code, only the all-capital JPN is correct, and in the gender, only Male is correct, and other information should output an error message such as "Please enter the correct gender"? > > Thank you.
Yes, capitalization of country codes will be treated similar to gender. 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  5:07AM Sep 06 2023
Privacy policy