Pages

PA6-APCSA-17-18

This assignment is due by 11:59 PM on Saturday, 2 December 2017.

  1. Follow the instructions on this page carefully.

    Print a hard-copy of this page.
    Read all of these instructions before writing any code.
    Check off the items in this checklist as you complete them.

  2. Do the Java coding exercise described at http://scribbledecobble.blogspot.com/2017/11/fruit-basket-turnover.html.

    Change or add Java code as described in the comments.

  3. Review your code for correctness and good style.

    Make sure your program compiles and executes without run-time errors.
    Check your work using the buttons in the Expected Output section.
    Make sure your code indentation and use of curly braces matches the style of the code provided.

  4. To avoid using extensions or being penalized, email your work to Mr. Spurgeon on or before the due date.

    Put your code in a text file named KnuthShuffle.java and attach the file to a new email message.
    Use "Programming Assignment 6" as the subject of your email message.
    Include your first and last names in the body of the email message.
    Double check to make sure the code in the file you submit compiles and executes without run-time errors.
    Send the email to jspurgeon@vcstudent.org.

  5. Submit hard-copies to be graded.

    Print your source code and the output of executing KnuthShuffle.main().
    Attach (staple) the source code and output listings to this page.
    Put your last and first names in the upper right-hand corner of this page.
    Check this list item to indicate that you have done your own work.
    Cite your sources (especially any help you received) below and/or on the back of this page.
    Turn in your hard-copies to Mr. Spurgeon.

Hint

Study the Fruit Basket Turnover (Algorithm P) demo.