Practicum 2 Description
A practicum is an in-lab, on-computer, timed test. The
activities are designed to be completed in 45 minutes or less, thus allowing
a significant amount of additional time for students during the class period
to be able to finish
in case of any eventuality. This is an open-book,
open-notebook activity; bring as much documentation to the lab
as you desire. You may refer to previously-written programs during
the practicum. Do NOT ask any other student for anything during the
exam or your score will be zero. If you have any questions, ask the
instructor. Your work will be graded during
class -- Practicum 2 is worth 50 points.
Practicum 2 Topics
You should be able to:
- Declare an object from a given class
- Instantiate a previously-declared object using the constructor method for the given class
- Call a method for an object
- Declare an array of objects from a given class
- Instantiate a previously-declared array of objects so that it has a specific number of elements
- Use a loop to instantiate each element in the array of objects using the constructor method for the given class
- Write a series of separate instantiation statements for separate elements in the array using the constructor method for the given class
- Write a method that uses a loop to perform the same processing for every element in the array of objects
- Write a method that uses a loop to test each element in the array of objects and perform some processing for those elements in the array that pass the test (in other words, those elements for which the test evaluates as true)