#1  
5th November 2011, 12:59 PM
Unregistered
Guest
 
Posts: n/a

How can we develop a code in PHP or JAVA to calculate the distance between photographer and the destination?


Hey guys .... This is a interesting topic .Try to prepare a code either in php or java which will tell us distance between photographer and destination .Here destination point is that you are going to capture .Try to solve it using code .




  #2  
15th June 2012, 12:55 PM
karthu
Senior Member+
 
Join Date: Jun 2010
Location: trivandrum
Posts: 757
Default Re: How can we develop a code in PHP or JAVA to calculate the distance between photographer and the destination?

hi
You have posted an interesting question.
I have suggested an answer for you.
The below function returns the distance between destination and photographer.

public double dist(point p,point q)
{
double dx=p.x-q.x;
double dy=p.y-q.y;
double d=math.sqrt(pow(dx,2)+pow(dy,2));
return d;
}
Do you have any question? or have anything to say?



Related Topics:

Thread Replies Last Post
Is Distance Course at IGNOU approved by AICTE? Will I be eligible for lecturer post in engineering colleges after finishing MBA distance at IGNOU? Can I do Ph.D in Management after MBA distance from IGNOU? 51 4th March 2021 06:41 PM
Can I do Ph.D. from Burdwan University in distance mode after distance MBA in marketing frrom SMU? 49 22nd June 2016 03:10 PM
Why M.Phil in Environmental Science(Distance) is not allowed in non distance institute for Ph.D for distance? 4 6th February 2016 07:44 PM
Is it possible to do Ph.D in Chemistry in distance? List of universities offering courses in distance mode? 18 14th January 2016 12:10 AM
Procedure to do Ph.D after doing MBA(Finance)? Difference between distance and regular Ph.D? Duration for distance course completion? 6 31st July 2015 11:32 PM



Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
vBulletin Optimisation by vB Optimise.
Please also check: