15-110 Sections M-Q / Fall 2009 / Quiz 6

2 Questions / 25 Minutes
Online Programming Quiz (Using a Compiler)
 

·        Unicode ‘A’ is 65, ‘a’ is 97, and ‘0’ is 48.
 

Before beginning, follow these steps:
 

* Get quiz6.zip

* unzip it

* run DrJava

* edit Quiz6.java with your name, andrewID, and section

* compile Quiz6.java and run it

* have the 3 unsolved problems (A, B, Bonus) on your screens

* Also, run Quiz6Demo.jar with the solutions

 

Then, follow these steps:

 

* Match the demo solutions closely, but...

* Do not worry about being pixel perfect, or to exactly match the timing.  Close is close enough.

* Part B is inspired by, but not identical to, the astroid problem. Use similar logic to solve it.

* No questions.

* No notes, no web access, no calculators, no books.  Nothing but you and the compiler and the code provided in quiz6.zip.

* 25 minutes.

* When completed, email the solutions (just your Quiz6.java file) to your CA, both as an attachment and pasted into the body of the email.

* Do not leave the room until you confirm that your CA has received your Java file.

* Do not to share or discuss any part of this with anyone until 5pm today (after everyone has taken the quiz).