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
i need help

write a program that counts the number of occurrences of the string in the n-th Padovan string P(n).   program in java // aakash , suraj , prem sasi kumar kamaraj college

Need Professional Framework Coder with Video Coding Experience? Project Description: Professional Framework Coder with Video Coding experience. You must know API, Java, C++,

Why should we, as computing professionals, be interested within studying the social implications of our creations? This is important Because of remaining the track of money wis

Your first task is to implement the Movie class to store all the relevant information on a single DVD Movie, including its catalog number, title, year of release, rating, rental pe

Explain break statement in a loop ? A break statement exits a loop before an entry condition fails. For instance, in this variation on the CountWheat program an error messa

Explain Identifiers in Java ? Identifiers are the names of variables, classes, methods, packages and interfaces. Unlike literals they are not the things themselves, only ways o


Name Conflicts when importing packages It is possible which you will try to import a package which contains classes in which have the similar name as a class in your own source