Overview In this project you will be creating an applicatio

Overview In this project you will be creating an application to… OverviewIn this project you will be creating an application to compute the amount of time it takes an airplane to fly from one GPS location to another.  Required MaterialsLaptop with Internet ConnectionAWS Account with Cloud9 instance configuredDescription The program will begin by greeting the user with a quick description of the application’s function and then presenting the user with an enumerated list of options locations with GPS coordinates in latitude, longitude format in the following fashion:Miami Beach, FL, USA    25.793449    -80.139198Fargo, ND, USA    46.877186    -96.789803Idaho City, ID, USA     43.828850    -115.837860…You can find more lat/long GPS locations here: https://www.latlong.net/category/cities-236-15.html The program will then prompt the user to select a departure location by entering in the enumerated value associated with the desired location. The same list will be presented again with the exclusion of the previously selected location to allow the user to select a destination (However, there should not be a missing number from the list. For example, given the sample list above, if the departure was Miami, selection number 1, then when the list is presented again, Fargo should be listed as item 1.)Once the user has selected both a departure and a destination location, we will compute the distance to both of those locations. This distance cannot be computed using typical Euclidean distance between two points, as we are dealing with points on the surface of a sphere. This will require us to use the Haversine formula to calculate distance across the surface of the sphere. The Haversine formula  appears as follows:  where:f1, f2 are the latitude of point 1 and latitude of point 2,?1, ?2 are the longitude of point 1 and longitude of point 2.r is the radius of the sphered is the distance between the two pointsThe radius of the earth is approximately 3,958.8 mi.Once you have computed the distance between the two points, you can then approximate the speed of the plane to find the average flight time to get between the two points. The average passenger jet flies at a speed of somewhere between around 460-575 mph. Choose a value in this range to represent the speed of the jet and calculate the approximate time to fly between the two selected points. RequirementsThe code should be well formatted with proper indentation, variable names, and function structure.The user should be provided with a list of at least 10 lat/long formatted locations.The user input should not crash the program when options other than the numbers presented in the lists are entered. Instead, the user should be prompted to choose again from the selection.The haversine formula should be placed into its own separate function. The function should be structured as follows:double haversine(double lat1, double long1, double lat2, double long2, double radius);Where the value being returned is the haversine distance in miles between the two latitude/longitude points passed to the function (lat1/long1, lat2,long2).The flight time calculation should be functionalized as well. Construct a function calleddouble getFlightTime(double lat1, double long1, double lat2, double long2);Where the value returned is the flight time in hours.Your code should not include any “magic numbers”. That means no line of code includes a hardcoded values (with the exception of the 1’s and 2’s in the haversine formula). Any numbers used in your calculations should be associated with a const variable or a #define macro.The program should behave as described in the “description” section above Notes and Tips When encountering a list of related items, all with a name, latitude, and longitude values, it may be useful to use multiple arrays or vectors to handle this. So, consider making a separate array for names, latitude values, and longitude values, but keep all the data unified over a single index. For example, index 0 will contain “Miami” in the names list, “25.793449” in the latitude list, and “-80.139198” in the longitude list. (There are much better ways to handle this, but you will learn about that later in this course)To use functions such as sin or cos, you will need to include the math library. For a refresher and examples on how to use this library, see chapter 2.10 from the book.To avoid having your program crash from unexpected inputs (e.g., using cin to gather integer inputs and someone types in a string, such as “hello”), the best way is to always read in your input to a string and then parse out the integer from the string. To read an integer from a string, we will use the “atoi()” function from the stdlib.h library. This function takes a “c string” and will return the first integer value contained within that string. If no integer is present, the function will return a 0.You might not have heard of a “magic number” yet, but we will discuss them in class. For a great explanation on what they are and how to deal with them in C++ Project 2 Rubric CriteriaRatingsPts This criterion is linked to a Learning OutcomeThe code should be well formatted with proper indentation, variable names, and function structure. 5 ptsFull Marks 0 ptsNo Marks 5 pts  This criterion is linked to a Learning OutcomeThe user should be provided with a list of at least 10 lat/long formatted locations. 10 ptsFull Marks 0 ptsNo Marks 10 pts  This criterion is linked to a Learning OutcomeThe user input should not crash the program when options other than the numbers presented in the lists are entered. Instead, the user should be prompted to choose again from the selection. 10 ptsFull Marks 0 ptsNo Marks 10 pts  This criterion is linked to a Learning OutcomeThe haversine formula should be placed into its own separate function. The function should be structured as follows: double haversine(double lat1, double long1, double lat2, double long2, double radius); Where the value being returned is the haversine distance in miles between the two latitude/longitude points 10 ptsFull Marks 0 ptsNo Marks 10 pts  This criterion is linked to a Learning OutcomeThe flight time calculation should be functionalized as well. Contruct a function called double getFlightTime(double lat1, double long1, double lat2, double long2); Where the value returned is the flight time in hours. 10 ptsFull Marks 0 ptsNo Marks 10 pts  This criterion is linked to a Learning OutcomeYour code should not include any “magic numbers”. That means no line of code includes a hardcoded values (with the exception of the 1’s and 2’s in the haversine formula). Any numbers used in your calculations should be associated with a const variable or a #define macro. 5 ptsFull Marks 0 ptsNo Marks 5 pts  This criterion is linked to a Learning OutcomeThe program should behave as described in the “description” section above 50 ptsFull Marks 0 ptsNo Marks 50 pts  Total Points: 100Computer Science Engineering & Technology C++ Programming

How it works

  1. Paste your instructions in the instructions box. You can also attach an instructions file
  2. Select the writer category, deadline, education level and review the instructions 
  3. Make a payment for the order to be assignment to a writer
  4.  Download the paper after the writer uploads it 

Will the writer plagiarize my essay?

You will get a plagiarism-free paper and you can get an originality report upon request.

Is this service safe?

All the personal information is confidential and we have 100% safe payment methods. We also guarantee good grades

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more

Order your essay today and save 20% with the discount code ESSAYHELP