Objectives: |
At the conclusion of
this lab students should:
- be able to format
their output numeric values using
DecimalFormat and NumberFormat objects
- use functions of the
Math class to manipulate numbers.
- create and use a method that he/she has created
|
Background: |
This lab will have
students work with formatting and
mathematical operations in Java. |
New Terms: |
- instantiate
- The
process of
creating a new instance of an class.
- object
- A single instance of a
class.
- method
- A named block of code that is executed by caling the name of the method and passing in the required argument values.
- parameter
- A variable that receives a value in a method header.
- argument
- A value that is passed to a called method.
- return statement
- A statement that returns a value from a method.
|
Materials: |
Use these two "starter
programs".
DeliFormat.java
Distance.java
|
Prerequisites: |
No prerequisites to this
lab. |
Acknowledgement:: |
Lab adapted from a lab
by Mike Norton and Lewis and Loftus. |
Turning in
your work: |
See your instructor for
specific instructions for turning in your work
or getting credit for this lab. |