Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Cycle Gear Ratio Calculator

by davido (Archbishop)
on Sep 04, 2012 at 18:06 UTC ( #991668=note: print w/replies, xml ) Need Help??

in reply to Cycle Gear Ratio Calculator

This brought back a nine-year-old memory: A Gear Inch Calculator for Cyclists. I have no idea why I still remembered it.


Replies are listed 'Best First'.
Re^2: Cycle Gear Ratio Calculator
by fatmac (Acolyte) on Sep 04, 2012 at 18:30 UTC
    That was interesting, especially as they also were reading the same book when they coded it. This is my single gear calculator code:
    #!/usr/bin/perl use strict; use warnings; print "\nGear Calculator\n\n"; print "Enter Wheelsize (inches): "; my $wheel = <>; print "Enter Chainwheel Teeth: "; my $teeth = <>; print "Enter Cog Teeth: "; my $cog = <>; my $gear = $wheel * $teeth / $cog; print "\nYour gear is: ", $gear, "\n\n";

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://991668]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2018-08-20 23:51 GMT
Find Nodes?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:

    Results (197 votes). Check out past polls.