Project
Smart Calculator (Go)
Challenging
101 completions
~ 12 hours
4.4Apart from writing a useful program (everyone uses calculators!), you will learn a lot about slices, strings, and maps. You will also get a closer experience with 2 important data structures: the stack and the queue.
Provided by
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.
Graduate project
This project covers the core topics of the Go Developer 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:
Your calculator is taking its first steps: teach it to calculate the sum of two integers and display the result on the screen.
Enable your calculator to keep adding numbers using a for loop until the user enters "exit".
Using slices and strings, make it possible to calculate sums of multiple integers.
Where there is a plus, there is a minus. Using your knowledge of slices 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 maps, enable the calculator to use variables.
Time to upgrade and add even more possible operations: multiplication, division, powers, and calculations in parentheses.
Reviews
4 months ago
Maps, struct, loops, slices, strings & number handling, data structure
Mykola Chubuchnyi
8 months ago
The project was fun enough and useful. But I experienced frequent issues with synchronisation between Project page and IDE.
4.4
Learners who completed this project within the Go Developer course rated it as follows: