RU beehive logo ITEC dept promo banner
ITEC 120
2010fall
ibarland

homeinfolectslabsexamshws
tutor/PIsObject120 + its docsjava.lang docsjava.util docs

hw03
if-else
max of 3

Part (a), due Sep.24 (Fri) by class

(15pts) On WebCT > assessments, complete the questions for hw03a. (Note how WebCT shows that you have one attempt and 30min to complete the questions after you start. There are 15 questions, similar in style to the hw02a-soln (which you can repeat as many times as you like, not for a grade, with no time limit). You will not submit any hardcopy.

Part (b), due Sep.27 (Mon) by class

(20pts) Turn in test cases, javadoc documentation, and a stub1 method for the functions below.
Turn in a hard copy, and attach your Max3.java to WebCT > assessments > hw03b.

Note that there are several different situations you want to test. Remember the mind-set: if somebody else's code passes your test but it still contains bugs, your test-cases are to blame (since they incorrectly vetted the code as being good)!

Your javadoc documentation should include @param and @returns for each function, and an overall comment for the class with an @author. You should check your work by looking closely at the documentation view (click in the upper-right of BlueJ window).

Part (c), due Sep.29 (Wed) by class

(15pts) Turn in a working version of the functions below (including your test cases from part (b)). (Your could should compile; if it doesn't, note that at the top of your paper.)
Turn in a hard copy, and attach your Max3.java to WebCT > assessments > hw03c.

Note that there are quite a few ways to solve this problem. Any approach using (only) the techniques from lecture/labs is fine. However, do not use techniques not mentioned in class (loops, arrays, lists, or re-assigning to a variable). You may use any functions from class Math, if you find them helpful.


Programming Problems

You'll write two functions:


1Do not submit code which correctly computes the answer -- only a compiling stub version!      

homeinfolectslabsexamshws
tutor/PIsObject120 + its docsjava.lang docsjava.util docs


©2010, Ian Barland, Radford University
Last modified 2010.Sep.23 (Thu)
Please mail any suggestions
(incl. typos, broken links)
to iba�rlandrad�ford.edu
Powered by PLT Scheme