Pages

PA5-APCSA-17-18

This assignment is due by 11:59 PM on Saturday, 25 November 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. Create the Java code described at https://errless.blogspot.com/2017/11/integer-expressions.html.

    Follow instructions 1a-c.
    Follow instructions 2a-c.
    Follow instructions 3a-d.

  3. Review your code for correctness and good style.

    Make sure your program compiles and executes without run-time errors.
    Make sure the first set of test cases for the AltMath.pow() methods pass.
    Make sure the second set of test cases for the AltMath.pow() methods pass.
    Optional: Try to get the third set of tests to pass. (This might be difficult.)
    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 IntegerExpressions.java and attach the file to a new email message.
    Use "Programming Assignment 5" 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 IntegerExpressions.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.

Hints

The following algorithm assumes that y (the exponent) is an integer.

And see the sample answers to the programming exercises for exam 5.