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


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


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

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

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

**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
Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b.

I need Java expert with tomcat tuning experience Project Description: Require a Java expert to fix memory issues with tomcat. Skills required: Java, Apache

What are Commonsense Guidelines to prevent viruses? Discuss about Antivirus as well. Commonsense Guidelines to avoid viruses are as follows: 1. Do not open attachment of unwant

Very frequently when you write code, you desire to perform distinct actions for different decisions. You can employ conditional statements in your code to do this. In JavaScript

AOP Alliance is an open-source project whose goal is to promote adoption of AOP and interoperability between different AOP implementations by describing a common set of interfaces

Write the JavaScript code for the Function SumOddNumbers(maxNumber) in which can add non-negative odd numbers up to maxNumber and return their sum. Java Script Code

EJB 2.x is broadly adopted server side component architecture for J2EE. 1. EJB is a remote, distributed multi-tier system and allows protocols like IIOP, JRMP, and HTTP etc.

Why uploading a web page is important? Describe in 2 - 3 lines? Through only uploading webpage we could place our data so that another can reach up to what we have loaded. Uplo

Java says write once, run anywhere . In which ways this isn't quite applicable ?

Finding an Applet's Size When running inside a web browser the size of an applet is set through the height and width attributes and cannot be changed by the applet. Several app