It's UWAweek 26 (mid-year break)


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 439 articles.
Currently 8 other people reading this forum.

 UWA week 20 (1st semester, week 11) ↓
SVG not supported

Login to reply

2:08pm Thu 16th May, Michael W.

Hi Boya, Good questions. I'll reply to each below it. "Boya Zhang" <24*2*2*7@s*u*e*t*u*a*e*u*a*> wrote:
> Hi Professor, > > I have some questions regarding the assignment: > > 1. For the requirement to report any lines that do not have the same number of cells (with cells allowed to be empty), your previous answer mentioned printing an error message to stderr. Do we also need to identify the line number and specify which file it belongs to?
The trick with all of these is to place yourself in the role of a user of the system. What will they expect? What information will be useful?
> > 2. Regarding the output for script 1, am I allowed to sort the data? I noticed that in sample2, the data is not sorted alphabetically by country. I assume that if I use a join operation, the file needs to be sorted first. Can we sort the data based on the country?
As far as I can see, the country data (ie data that has a country code) is sorted by country code, and then by year.
> > 3. Also, how should we determine whether the output from script 1 is successful? Is it based on the total number of cleaned data records or some other criteria?
If the data was clean to start with, the number of "cleaned" records should be zero. The only criterion is whether the cleaned data is actually clean, and if actually cleaned, that you've not also disposed of perfectly correct data. Cheers MichaelW 👨‍🎨
> > Thank you for your guidance.

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