EECS1710 PRACTICE LABTEST 2

You have 80 minutes to complete this test.
This is a closed book test (you may use resources linked below).

Follow the instructions below carefully!!

Suggestion: DO PARTS 1(a-b),2(a-b) first - then attempt parts 1(c) and 2(c)

The test will begin at 11:40am and will end at 1pm (you will have a 5 min warning to submit your work)


RESOURCES


GETTING STARTED

  1. Start eclipse: click Activities, and click the last icon (left margin). In the search box, type "eclipse" and launch by clicking on the eclipse icon. Open eclipse in the default workspace!

  2. Download this project file (save to Downloads folder).

  3. Import the test project by doing the following:

  4. All of the files you need for this test should now appear in eclipse.

  5. Open a terminal. You will use this terminal to submit your work.

  6. Copy and paste the following command into the terminal and press enter:
    cd
    cd workspace/1710Test3

  7. Please attempt a submit on the files in this directory NOW!
    To do this, copy and paste the following command into the terminal and press enter:
    submit 1710 test3 Question*.java  (Do not submit - this is a practice test only)

    You should see the following message if submission occurred successfully:
    submitted:  Question01.java (61 bytes)
    submitted:  Question02.java (61 bytes)
    All files successfully submitted.
     
    
    During the test, please keep this terminal open, and use it to submit regularly. Do this by simply clicking into the open terminal window, press the up arrow key to find your previous submit command, and hit enter to re-submit.

    There will be a 5 min warning near the end of the test. Please re-submit immediately when you get that warning!!
    The lab machine will shutdown at the end of the alotted test time.


    ASIDE: To check the files that have been submitted, you may copy and paste the following command to your terminal and hit enter.
    submit -l 1710 test3 


QUESTIONS

Question 1 (15 marks)

From Eclipse, open the Question01.java file located inside the imported project. Follow the instructions in the main method!

There are 3 parts to this question. Parts (a) and (b) are simpler, so do them first! Budget about 12-13 mins per part. Do NOT do anything more than is asked, as you will run out of time.

Follow all instructions within the java file, make your edits, and run/test your code. Save and submit your work regularly.

Question 2 (15 marks)

From Eclipse, open the Question02.java file located inside the imported project. Follow the instructions in the main method!

There are 3 parts to this question. Parts (a) and (b) are simpler, so do them first! Budget about 12-13 mins per part. Do NOT do anything more than is asked, as you will run out of time.


SUBMISSION

To submit, again, copy and paste the following into the terminal window you opened earlier, and hit enter:

submit 1710 test3 Question*.java