Questions tagged [calculator]
This tag is for questions about calculators.
560 questions
6 votes
2 answers
641 views
Python calculator application
What do you think about my calculator application in Python? Are there any hidden bugs that I haven't noticed yet? Let me know about them. Note: to be able to run this program you need first to ...
8 votes
4 answers
1k views
Python implementation of core fundamentals to calculate math arithmetic
This program takes a user input to choose which calculation method they'd like to use, then uses a separate module and the math library to perform said calculation. I'd like some feedback as to how ...
6 votes
3 answers
683 views
Interactive simple calculator as a first project. As of now it handles arithmetic, linear and quadratic calculations
This is my very first personal project. I'd like to know what I can improve in this code, with reference to optimization and efficiency. Here's the code: ...
6 votes
2 answers
833 views
Trying out templates in C++ to build a simple calculator
I just started some time ago with C++, and now I wanted to play around a bit with templates. I made a simple calculator that is decent working now. It was a bit of hard way for me to get there because ...
5 votes
2 answers
186 views
C++ arithmetic calculator built without resorting to tree structure as conventionally done, but by parsing input string and then std::stoi
Lately I came across a book exercise that asked to implement a calculator by resorting only to std::string manipulation. I avoided C++ streams as well, as they are ...
10 votes
3 answers
1k views
Basic Terminal Calculator in C++
I'm a freshman Computer Science major looking to build projects for my portfolio. I'm new to C++ and programming in general. Is there any way I can improve this basic calculator I've made? Also, what ...
6 votes
2 answers
506 views
OOP Calculator Program
I am building a Calculator in C++ OOP style. I made 3 Classes: UserInterface, which is responsible for Input and Output of the User. Calculation, which is responsible for the logic of the Calculator. ...
14 votes
3 answers
2k views
C# basic calculator
I just started learning C#, and I don't want to use any Youtube tutorials if not necessary. I made a basic calculator, but I feel like I could've used more of the advantages of C#. And what I did that ...
1 vote
5 answers
222 views
Apply calculator operations to Strings
I've got the following Java (8) code, think of it as a kind of calculator that reads numbers from a file and then applies an operation (with another number, both supplied by the user) to each one: <...
6 votes
1 answer
106 views
Simple calculator app in Rust
To learn about Rust and parsing, I wrote a simple calculator that can solve problems involving the four basic operations (+, -, *, /) as well as exponentiation. For the sake of simplicity and ...
8 votes
3 answers
599 views
Simple console calculator app. Looking for structure/best practices tips
I'm very much new to coding. The template for a .NET Console app opens up blank. I added lines like using System.ComponentModel.Design; ...
4 votes
1 answer
157 views
Advanced Python Calculator using OOP
I've been into computer science fundamentals (proper data structures/algorithms/etc) including Object Oriented Programming. Therefore, I decided to reformat my old traditional Python Calculator into ...
8 votes
2 answers
909 views
Operator-precedence calculator in C
Recently, I've been wanting to do some larger C projects than I'm used to, since I really like the language. So, as a first step, I decided to implement a nice calculator. My end goal is implementing ...
4 votes
3 answers
374 views
Calculation of centrifugal liquid propellant injectors
There is this code in which the calculation of the centrifugal nozzle of a liquid rocket engine is performed. All basic calculations take place in the Injector ...
3 votes
1 answer
205 views
Advanced String Calculator in C++
This is a follow-up question for String Calculator in C++. Considering the suggestions mentioned in MrBean Bremen's answer and Martin York's answer. I am trying to modify the code and trying to ...