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

  Void function to display in nicely formated way

Write a void function display_exer() that display in a nicely formated way the eat members of an exerclass object. Pass the object to the function by reference.

  Super call for constructor to allot value of attribute

We have given a super call, which does some work of constructor. Your code must complete constructor by allotting the value of g to gpa attribute.

  Write the program to model simple calculator

Write the program to model the simple calculator. Each data line must consist of next operation to be performed from list below and right operand.

  Program to return the array index having largest savings

Write down function also called from main module - this function will find out and return array index containing the largest savings.

  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 .

  Create a print stream object using dos

Create a PrintStream object using dos and assign the resulting reference to ps, a PrintStream variable that has already been declared.

  Benefits of validating the forms

When you are collecting data, you need to consider what data to collect, why you are collecting the data. What are other benefits of validating your forms? How are forms validated? What are some form validation best practices?

  Write computer code to compute determinant of matrix

Write computer code to compute the determinant of matrix for all n between 2 and 9. Use factoriadic numbers to create all permutations.

  Design gui application with jframe to enter series of names

Design  GUI application with JFrame which permits user to enter series of friends' names and phone numbers. Each time user clicks the button, data entered must be written to sequential access file.

  Explain some ways tables can be used on web page

Tables are one of the most useful page layout tools available to web designers. Explain some ways tables can be used on a web page. Elaborate on other ways to achieve the same look.

  Create a simple shell

Create a simple shell. Basically your shell should read the line from standard input, parse the line with command and arguments, and operate the command with arguments.

  Write functions to implement split-mergesort for files

Write functions to implement the split, merge, and mergesort algorithms for files. Also, write driver programs to test the given functions.

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