3 Replies - 6292 Views - Last Post: 31 March 2010 - 02:03 PM Rate Topic: ***-- 2 Votes

#1 ThisGirly  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 28
  • Joined: 23-January 10

Air Traffic Control Simulation

Posted 29 March 2010 - 09:33 PM

I seriously need help with this app I'm working on. The app should simulate air traffic control and is described in specific detail in Java How to Program eighth edition book Pg. 372 ch.8. If anyone has ever worked this problem or seen it somewhere else and can help me out I will greatly appreciate it!!

Aircraft.java
 
package edu.cis.ATC;

public class Aircraft 
{
	//state variables
	private int altitute; //in feet
	private int groundSpeed; //in knots	
}



Airport.java
package edu.cis.ATC;

public class Airport 
{
	//this class presently has a default constructor, 
	//can you see it?
	private String ICAO;
	private String METAR;
	
	public String toString()
	{
		return "Look, I have a value!";
		
	}
	
}



Flight.java
package edu.cis.ATC;

public class Airport 
{
	//this class presently has a default constructor, 
	//can you see it?
	private String ICAO;
	private String METAR;
	
	public String toString()
	{
		return "Look, I have a value!";
		
	}
	
}



Is This A Good Question/Topic? 0
  • +

Replies To: Air Traffic Control Simulation

#2 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1639
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Air Traffic Control Simulation

Posted 29 March 2010 - 09:43 PM

Are you receiving any errors? Does this code not work that way you intended it? When asking for help there are a couple items that are vital in order for someone to properly help you:


  • Post the code you're having problems with (DONE)
  • Post the exact error you're receiving, if you are receiving one
  • If no error explain what the code is doing versus what you want it to do
  • Post your question in the body of your post, not the description field

Was This Post Helpful? 0
  • +
  • -

#3 ThisGirly  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 28
  • Joined: 23-January 10

Re: Air Traffic Control Simulation

Posted 30 March 2010 - 11:09 AM

Well I really just need guidance on how to tackle this simulation and set it up so I can produce more code from there. I was just also interested if anyone has worked this problem or seen it before and had any suggestions on what the best way to solve it would be. :)
Was This Post Helpful? 0
  • +
  • -

#4 ThisGirly  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 28
  • Joined: 23-January 10

Re: Air Traffic Control Simulation

Posted 31 March 2010 - 02:03 PM

Any advice will greatly help..
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1