Homework 7: Quiz 4 samples
The homework problems below will help you prepare for Quiz 4
Instructions
For full credit, you must complete and pass all the problems below; your score will be the score on the submitserver, where you will submit your code.
- First, create a folder on your computer called
Homework7
. - Then, inside that folder, copy the templates linked below (i.e.
Assess2_2_Sample.java
) into the folder, and write your solutions in those templates. - Compile and run the templates on your computer to see how many test cases you passed. Do this for all problems.
We recommend you complete one sample quiz at a time.
Required problems:
- Count sum to ten
- Min and next min
- Sum ten beneath
- Sum ten right
- Create grid sums
- Flatten grid
- Average rows
- Generate pairs
- Multiply grids
- Multiply transpose
- Check sorted
- Sort array
- Clean array
Submission
When you are ready to submit your assignment, inside that folder type the following command, which will zip up all your java files into a tarfile called Homework7.tar
:
tar -cvf Homework7.tar *.java
You will then upload this single Homework7.tar
file to the submitserver for grading. Make sure you verify that your score on the submitserver is the score you expected; if not, you can look at the “Autograder output” on the submitserver for your error messages. If you need help with interpreting these, please reach out during office hours or on Ed.
Please make sure to submit your code early enough before the deadline so that if you need any last-minute help you can visit a TA or get a response from Ed (during normal business hours).