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.
Hello, I'm just wondering if decomposing the tasks in Assignment 2 into external shell scripts would be safe for marking? Because I've decomposed my main coding into 2 tasks one for counting the occurences of conjunctions, and the other for counting...
Hello, I want to ask if counting the list of conjunctions e.g. "and", "of", "because" etc. means counting the conjunctions as a word of its own?
For example, when counting the number of "while"s, sentences containing "once-in-a-while" or "while's" sh...
Hi Micheal, could you also upload the profiles of the three longer samples as shown in the screenshot below? perhaps also include their normalised profiles? Because it would be easier for me to keep track of what actually went wrong in the Euclidian ...
Hi, can someone explain what does the output for each instance i.e. and, while, so, contractions, commas etc
in the second part of the assignment represent?
Hello, I came across a weird word from one of the given samples, which is "pain'-killin". Rrevious discussions mentioned that any words joined by one or two hyphens e.g. "one-of-a-kind" "seven-foot" are counted as a compound word so
1) does "pain'-...
Hello, I would want to make a point that based on my testing and research, compound words just means any words that are joined with one or more hyphens. But in the samples given, it seems that multiple-hyphenated words are not counted as compound wor...
Thanks for the clarification Want to ask if we can assume the input directory for common words would always have txt files (excluding directory with suffix .txt)?
Hello, just to take precaution, if I want to call the title case.py script provided in my program, should I assume that "title case.py" would always be the name of the called script?
Wanted to make sure because I'm planning to just call .py if the a...
Hello, I wanted to call the another script within the main code and I've read that the program would be functional if the script is within the same directory as the main code.
So how should I submit the assignments? Should I submit it as a folder tha...
Hi, I did the command that you hinted but it seems to not work against the given text files without outputting the error "illegal byte sequence".
What I did for precaution was type "cat -vet file command ..."
This led to the error, I found out ...
Would the program be tested against files with BOM characters (i.e. cat -vet file)? For my program, I've managed to remove non-sensible characters such as ' ' and ' '. But when I manually tested the program on cat -vet file, my results are affected...
Hi, want to clarify how would the textfiles directory input be tested?
e.g. if I named the directory "text files", and the marker types "textfiles", the program should inform the user that the given directory name is wrong right?
What I'm concerned a...
Hello, I want to ask if there would be penalisation if the submitted codes do not function properly due to different OS? Since I'm an online student and MacBook Pro is the only laptop that I have, I can't test my codes on a different OS, let alone th...
and to add another question, would the elapsed time be checked against the system output or the real time output? because my real time output greatly differs from the system output
Just to clarify, does 20 seconds mean 0m20. s as in the output or 0m0.020s? Since so far my code is functioning correctly but it takes around 0m0.060s. Would I be penalised in this case?
And also, I don't get how to preserve the 's when I try to output each word from the file, apparently the ' is recognised as a special character that prompts new inputs i.e. new input
To add to the previous question, what about words that are linked with "-" such as "well-known"? Should this case be counted as 2 distinct words or as one?
I think it would be more helpful to give the whole specification on what to be expected in the ...
Hi, I want to ask in general what kind of test cases would be applied against the submitted codes
e.g. are we expected to handle syntax errors such as "syntax error near unexpected token '('" if 1 '('?
or that the codes would be tested against th...
Hello, I want to know if a word followed by a punctuation e.g. "hello," should be considered as a different word from "hello"? Since it was mentioned that lower-case letters differ from their upper-case counterparts in the assignment, so should my ca...
So does it mean that for the input parameters for both parts of the assignments, I could leave the scripts case-sensitive? e.g. Afghanistan valid; afghanistan invalid
Thanks )
Hi, I want to ask about bin bash at the beginning of most of your demo scripts. What does it actually do and is it necessary to include that every time I write a script ( in coding sections for exam)? Thanks