08 Jun writing a program in netbeans
Question
Outlab6 – Intergalactic Navigation
Due: submit by midnight, Apr 23
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 beltsoccur at random locations and are modeled as disks with a certainradius. 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
Required (20 pts)
• A working GUI-based Intergalactic Navigation application that finds the shortest effective distance path between the given start and end locations.
Optional (2 bonus pts)
• 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.
Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.
About Writedemy
We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.
How It Works
To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Are there Discounts?
All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.
