|
home—info—lects—labs—exams—hws
tutor/PIs—breeze (snow day)
Object120 + its docs—java.lang docs—java.util docs
Today (Tue) and Thurs we will complete the lab below.
Your goal for today is to
(a) understand the problem,
(b) complete test-cases for
Do not start writing a function body before you have finished test cases for that function! We will not help you with writing function-bodies unless we see several tests for it first.
We will also go through the creation of one test case for
Work on today's lab with a partner.
You can write the following two-to-three methods in a class named, say,
If you sell an item on eBay, you are charged a fee. That total, overall fee is comprised of several parts:
Write a function
Holy Smokes! Computing the overall fee has several parts; the part computing the final value fee is a sizeable task in itself!
We will break this task into its own sub-function,
which
Make test cases, signature, javadoc, and stub for
Hint: You can write the body oftotalEBayFee very easily once you can usecomputeFVFee .
home—info—lects—labs—exams—hws
tutor/PIs—breeze (snow day)
Object120 + its docs—java.lang docs—java.util docs
©2012, Ian Barland, Radford University Last modified 2012.Sep.25 (Tue) |
Please mail any suggestions (incl. typos, broken links) to ibarlandradford.edu |