FM radio dial

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

Draw an American FM radio band dial (88-108Mhz) and plot the given frequency on it. If the frequency is out of range, plot all x's.

Options

exec is denied

now post-mortem time, all source codes will be revealed

Sample input:_

88
88.5
92
97.6
100
100.5
102
104.5
107
107.9

Sample output:

|88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108|
|*                                                                      |

|88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108|
|  *                                                                    |

|88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108|
|            *                                                          |

|88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108|
|                             *                                         |

|88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108|
|                                     *                                 |

|88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108|
|                                       *                               |

|88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108|
|                                             *                         |

|88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108|
|                                                       *               |

|88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108|
|                                                                 *     |

|88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108|
|                                                                     * |

Sample input:_

50
100
101
110

Sample output:

|88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108|
|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|

|88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108|
|                                     *                                 |

|88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108|
|                                         *                             |

|88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108|
|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1clock1000.05922012/03/29 12:45:420B / 31B / 63B
2@tttttanaka1350.07542012/03/25 06:33:240B / 48B / 80B
3@tttttanaka1280.04762012/04/06 21:34:490B / 46B / 75B

Perl _

RankUserSizeTimeDateStatistics
1tybalt89980.06102012/03/28 11:01:390B / ?B / ?B
2nfouille1220.05112012/03/19 21:13:461B / ?B / ?B
3smkt2320.03152012/03/16 03:58:470B / 103B / 127B

Python _

RankUserSizeTimeDateStatistics
1hallvabo1300.06092012/03/16 07:42:460B / 66B / 62B
2macik1460.06912012/03/27 23:26:430B / ?B / ?B

PHP _

RankUserSizeTimeDateStatistics
1clock1520.12302012/03/29 01:38:572B / 78B / 69B

JavaScript _

RankUserSizeTimeDateStatistics
1clock1430.08502012/03/29 23:32:130B / 65B / 73B
2hakusui1480.06502012/03/29 22:50:230B / 65B / 81B
3clock(hakusui)1390.09212012/03/29 23:55:220B / 63B / 71B

J _

RankUserSizeTimeDateStatistics
1I., S.890.14822012/03/27 20:30:420B / 30B / 56B

C _

RankUserSizeTimeDateStatistics
1smkt2270.03362012/03/16 02:10:231B / 109B / 110B
2smkt2230.02812016/04/18 17:12:160B / 106B / 110B

sed _

RankUserSizeTimeDateStatistics
1clock1560.03072012/03/29 00:28:350B / 45B / 84B

GolfScript _

RankUserSizeTimeDateStatistics
1clock920.17442012/03/29 11:29:300B / 22B / 68B

Vim _

RankUserSizeTimeDateStatistics
1clock870.26982012/03/23 04:05:297B / 48B / 27B

Language Ranking_

RankLangUserSizeScore
1Vimclock8710000
2JI., S.899775
3GolfScriptclock929456
4Perltybalt89988877
5Rubyclock1008700
6Pythonhallvabo1306692
7JavaScriptclock(hakusui)1396258
8PHPclock1525723
9sedclock1565576
10Csmkt2233901

return top