-
Home
- Object-oriented programming
- Itse 2321 object-oriented
- Practice programs
- Java oop: itse 2321 practice
In order to write this or any other Java program of substance, you will need to
know
how to use the
Java Platform, Standard Edition API Specification as well as the documentation for the
Guzdial-Ericson Multimedia Class Library .
You may find other useful hints in my online tutorials and slides for this
course as well as in the YouTube video lectures for this course.
Testing Your Programs
You can compile and execute your program by following the instructions given
at
Java OOP: The Guzdial-Ericson
Multimedia Class Library .
Program Specifications
Program 1
Discussion
The following is a non-exhaustive list of concepts that you need to
understand along with knowledge and skills that youneed to possess in order to successfully write this program and/or understand
the given solution in
Prob01.java . Some of these items
are general in nature and some are specific to the use of Ericson's multimedialibrary.
- How to design and implement an algorithm that will transform
Prob01.jpg into the image
shown in
Figure 1 .
- How to incorporate and use an
external class library in addition to the standard Java class library.
- The
general syntax for a Java application
(not a
Java applet).
- How to
write ,
compile, and execute a
Java application that uses the Guzdial-Ericson Multimedia Class Library.
- How to use the standard
print and
println methods of the
System class to display text on
the command-line screen.
- The effect of
overridden versions of the
toString method on the
print and
println methods
- Knowledge of the need for and use of
import directives .
- How to
define and
instantiate an object of a new class
named
Prob01Runner .
- Knowledge of the difference between
local variables and
instance variables .
- How to declare local
reference variables of a given type.
- How to save the
Prob01Runner object's reference in a
reference variable of type
Prob01Runner named
obj .
-
How to call the
run method,
(which
controls the major behavior of the program) , on the
Prob01Runner object's reference.
- How to use
private ,
public ,
protected , and
package-private access modifiers.
- How to declare and use
reference variables versus
primitive variables .
- How to select the appropriate
overloaded
constructors in order to i
nstantiate objects of Ericson's
World ,
Turtle , and
Picture classes.
- How to define a
constructor for a class.
- How to write
accessor methods in your new class
definition that return references to
Turtle and
World objects.
- How and why to call
accessor methods on objects.
- How to instantiate
anonymous objects .
- How to
replace the default white
Picture object encapsulated in a
World object with a new and different
Picture object encapsulating the contents of a local image file.
- How to call a method on a
Picture object to
write
text onto the
Picture object.
- How to
call a variety of methods on objects of
the
Turtle class to cause the
Turtle objects in
your world to do things, such as move forward, change their colors, etc.
- How pictures are composed of images.
- How images are composed of pixels.
- How pixels are composed of red, green, and blue color values.
- How objects can be used to represent pictures, images, and pixels.
- How methods can be called on those objects to manipulate the red, green,
and blue color values.
Questions & Answers
A golfer on a fairway is 70 m away from the green, which sits below the level of the fairway by 20 m. If the golfer hits the ball at an angle of 40° with an initial speed of 20 m/s, how close to the green does she come?
A mouse of mass 200 g falls 100 m down a vertical mine shaft and lands at the bottom with a speed of 8.0 m/s. During its fall, how much work is done on the mouse by air resistance
Can you compute that for me. Ty
Jude
what is the dimension formula of energy?
Chemistry is a branch of science that deals with the study of matter,it composition,it structure and the changes it undergoes
Adjei
please, I'm a physics student and I need help in physics
Adjanou
chemistry could also be understood like the sexual attraction/repulsion of the male and female elements. the reaction varies depending on the energy differences of each given gender. + masculine -female.
Pedro
A ball is thrown straight up.it passes a 2.0m high window 7.50 m off the ground on it path up and takes 1.30 s to go past the window.what was the ball initial velocity
2. A sled plus passenger with total mass 50 kg is pulled 20 m across the snow (0.20) at constant velocity by a force directed 25° above the horizontal. Calculate (a) the work of the applied force, (b) the work of friction, and (c) the total work.
you have been hired as an espert witness in a court case involving an automobile accident. the accident involved car A of mass 1500kg which crashed into stationary car B of mass 1100kg. the driver of car A applied his brakes 15 m before he skidded and crashed into car B. after the collision, car A s
can someone explain to me, an ignorant high school student, why the trend of the graph doesn't follow the fact that the higher frequency a sound wave is, the more power it is, hence, making me think the phons output would follow this general trend?
Nevermind i just realied that the graph is the phons output for a person with normal hearing and not just the phons output of the sound waves power, I should read the entire thing next time
Joseph
Follow up question, does anyone know where I can find a graph that accuretly depicts the actual relative "power" output of sound over its frequency instead of just humans hearing
Joseph
"Generation of electrical energy from sound energy | IEEE Conference Publication | IEEE Xplore" ***ieeexplore.ieee.org/document/7150687?reload=true
Ryan
what are the types of wave
Maurice
fine, how about you?
Mohammed
A string is 3.00 m long with a mass of 5.00 g. The string is held taut with a tension of 500.00 N applied to the string. A pulse is sent down the string. How long does it take the pulse to travel the 3.00 m of the string?
Who can show me the full solution in this problem?
Got questions? Join the online conversation and get instant answers!
Source:
OpenStax, Object-oriented programming (oop) with java. OpenStax CNX. Jun 29, 2016 Download for free at https://legacy.cnx.org/content/col11441/1.201
Google Play and the Google Play logo are trademarks of Google Inc.