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
Explain continue statement with example? It is sometimes essential to exit from the middle of a loop. Sometimes you'll need to begin over at the top of the loop. Sometimes you'

O/R mapping is well suited for read, change, write centric applications and not suited for write centric applications where data is seldom read. Although this was usually true of m

Explain Testing for Equality with equals? That's not what you expected. To contrast strings or any other kind of object you required to use the equals(Object o) techniques from

Specifications 1. readNumberOfEntries → This function will ask the user for a value greater than or equal to two. The function will keep asking values as long as the user prov

What is the problem along with Relational Database and what solution you could suggest for it? When we store object orientated data within RDBMS it required to translate in to

The last exercise of each assignment will be continuous from assignment to assignment and will have the goal of building an e-store website by the end of the course. Date & Tim

1. Write the code for the method that calculates the number of unique shapes for a binary search tree with n nodes. Use the formula  where b n is the number of possible sh

What is "My Personal Agent"? My personal agent is a computer programme which work automatically and have voice interface.

Differentiation between a Vector and an array . Explain in Brief about the pros and cons of both?

Add extra Features to exciting Minecraft plugin Project Description: I own a minecraft server and have a minigame plug-in but at the end of the game the map need to regenerat