<< Chapter < Page Chapter >> Page >

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 you need to possess in order tosuccessfully 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 multimedia library. I won't repeat theitems that were listed with the programs in Practice Group 1 . Instead, I will concentrate on new concepts, knowledge, and skills not included in previouslists.

Listing 1 - Write the Java application described below.

/*File Prob01 Copyright 2012 R.G.Baldwin

Write a program named Prob01 that uses the class definition shown below and Ericson's media libraryalong with the image file named Prob01.jpg to produce the graphic output image shown in Figure 1 below.

Click Prob01.java to download a Java source file containing the solutionto this program.

In addition to the output image, your program must display your name and the othertext shown below on the command-line screen:

Display your name here. Picture, filename Prob01.jpg height 240 width 320*********************************************************/ public class Prob01{//DO NOT MODIFY THE CODE IN THIS CLASS DEFINITION. public static void main(String[]args){ Picture pic = new Prob01Runner().run();System.out.println(pic); }//end main method}//end class Prob01 //End program specifications.

Figure 1 - Required output image for Prob01.

Missing image

Program 2

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 program and/or understand the given solution in Prob02.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 theitems that were listed with the programs in Practice Group 1 or earlier programs in this practice group. Instead, Iwill concentrate on new concepts, knowledge, and skills not included in previous lists.

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




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.

Notification Switch

Would you like to follow the 'Object-oriented programming (oop) with java' conversation and receive update notifications?

Ask