AP - Computer Science Fundamentals of JavaCh 4
Complete the
following exercises. Send all answers
to
me via email . Use complete sentences and proper grammar/spelling in
your answers. Where needed insert an image into your document. The
subject of the email should be apc fundamentals ch 4. Be
sure to keep a copy in your FirstClass account.
- Read Section 4.1 Addional
Operators: Complete exercises
1, 2.
- Read Section 4.2 Standard
Methods and Classes: Complete
exercises 1, 2. Define and give an example of syntax for:
overloading, pow, round, max, min sqrt, Math Class
Optional
Exercises. (
You should
to do the exercies below, if you did not not learn these concepts in
BlueJ or if you feel the need for additional practice.)
- Section 4.5 If /
If Else : Exercises 1-4
- Section 4.6 While
Loops : Exercises 1-5
- Section 4.7 For
Loops : Exercises 1-3
Not
optional:
- Read "Case Study: The Folly of
Gambling" on Page 112 -113. Use the pseudocode on the
bottom of pg. 113/ 114 as an outline for writing the code for the
requested program. The actual program is written on the following
pages. The best method of writing this program is to struggle
with your own version WITHOUT LOOKING AT THE SOLUTION until your
struggle is futile. Use the real code as needed to help you learn
how to code this exercise. (Hint: Since BlueJ does not
recoginize "TerminalIO, you will have to input the dollar amount in a
method parameter call.