Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
 
MSDN Visual Basic Community
 
 
 
 
 
TitleMake a cricket temperature calculator in Visual Basic .NET
DescriptionThis example shows how to make a cricket temperature calculator in Visual Basic .NET.
Keywordscricket, temperature, chirps, silly, game, VB.NET
CategoriesMiscellany, Algorithms, Puzzles and Games
 
This is a silly little temperature calculator based on the fact that a cricket's chirp rate depends on the temperature. The temperature in degrees Fahrenheit is approximately the number of chirps per 15 seconds plus 40.
 
Dim chirps As Integer = Val(txtChirps.Text)
txtResult.Text = (chirps + 40).ToString("0")
 
 
Copyright © 1997-2006 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated