Project

Smart Calculator with Java

Hard
701 completions
~ 32 hours
4.2

Apart from writing a useful program (everyone uses calculators!), you will learn a lot about arrays, strings, and other data types. You will also get closer experience with 2 important data structures: the stack and the queue.

Provided by

JetBrains Academy JetBrains Academy

About

Calculators are a very helpful tool that we all use on a regular basis. Why not create one yourself, and make it really special? In this project, you will write a calculator that not only adds, subtracts, and multiplies, but is also smart enough to remember your previous calculations. You will practice concepts frequently tested in technical interviews at top tech companies.

Graduate project icon

Graduate project

This project covers the core topics of the Java Core course, making it sufficiently challenging to be a proud addition to your portfolio.

At least one graduate project is required to complete the course.

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:
Enable your calculator to keep adding numbers in a loop until the user enters “exit”.
Using arrays and strings, make it possible to calculate sums of multiple integers.
Where there is a plus, there is a minus. Using your knowledge of arrays and strings, enable the calculator to deal with subtraction as well as addition.
There’s no math without errors: teach your program to alert the user to errors in the case of invalid input.
Working with Map class, enable the calculator to use variables.
Time to upgrade and add even more possible operations: multiplication, division, powers, and calculations in parentheses.
Get to know BigInterger class in order to manipulate big, large, long integers in calculations.

Reviews

User 146657103
2 months ago
i have learned about evaluating expressions with regex and and that static methods can be called inside instance methods of the same class and static methods dont have access to the fields of a class with public access modifier
Zakaria Farih avatar
Zakaria Farih
3 months ago
Good project, focusing on regex too much tho ! i think the project should guide students for a OOP based approach with Tokenizers etc , this way they can implement everything they learnt during the course. Choose this project if you want to learn regex, OOP properly ( drift from project specs as def ...
User 620339160
1 year ago
I have learned to solve complex problems, find mistakes that I have made and refractor almost all of my code (which I found to be very annoying task). The bonus is that I am certain I will never forget what I have learned while working on this project.

4.2

Learners who completed this project within the Java Core course rated it as follows:
Usefulness
4.5
Fun
4.1
Clarity
4.1