Homework 3: Quiz 2 samples

The homework problems below will help you prepare for Quiz 2

Instructions

For full credit, you must complete and pass all the seven problems below; your score will be the score on the submitserver, where you will submit your code. There are additional sample problems below that are optional (will not be graded by the submitserver) that students requested in the past to help them study for this quiz.

  1. First, create a folder on your computer called Homework3.
  2. 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.
  3. Compile and run the templates on your computer to see how many test cases you passed. Do this for all six problems.

We recommend you complete one sample quiz at a time.

Required problems:

Optional extra practice examples (do not need to submit):

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 Homework3.tar:

tar -cvf Homework3.tar *.java

You will then upload this single Homework3.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).