Add to Favorites    Make Home Page 5538 Online  
 Language Categories  
 Our Services  

Home » ASP Home » Math Home » Nautical/Flight Functions

A D V E R T I S E M E N T

Search Projects & Source Codes:

Title Nautical/Flight Functions
Description The Nautical/Flight functions perform various calculations useful for planning
trips. The definitions and arguments of each function is below.

miles per hour to knots
-----------------------
function name: MPHToKt
purpose: converts miles per hour to knots
arguments:
mph
miles per hour as double
returns:
double


knots to miles per hour
-----------------------
function name: KtToMPH
purpose: converts knots to miles per hour
arguments:
knots
knots as double
returns:
double


miles to nautical miles
-----------------------
function name: miToNautMi
purpose: converts miles to nautical miles
arguments:
miles
miles as double
returns:
double


nautical miles to miles
-----------------------
function name: nautMiToMi
purpose: converts nautical miles to miles
arguments:
nauticalmiles
nautical miles as double
returns:
double


flight time in minutes
-----------------------
function name: minsInFlight
purpose: calculates total flight time in minutes
arguments:
nauticalmiles
nautical miles to travel as double
knots
air speed in knots as double
returns:
double


nautical miles flown
-----------------------
function name: nautMiFlown
purpose: calculates the nautical miles flown
arguments:
knots
air speed in knots as double
minutes
minutes elapsed as double
returns:
double


average speed in knots
-----------------------
function name: ktSpeed
purpose: calculates the average speed in knots
arguments:
nauticalmiles
nautical miles travelled as double
minutes
minutes elapsed as double
returns:
double


hours to minutes
-----------------------
function name: hrMins
purpose: converts hours to minutes
arguments:
hour
hours as double
returns:
double


seconds to minutes
-----------------------
function name: sdMins
purpose: converts seconds to minutes
arguments:
seconds
seconds as double
returns:
double


gallons of fuel needed
-----------------------
function name: galFuel
purpose: calculates the minimum number of gallons of fuel needed
for a given trip time.
arguments:
minutes
minutes as double
gallonsPerHour
gallons per hour consumed by craft as double
returns:
double
Category ASP » Math
Hits 380978
Code Select and Copy the Code
'miles per hour to knots Private Function MPHToKt(ByVal mph) MPHToKt = CDbl(CDbl(mph) / 1.152) End Function 'knots to miles per hour Private Function KtToMPH(ByVal kt) KtToMPH = CDbl(1.152 * CDbl(Kt)) End Function 'miles to nautical miles Private Function miToNautMi(ByVal miles) MiToNautMi = CDbl((CDbl(miles) * 5280) / 6076.1) End Function 'nautical miles to miles Private Function nautMiToMi(ByVal nautMi) NautMiToMi = CDbl((CDbl(nautMi) * 6076.1) / 5280) End Function 'flight time in minutes Private Function minsInFlight(ByVal nautMi, ByVal kt) MinsInFlight = CDbl((CDbl(nautMi) / CDbl(kt)) * 60) End Function 'nautical miles flown Private Function nautMiFlown(ByVal kt, ByVal mins) NautMiFlown = (CDbl(mins) / 60) * CDbl(CDbl(kt)) End Function 'average speed in knots Private Function ktSpeed(ByVal nautMi, ByVal mins) ktSpeed = CDbl(CDbl(nautMi) / (CDbl(mins) / 60)) End Function 'hours to minutes Private Function hrMins(ByVal hr) hrMins = CDbl(CDbl(hr) * 60) End Function 'seconds to minutes Private Function sdMins(ByVal sd) sdMins = CDbl(CDbl(sd) / 60) End Function 'gallons of fuel needed Private Function galFuel(ByVal mins, ByVal gph) galFuel = CDbl((CDbl(mins) / 60) * gph) End Function

Related Source Codes

Script Name Author
��������������������� VyomWorld
Resistor color code reader A.Chermarajan.
Telephone Directory dhivya
card swapping game (Mini Project) nityanand
simple hangman-pascalsource Seabert
college dirtectory (Mini Project) msridhar
Poll Application John van Meter
ASP Daily Hit Counter. Tejaskumar Gandhi
To avoid null in asp environment using sql Sami
Maklumbalas webmaster
poll John van Meter
EasyASP Template Engine. TjoekBezoer
Basic Calculator using HTML & Javascript. Patrick M. D Souza
What servers support ASP ? VyomWorld
What is ASP? VyomWorld

A D V E R T I S E M E N T




Google Groups Subscribe to SourceCodesWorld - Techies Talk
Email:

Free eBook - Interview Questions: Get over 1,000 Interview Questions in an eBook for free when you join JobsAssist. Just click on the button below to join JobsAssist and you will immediately receive the Free eBook with thousands of Interview Questions in an ebook when you join.

New! Click here to Add your Code!


ASP Home | C Home | C++ Home | COBOL Home | Java Home | Pascal Home
Source Codes Home Page

 Advertisements  

Google Search

Google

Source Codes World.com is a part of Vyom Network.

Vyom Network : Web Hosting | Dedicated Server | Free SMS, GRE, GMAT, MBA | Online Exams | Freshers Jobs | Software Downloads | Interview Questions | Jobs, Discussions | Placement Papers | Free eBooks | Free eBooks | Free Business Info | Interview Questions | Free Tutorials | Arabic, French, German | IAS Preparation | Jokes, Songs, Fun | Free Classifieds | Free Recipes | Free Downloads | Bangalore Info | Tech Solutions | Project Outsourcing, Web Hosting | GATE Preparation | MBA Preparation | SAP Info | Software Testing | Google Logo Maker | Freshers Jobs

Sitemap | Privacy Policy | Terms and Conditions | Important Websites
Copyright ©2003-2024 SourceCodesWorld.com, All Rights Reserved.
Page URL: http://www.sourcecodesworld.com/source/show.asp?ScriptID=294


Download Yahoo Messenger | Placement Papers | Free SMS | C Interview Questions | C++ Interview Questions | Quick2Host Review