Project

Unit Converter

Medium
1030 completions
~ 14 hours
4.2

Get comfortable with the basics of coding: loops, conditions, and data input and output.

Provided by

JetBrains Academy 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 icon

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

Marc Smith
1 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 ...
Vladimir Varaksin avatar
Vladimir Varaksin
4 months ago
I learned how to use enums, work with maps, sets, lists and more.
Womix avatar
Womix
6 months ago
To be honest it was too easy, but I had already learned a lot. If you are just starting to learn programming, I suggest you start here. Here you will learn about Enum, loop and maybe about Regex

4.2

Learners who completed this project within the Kotlin Developer course rated it as follows:
Usefulness
4.4
Fun
4.0
Clarity
4.2