GIDForums  

Go Back   GIDForums > Computer Programming Forums > Miscellaneous Programming Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 24-Jan-2008, 10:12
darkangel615 darkangel615 is offline
New Member
 
Join Date: Jan 2008
Posts: 1
darkangel615 is on a distinguished road
Exclamation

programming homework


I hate these freaking word problems! Can someone take a look and give me an idea on how to get started on this? Please?!

plab.cs.astate.edu/material/12011113894797815d783d3/findPosition.pdf
  #2  
Old 24-Jan-2008, 11:45
fakepoo fakepoo is offline
Regular Member
 
Join Date: Oct 2007
Posts: 761
fakepoo is a jewel in the roughfakepoo is a jewel in the roughfakepoo is a jewel in the rough

Re: programming homework


Define your variables (things that you know):
Code:
Left: x0 = 0 lon0 = -89.857178° Right: x1 = 511 lon1 = -89.835205° Bottom: y0 = 0 lat0 = 36.244273° Top: y1 = 511 lat1 = 36.261992° Point: xp = 382 yp = 387 lonp = ? latp = ?

To find the X-coordinate (lonp):
1) Start by calculating the ratio of the coordinate with respect to the entire image. ( 0.0 for the very far left, 1.0 for the very far right ):

Code:
x_ratio = (xp-x0)/(x1-x0)

2) Then get lonp by:

Code:
x_ratio = (lonp-lon0)/(lon1-lon0)
Note that you know all of the variables except lonp so you should be able to solve for it using basic algebra skills.


I'll leave it to you to figure out how to calculate the latitude.
 
 

Recent GIDBlogInstall Adobe Flash - Without Administrator Rights by LocalTech

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Input stream question earachefl C++ Forum 17 26-Sep-2007 20:21
New to programming (Homework Help) fishguts Miscellaneous Programming Forum 1 12-Sep-2007 10:50
Looking for opinions crystalattice Miscellaneous Programming Forum 6 27-Sep-2006 21:02
printer / font color / windows programming nicolas_qc MS Visual C++ / MFC Forum 0 03-Jan-2006 23:13
GUI programming crystalattice C++ Forum 5 14-Sep-2004 12:17

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 08:03.


vBulletin, Copyright © 2000 - 2010, Jelsoft Enterprises Ltd.