Demonstrate your ability to ability to use java data , JAVA Programming

Purpose

Demonstrate your ability to ability to use Java data and control structures. Draw with the aid of conditionals and loops.

Background Thought

A note on comments: self-documenting code is a code feature to be striven for. The use of identifier names that have meaning within the context of the problems being solved goes a long way in this direction. Code that is not self-documenting for whatever reasons may be made clearer by appropriate comments inserted in the code.

"The most difficult feature of any programming language to master is the comment." - disgruntled maintenance programmer

"Where the comment and the code disagree, both should be assumed to be in error" - experienced maintenance programmer

Instructions/Design

Write a Java GUI application that displays a city skyline. Your program will contain three classes:

Note: Use the Splat example from Chapter 4; and the Bullseye and Boxes examples from Chapter 5 as guides.

1) A class called Building that represents a graphical depiction of a single building. Allow the parameters to the constructor to specify the building's width and height. You may choose the color of the building. Put this into a file named

Building.java

2) A class called SkylinePanel that instantiates and draws a skyline of building. Put this into a file named

SkylinePanel.java

3) A class called RandomSkyline that contains the main method and does not deal with building details. Instead, the main method sets up the frame for the program and uses it to display an instantiation of the SkylinePanel class. Put this into a file named

RandomSkyline.java

**Class details are given below

4) Additionally, you'll need to name your city. Use your own name(s).

Posted Date: 4/2/2013 3:03:17 AM | Location : United States







Related Discussions:- Demonstrate your ability to ability to use java data , Assignment Help, Ask Question on Demonstrate your ability to ability to use java data , Get Answer, Expert's Help, Demonstrate your ability to ability to use java data Discussions

Write discussion on Demonstrate your ability to ability to use java data
Your posts are moderated
Related Questions
what will be the logic? in C program #include float start_point, /* GLOBAL VARIABLES */ end_point, total_area; int numtraps; m

How are this () and super() used with constructors? this() Constructors: is used to pointing current class instance. Can be used with methods or variables. Used to call

differende between action listener and event listener

Project Description: Two co-founders are in search of a developer to join us to launch a tech startup. We have experience at fortune 500 companies, elite consulting firms, etc.,

699906626330444777707776662233777 decoding program

Distributed / Network Oriented Java is network friendly -- both in its portable, threaded nature, and since common networking operations are built-in to the Java libraries.

Define testing with respect to programming? Testing is the process through that we try to determine the presence defects in a program. Testing is an significant step in soft

file download from server using applet and tomcat server

Differentiate uni-Processor OS from Multi-Processor OS? Uni-processor OS : Uni-processor OS'es is designed to schedule tasks on a single uPs just whereas Multiprocessor O

A device for validating the data a user inputs to a JavaServer Faces UI component.