Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Programming Language Expert

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.

Programming Language, Programming

  • Category:- Programming Language
  • Reference No.:- M9890755
  • Price:- $40

Priced at Now at $40, Verified Solution

Have any Question?


Related Questions in Programming Language

Assignment task -q1 a the fibonacci numbers are the numbers

Assignment Task - Q1. (a) The Fibonacci numbers are the numbers in the following integer sequence, called the Fibonacci sequence, and are characterised by the fact that every number after the first two is the sum of the ...

Assignment - haskell program for regular expression

Assignment - Haskell Program for Regular Expression Matching Your assignment is to modify the slowgrep.hs Haskell program presented in class and the online notes, according to the instructions below. You may carry out th ...

Extend the adworks applicationi add dialogs to allow the

Extend the AdWorks application I. Add Dialogs to allow the user to Add, Edit, Read and Delete a Customer and refresh the view accordingly. 1. The user should be able to select a specific customer from the DataGrid and cl ...

Task arrays and structsoverviewin this task you will

Task: Arrays and Structs Overview In this task you will continue to work on the knight database to help Camelot keep track of all of their knights. We can now add a kingdom struct to help work with and manage all of the ...

Question 1 what is a computer program what is structured

Question: 1. What is a Computer program? What is structured programming? 2. What is modular programming? Why we use it? 3. Please evaluate Sin (x) by infinite series. Then write an algorithm to implement it with up to th ...

Assignment - proposal literature review research method1

Assignment - Proposal, Literature Review, Research Method 1. Abstract - Summary of the knowledge gap: problems of the existing research - Aim of the research, summary of what this project is to achieve - Summary of the a ...

Background informationthis assignment tests your

Background Information This assignment tests your understanding of and ability to apply the programming concepts we have covered throughout the unit. The concepts covered in the second half of the unit build upon the fun ...

Question 1 what is hadoop explaining hadoop 2 what is

Question: 1. What is Hadoop (Explaining Hadoop) ? 2. What is HDFS? 3. What is YARN (Yet Another Resource Negotiator)? The response must be typed, single spaced, must be in times new roman font (size 12) and must follow t ...

1 write a function named check that has three parameters

1. Write a function named check () that has three parameters. The first parameter should accept an integer number, andthe second and third parameters should accept a double-precision number. The function body should just ...

Structs and enumsoverviewin this task you will create a

Structs and Enums Overview In this task you will create a knight database to help Camelot keep track of all of their knights. Instructions Lets get started. 1. What the topic 5 videos, these will guide you through buildi ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As