Project

Numeral System Converter (Java)

964 completions
~ 16 hours
4.1

Master loops and arrays and learn how to handle errors. In addition, you get to explore binary — a fundamental concept in programming.

Provided by

JetBrains Academy JetBrains Academy

About

We’re all quite used to our good old decimal system of numerals. But let’s not forget that there are other ways to count! Whether we need to convert numbers from one system to another just for fun or to store large data more efficiently, a converter proves helpful. In this project, you will create your own tool that will help you convert numbers from one system to another.

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:
Learn the basics of working with Scanner class: teach the converter to determine the last digit of the octal number, converted from the decimal system.
With the help of switch operator and prefixes, convert the number to any system of your choice.
Upgrade your converter: enable it to convert numbers from and to any numeral system. Practice arrays, loops and strings.
Make it possible for the converter to work with fractions as well (that is, float and double datatypes).
Mistakes are inevitable: teach your converter to handle them and report errors if they occur.

Reviews

Marcin Śladewski
4 years ago
It was kinda helpful for simple algorithms and brings attention to handling incorrect input. If you are a bit more advanced and want to play with Streams API most of this task can be solved with stream processing giving you simple problem fo play with new API for a bit.
Aleksei avatar
Aleksei
4 years ago
I learned about methods for converting number systems in standard libraries. The hardest part was guessing which errors should be handled.
Moeller Tech avatar
Moeller Tech
5 years ago
A good introduction to number bases. Processing digits as strings and numeric values.

4.1

Learners who completed this project within the course rated it as follows:
Usefulness
4.5
Fun
4.0
Clarity
3.9