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

  Designing navigation system for point-and-click system

Design a navigation system or menu allows Access to act like point-and-click system. Write down some of the kinds of navigation.

  Convolving with user defined kernels

Convolving with User defined Kernels - Edit the original Kernel to make the output image shifted by 3 pixels to the left.

  Program with two functions to solve voting problem

Program with at least two functions to solve following problem. Members of board of small university are considering voting for pay increase for their 10 faculty members.

  Basic user interface-accept multi-level menu driven modules

Use any programming language or package to design basic User Interface which will be able to accept multi-level menu driven modules. Password should not be displayed.

  Write the code using recursive decent parser

Write the code, using recursive decent  parser and write the code, using a table-driven parser

  Write html form that prompts user to enter value

Write an HTML form that prompts the user to enter a value. In PHP, write a script to determine whether the value contains an integer , a decimal-place number.

  Write program for grocery that reads products data

Write a program for a grocery that reads products data and determine and display the product that has the highest price and the average price.

  Minimize the accessibility of classes and members

Why is this correct/when is this the right idea and Minimize the accessibility of classes and members

  Provide unoptimized-optimized prefix using recursive rule

Where the recursive rule uses concatenation of strings, so F2 is "ab", F3 is "aba". Note that the length of Fn is the nth Fibonacci number. Provide unoptimized and optimized ‘prefix' (fail) function for F7.

  Write gui program as subclass of jframe

Write a GUI program as subclass of JFrame. It should contain the following: Labels At the top (column headings): Meal, Quantity, Cost, At the left: label for each mea.

  Design a menu allow administrator to simulate transmission

Prepare a menu which allow administrator to simulate the transmission of information by manually typing in the login or logoff data. Whenever someone log in or out, the display should be updated.

  Create a user interface that uses the gridlayout manager

Define and compile the following two classes that will represent seats in a stadium and When creating a new Stadium, the constructor above will fill a 27x35 two-dimensional array of Seat objects, where each Seat has a number, row and section.

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