Project
Number Base Converter (Java)
Hard
714 completions
~ 27 hours
4.0You will master loops and functions, learn about numeric data types, and explore different numeral systems including binary — one of the basic concepts in programming.
Provided by
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
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 input and output to implement a simple logic: teach the program to convert the user input number to binary, octal, and hexadecimal systems.
Practice loop, function, and string processing and give your program new functionality: converting user input numbers to the decimal system. Also, add commands to determine what the program should do next.
Upgrade your converter: enable it to convert numbers between any numeral systems. While you're at it, master loops and learn how to store large numbers.
Make it possible for the converter to work with fractions, especially with large fractional numbers.
Reviews
U1
User 1466571031 month ago
I have learned to use use of Optional for flow control, record for data carriers, and BigDecimal for high-precision math. It effectively handled the transition between different bases for both integer and fractional parts. Implemented Two-Level Menu Logic: The nested while loops in one of the classe ...
I thought this would be an easy project. I was very wrong; I nearly lost my mind during the last two stages. On the plus side: I figured out the number systems, and now they don't scare me. The main thing is to understand the general formula (Google will help), and then tweak the details.
Trayana Boykova
7 months ago
This project helped me build a solid understanding of number systems and precise arithmetic by implementing conversions between arbitrary bases, including fractional numbers. I worked extensively with BigInteger and BigDecimal, focusing on correctness, rounding, and edge cases. It was a great exerci ...
4.0
Learners who completed this project within the Java Desktop Application Developer course rated it as follows: