<< Chapter < Page | Chapter >> Page > |
Figure 2 - Required output image for Prob02.
Discussion
The following is a non-exhaustive list of concepts that you need to understand along with knowledge and skills that you need to possess in order tosuccessfully write this programand/or understand the given solution in Prob03.java . Some of these items are general in nature and some are specific to the use of Ericson's multimedia library. I won't repeat the items listed above.Instead, I will concentrate on new concepts, knowledge, and skills not included in the above lists.
There are at least two alternative ways to write a program that will satisfy these requirements.
Both alternatives
Alternative 1
Alternative 2
Listing 3 - Write the Java application described below. |
---|
/*File Prob03 Copyright 2012 R.G.Baldwin Write a program named Prob03 that uses the class definition shown below and Ericson's media libraryalong with the image file named Prob03.jpg to produce the graphic output image shownin Figure 3 below. Click Prob03.java to download a Java source file containing the solution to this program. In addition to the output, your program must display your name and the other text shownbelow on the command-line screen: Display your name here.
Picture, filename Prob03.jpg height 274 width 365*********************************************************/
public class Prob03{//DO NOT MODIFY THE CODE IN THIS CLASS DEFINITION.
public static void main(String[]args){
Prob03Runner obj = new Prob03Runner();obj.run();
System.out.println(obj.getPicture());}//end main
}//end class Prob03//End program specifications. |
Figure 3 - Required output image for Prob03.
Discussion
The following is a non-exhaustive list of concepts that you need to understand along with knowledge and skills that you need to possess in order tosuccessfully write this programand/or understand the given solution in Prob04.java . Some of these items are general in nature and some are specific to the use of Ericson's multimedia library. I won't repeat the items listed above.Instead, I will concentrate on new concepts, knowledge, and skills not included in the above lists.
Notification Switch
Would you like to follow the 'Object-oriented programming (oop) with java' conversation and receive update notifications?