Project
Unit Converter
Medium
1030 completions
~ 14 hours
4.2Get comfortable with the basics of coding: loops, conditions, and data input and output.
Provided by
JetBrains Academy
About
When you travel, everything changes: people, languages, time zones, and even units. It may be difficult to read the temperature in Fahrenheit when you’ve always used Celsius, or to measure yourself in kilos if you’ve only used pounds. It’s no easy matter, though a nice unit converter could certainly help! In this project, you will write a converter that handles distance, weight, and temperature units – all the traveller’s essentials.
Training project
This project allows you to practice and strengthen your coding skills, helping you get ready for more advanced tasks ahead.
What you'll learn
Once you choose a project, we'll provide you with a study plan that includes all the necessary topics from your course to get it built. Here’s what awaits you:
Display simple conversion examples: for instance, a standard measurement table.
Teach your program to convert kilometers to meters.
Teach your program to handle other distance units - yards, feet and inches - and convert them to meters.
Now you can convert all distance units; time to enable your converter to work with weight measure units as well.
Your converter is only missing one thing: temperatures. Teach it to convert Fahrenheir, Celsius and Kelvin, and your ultimate unit converter is ready.
Reviews
MS
Marc Smith1 week ago
In this project I learned to how to organize the code effectively according to function and to use enums. For me, the lengthiest part of this project was to write the function that parsed user input. This could get very messy if one does not think about the structure of all the possible inputs. Al ...
4.2
Learners who completed this project within the Kotlin Developer course rated it as follows: