7 kyu

Thinkful - Number Drills: Rømer temperature

2,127 of 3,064Grae-Drake

Description:

You're writing an excruciatingly detailed alternate history novel set in a world where Daniel Gabriel Fahrenheit was never born.

Since Fahrenheit never lived the world kept on using the Rømer scale, invented by fellow Dane Ole Rømer to this very day, skipping over the Fahrenheit and Celsius scales entirely.

Your magnum opus contains several thousand references to temperature, but those temperatures are all currently in degrees Celsius. You don't want to convert everything by hand, so you've decided to write a function that takes a temperature in degrees Celsius and returns the equivalent temperature in degrees Rømer. Fortunately, you remember that the function for converting is pretty simple and it looks like this:

Rø=2140^\circ Rø = \dfrac{21}{40} C+7.5^\circ C + 7.5

For example,

24C20.1Rø24 ^\circ C \approx 20.1 ^\circ Rø;

8C11.7Rø8 ^\circ C \approx 11.7 ^\circ Rø;

29C22.725Rø29 ^\circ C \approx 22.725 ^\circ Rø

Fundamentals

Stats:

CreatedDec 27, 2016
PublishedDec 27, 2016
Warriors Trained3920
Total Skips67
Total Code Submissions6414
Total Times Completed3064
Python Completions2127
Haskell Completions77
CoffeeScript Completions22
Crystal Completions15
JavaScript Completions766
Ruby Completions82
PHP Completions161
Total Stars15
% of votes with a positive feedback rating83% of 435
Total "Very Satisfied" Votes324
Total "Somewhat Satisfied" Votes78
Total "Not Satisfied" Votes33
Total Rank Assessments12
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • Grae-Drake Avatar
  • GiacomoSorbi Avatar
  • suic Avatar
  • MFreidank Avatar
  • St3f4n Avatar
  • kazk Avatar
  • Madjosz Avatar
  • hobovsky Avatar
  • stellartux Avatar
  • tobeannouncd Avatar
  • 4500zenja1 Avatar
Ad