Provide a graphical view of the planets and bases

Assignment Help Programming Languages
Reference no: EM13311440

Objective

Starfleet Federation has contracted you to develop a new navigational system for the fleet. Ships must travel using known routes that avoid asteroid belts. For simplicity, we will assume that space is flat and that the locations of planets and bases are simply 2D coordinates in the range [0.0, 1000.0].

Due to distortions in the time-space continuum, the time it takes to travel between two points is not directly proportional to the distance between them; there is a random multiplier that provides the effective distance:

Effective_distance(x,y) = R * Actual_Distance(x,y)

where R is a random real number in the interval [0.5, 5.0]. The effective distance between each pair of points should be precomputed.

Asteroid belts occur at random locations and are modeled as disks with a certain radius. You may assume that there are 10 asteroid belts in random locations with random radii in the range [50,100]. Ships must not go through asteroid belts!

Assume that there are 25 planets and 10 bases that occur in random locations (but not inside an asteroid belt). Each planet or base should have a name, e.g. "Planet Nebulon", "Tranquility Base", etc.

Your program should create the random asteroid belt and base and planet locations and then prompt the user for a start and final destination (either bases or planets).
It should then provide navigation directions in the following form:
0. Starting at: Planet Nebulon
1. Go to: Tranquility Base, effective distance 56.4, heading = 78.2 degrees
2. Go to: Planet Bubblegum, effective distance 202.8, heading = 104.2 degrees
3. Go to: Base Centrale, effective distance 245.9, heading = 240.6 degrees
4. Arrive at final destination, Base Centrale

• A working GUI-based Intergalactic Navigation application that finds the
shortest effective distance path between the given start and end locations.

Optional
• Provide a graphical view of the planets and bases, and meteorite fields and display the requested path from start to destination.

What to Turn In
Use D2L to submit your project (in Netbeans). Running the main method in the project should launch your program.

Reference no: EM13311440

Questions Cloud

Find the average pressure on the board at the tip of pin : A person pushes with a force of 10.0 N on a stick pin to try to push it into a bulletin board. find the average pressure (in Pascals) on the board at the tip of the pin
Define social responsibility-consumer protection laws : Define social responsibility. List the three main reasons for government regulation of businesses. Explain the purpose of consumer protection laws. Define organizational ethics and briefly explain their importance. Identify and describe the six princ..
Abc company bonds have 4 years left to maturity : ABC company bonds have 4 years left to maturity. Interest is paid annually, and the bonds have a $1,000 par value and a coupon rate of 9%. What is the yield to maturity at a current market price of (1) $829 and (2) $1,104?
Find the escape velocity for an object : If the mass of Jupiter is 1.8 x 10^27 kg, then find the escape velocity for an object launched from the surface of Jupiter
Provide a graphical view of the planets and bases : Intergalactic Navigation. Provide a graphical view of the planets and bases, and meteorite fields and display the requested path from start to destination.
An apr with semiannual compounding : a. What is the bond's yield to maturity (expressed as an APR with semiannual compounding)?
Payment and financing : "Payment and Financing" Please respond to the following: - Determine whether or not you agree with the following. Since a small business may need progress payments, which may be cumbersome to receive due to the bureaucratic requirements, and a large ..
Explain dimethyl sulfoxide deuterium oxide acetone : Which of the following solvents would be good to use for 1H NMR analyses? (Check all that apply) acetone-d6 chloroform-d dimethyl sulfoxide deuterium oxide acetone
Government regulators use the term : Government regulators use the term

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd