Find Jobs
Hire Freelancers

Basic C++ Project 2

$30-250 USD

Completed
Posted over 13 years ago

$30-250 USD

Paid on delivery
All the details are provided here: [login to view URL] UPDATE 1: There was an error in the description of the find function for assignment 4 (part 6). The original specification stated that the function should have a single string parameter. It should also have a parameter of the vector <City> to be searched. The paragraph discussing this should (and now does) read: To find the city you should write a function that searches a vector of cities for a city. T he function should have two parameters, a string representing the name of the city and the vector of cities to be searched . The function should return the index of the city, or -1 if the search is unsuccessful. UPDATE 2: A rather strange situation that may cause an error can occur when calculating the distance between two cities (actually the distance between a city and itself). This error occurs when the acos() function receives an input greater than 1 (which it should not do). Without going into the details of exactly what is going on (it's to do with double arithmetic) the acos() function may get inappropriate input when you calculate the distance between a city and itself . So for example, calculating the distance between Vancouver and Vancouver! In these cases the distance should (obviously) be 0. The easiest way of avoiding this error is to recognize that you are calculating the distance between a city and itself and just setting this distance to be 0, without using the spherical law of cosines formula. The simplest place to handle this is in the distance method of the City class. You can check to see if the latitude and the longitude of the calling object are the same as the parameter's latitude and longitude and then return 0.
Project ID: 761559

About the project

8 proposals
Remote project
Active 14 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Please check PMB, thanks.
$30 USD in 1 day
5.0 (35 reviews)
4.5
4.5
8 freelancers are bidding on average $70 USD for this job
User Avatar
hi, plz check pmb.
$40 USD in 2 days
4.5 (25 reviews)
4.6
4.6
User Avatar
Hi, please read inbox message.
$30 USD in 1 day
5.0 (13 reviews)
4.4
4.4
User Avatar
Hello! Please check PM for details. Thanks
$50 USD in 1 day
4.8 (21 reviews)
4.3
4.3
User Avatar
Hi, am the one who did the last assignment for you. Am ready to do this like the other one.
$40 USD in 1 day
4.7 (16 reviews)
3.4
3.4
User Avatar
hii see pmb please.
$80 USD in 1 day
4.9 (5 reviews)
3.0
3.0
User Avatar
Hello, please read the PM
$40 USD in 1 day
0.0 (1 review)
0.0
0.0
User Avatar
pleasure to work with u:)
$250 USD in 7 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of CANADA
BURNABY, Canada
5.0
8
Payment method verified
Member since Mar 18, 2010

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.