This repo contains solutions to lab questions that have been covered in the course and my class (Lab Group B01 and B05). Of course, solutions will only be released once covered in class.
Solutions labelled "-Setter" were written by the question setters themselves.
Solutions labelled "-Fred" were written by myself.
Solution styles are good to follow. Please by mindful that modularity, appropriate variable naming, comments such as pre/post conditions are not always present.
Graded Lab Criteria. Please view Lab08-Median.java for example on expectations.
Criteria | Description |
---|---|
Modularity | Add some helper methods to abstract the logic/functionality |
PrePost Conditions | Pre & post condition for all your helper methods |
Meaningful Comments | Describe code chunks, do not explain each line |
Meaningful Identifiers | Do not name variables "n", "arr", give meaningful names |
Indentation | Alignment + make sure your tabs are not actually spaces |
Lab02 - https://youtu.be/nEqq0PrldrI
Lab03 - https://youtu.be/QouXXyVf5Hs
lab04 - https://youtu.be/ln6E9rv4MB4
lab05 - https://youtu.be/WRNnAbeZQ24
lab06 - https://youtu.be/CARa84ERlHM
lab07 - https://youtu.be/gQXM06Isuw8
lab08 - https://youtu.be/NUc-QrjAuMw
lab09 - https://youtu.be/NFpiZC-2VO0, Retransmission Re-recording - https://youtu.be/I4IP7slUtwM
lab10 - https://youtu.be/HPEtbvxWAa8
lab11 - https://youtu.be/EM6Lm-g0lV4
CS2040 AY2021 SEM1