Questions tagged [calculator]

This tag is for questions about calculators.

Filter by
Sorted by
Tagged with
2 votes
1 answer
52 views

Interest/Discount rate and loan calculator java

I'm currently learning Java at home with YouTube tutorials. I took a short break from the course to make a small project for calculating costs of loan. It's not economically accurate - I followed ...
Koros's user avatar
  • 23
7 votes
1 answer
1k views

Basic C# Calculator

I am a beginner programmer, I decided to make this calculator program to test my knowledge on basic C# syntax, the code executes as intended, however I would like to shorten it to be more concise. <...
Beefaroni2234's user avatar
3 votes
1 answer
114 views

Calculator (Java/Beginner)

I finished my first calculator using Java! I try to apply Object-Oriented Programming! I'll add my gitHub link if you're suited to viewing code on gitHub. Here is a link to my GitHub Calculator ...
dddleo's user avatar
  • 33
1 vote
3 answers
124 views

A simple tokenizer in c++, it just creates a vector of tokens

...
Kittylover43's user avatar
1 vote
1 answer
127 views

Simple calculator project

This code displays a simple decimal calculator with operations like add, subtract, multiply and divide. It also has a function to clear the result. I try to reduce code repetition. I still think I ...
Yasin's user avatar
  • 21
4 votes
3 answers
575 views

Command line calculator in C

This code is an arithmetic parser as is the code in a previous question of mine. However this parser handles floating point arguments and mathematical functions, and handles them without needing to ...
user16217248's user avatar
8 votes
3 answers
1k views

A Simple C Program to Find Factors of any Integer

I have written a simple CLI app that finds factors in 3 different forms. I would like the code to be reviewed. Here's the code: ...
SHUBHAM KULKARNI's user avatar
2 votes
2 answers
136 views

Simple console calculator

Thats my first application on Python. Please help me do my code better. I try make the simple application . I don't know is I do it right and how do my code cleaner. main.py . Entry point of my ...
Oleksandr Bondarenko's user avatar
4 votes
5 answers
165 views

Trigonometric functions calculator

This is a basic 6 trigonometric functions calculator that I will incorporate into my main calculator project. It works as intended, but the BUILD MESSAGES issue a warning, the warning being: Warning: '...
Haris's user avatar
  • 1,121
3 votes
1 answer
126 views

Calculator for multiplying price and quantity

I'm coding with c++. Basically the question is about to make calculation of any product and calculate with price and quantity with our name. Anyone can simplify this coding? ...
luqman6425's user avatar
8 votes
1 answer
664 views

A Simple Calculator

Can I code this Simple Calculator in a more efficient way? I'm currently self-taught, one thing I notice is that I get an error if I don't press the space bar after each entry, is there a way to avoid ...
Tam-Fils Salomon's user avatar
2 votes
2 answers
189 views

Binary Expression Tree that evaluates Postfix input

My code for a Binary Expression Tree that takes postfix input from the user and recursively builds and evaluates the expression. Proper input can be assumed. ...
MadHatter's user avatar
  • 827
5 votes
2 answers
378 views

Terminal calculator that saves and displays calculation history

I am self-learning C++ and this was my first smallish project. The goal was to create a working calculator that runs in the terminal, saves history of previous calculations, and has the ability to ...
rkmacleod's user avatar
2 votes
1 answer
127 views

Basic command-line Python calculator

I made this basic Python calculator. It just does addition, subtraction, division, and multlipication. I feel like the code is a mess, but it does what I want it to, and I feel like it does it ...
Kovy Jacob's user avatar
-4 votes
1 answer
84 views

Simple Vue calculator [closed]

I made conditional calculator in Vue js but I need help to make it more efficient. https://jsfiddle.net/wbrx9cyp/1/ example of code: ...
Ivan95's user avatar
  • 1
8 votes
1 answer
492 views

Program to add or subtract a pair of numbers

Newbie here :) I have been working on a program that reads a pair of numbers from standard input, along with a mathematical operation and an initial capacity for storing the numbers; and using this ...
BouncexTr's user avatar
3 votes
1 answer
166 views

Calculator app made in Java (ver2)

A few days ago, I uploaded my first version of my calculator app I made in android studio. I got some great some feedback on it and tried to improve my app as much as I could. changes/new featres: ...
Philip Nous's user avatar
3 votes
2 answers
135 views

Python Calculator - Feedback/Improvements

I made a calculator for a class I am taking. It works like this: Tells user the input range is between two numbers, and asks if want to change the range. If yes, asks the user input new numbers (if ...
Joear's user avatar
  • 31
4 votes
1 answer
247 views

Windows standard calulator replica in WinForms C#

I tried my best to replicate, in style and functionality, the Windows standard calculator: I would like to get some feedback on the efficiency and readability of my code as well as the approach i ...
Tommaso's user avatar
  • 93
4 votes
1 answer
1k views

Calculator App with Kotlin and Android Studio

Hello I am an absolute beginner with Kotlin and Android Studio. I want to hear what I could do better for the next time or any flaws my code has. The code implements a four-function calculator (+ - ✕ ÷...
cp54lory's user avatar
2 votes
0 answers
190 views

Mean, median and mode GUI

This program takes x numbers and displays the mean, median and mode. My goal here was to use classes and class properties the best i could to make the code shorter (honestly i may have just made it ...
Tommaso's user avatar
  • 93
1 vote
1 answer
112 views

How can I implement this calculator in a better way?

I have this calculator. The user is asked to provide three numbers as well as the numeric operation they wish to perform. Based on this input, a certain case will be executed. The calculator is ...
morloq's user avatar
  • 119
12 votes
5 answers
4k views

My first C program: quadratic formula calculator code

Recently I've started to learn the C programming language. This is my first program which finds zero places of quadratic formulas. Doesn't parse, just gets the discriminants, counts delta and x1, x2. <...
Cholewka's user avatar
  • 221
2 votes
1 answer
66 views

Total income program: budget and savings calculator

I started my cs50 course this week and I will be trying to make little projects alongside to reaffirm what I've learned thus far. Here I have made a very basic budget and savings calculator, I am ...
user250888's user avatar
4 votes
3 answers
138 views

Circle & Sphere Calculator

I've just wrote my first real C program. It calculates the dimensions of a circle or a sphere based on the user input. The program asks the user which dimension they are entering and then prints the ...
Newbie Noob's user avatar
0 votes
1 answer
178 views

income calculator

I'm really new to code optimization and JS. And I like to learn with clean code. I would like to ask for help on optimizing my code. The code below parses the value of four inputs as floating point ...
codenewbie90's user avatar
1 vote
1 answer
1k views

JavaScript change calculator

I'm new at coding and I'm learning it on freeCodeCamp, that's the most hardest problem that I have already do at that site. After finishing it (after I vibrated as if I had won a world competition of ...
Breno Lira's user avatar
7 votes
2 answers
145 views

Calculator with JavaScript

I've just created a fully working calculator for my portfolio, and I would like to get a code review. Does that code looks good, or maybe I should refactor it? Is it good enough to be a part of a ...
PRMK's user avatar
  • 73
0 votes
2 answers
345 views

Strategy Design Pattern in ASP.Net Core MVC Project

I tried to make a calculator using the Strategy pattern in ASP.Net Core MVC (following an example from the Internet) Please review my code and tell me what could be wrong and how to make it better? My ...
WarmingZ's user avatar
4 votes
1 answer
872 views

Simple Calculator Program That Operates On Multiple Inputs

This is my third version of building a simple Python calculator. The first two versions only operate on two inputs to perform calculation, this version allows multiple inputs. However, the result will ...
CoreVisional's user avatar
3 votes
1 answer
169 views

Basic calculator using break statements to control the logic

Below is a simple calculator program in which I'm using break statements to control the logic. I was wondering if this is overkill on the break statements or is it OK. ...
Daniel's user avatar
  • 31
5 votes
2 answers
275 views

Reverse Polish Notation in C (using a Finite State Machine)

I recently learned about Finite State Machines (FSM) and thought I'd use that to implement a Reverse Polish Notation (RPN) calculator. I wanted it to also work nicely with the unix pipe. For example, ...
Ishki's user avatar
  • 51
5 votes
1 answer
194 views

Object-oriented calculator class

I started learning OOP programming style in PHP. After end of the course, I wrote a simple calculator in OOP style. Can some one check my code and give me feedback? ...
Mostafa Keshvary's user avatar
2 votes
3 answers
242 views

C++ evaluating an arithmetic expression in RPN format using ADT stack

Write a program that uses an ADT Stack to evaluate arithmetic expressions in RPN format. The contents of the stack should be displayed on the screen during evaluation. The allowed arithmetic operators ...
Willow's user avatar
  • 21
1 vote
2 answers
966 views

Simple Win32 API Calculator in C

I've been learning C as my first language and recently I decided to learn how to create Win32 apps written in C. I Quickly realized, though, that my biggest challenge wasn't writing the Win32 app ...
rieger60's user avatar
1 vote
1 answer
145 views

Car price calculator

Im writing this simple program for school and using NumberFormat on all the variables seems very repetitive (Note that we were asked to use the NumberFormat method)....
Grewal_Creator's user avatar
4 votes
3 answers
173 views

First C++ calculator

This is my first C++ program. It would be nice if you can tell me anything I could add or do differently. I am new to C++ programming and I hope to learn more. ...
Sipuli's user avatar
  • 71
3 votes
3 answers
344 views

SUVAT Calculator web app using python streamlit

I have made a calculator app to help Bengali high-school students in solving mathematical problems on Newtonian equations of linear motion aka SUVAT equations. I am using python version 3.8.8 and ...
raf's user avatar
  • 239
25 votes
4 answers
4k views

Poor man's JIT using nested lambdas

While answering this code review question, I came up with a way to convert an equation given at runtime to a std::function<double(double)> that would evaluate ...
G. Sliepen's user avatar
  • 44.7k
5 votes
2 answers
689 views

Tokenize arithmetic expression in C

This program tokenizes an arithmetic expression specified in infix notation. It is one of my personal projects and I would love to receive expert advice. After compiling, you can run the program with ...
Andy Sukowski-Bang's user avatar
5 votes
1 answer
280 views

My first program in C. A simple command-line calculator

I've recently started programming in C and as my first serious program I thought I'd create a simple calculator. To make it a bit more complex I decided not to use the functions included in math.h (...
MirkoZero's user avatar
6 votes
1 answer
1k views

Calculator in C - Parsing arithmetic expression using the shunting-yard algorithm

This is a simple arithmetic calculator, which parses mathematical expressions specified in infix notation using the shunting-yard algorithm. This is one of my personal projects and I would love to ...
Andy Sukowski-Bang's user avatar
0 votes
1 answer
1k views

BMR calculator web app written in HTML/CSS/Vanilla JS

I'm learning JavaScript at the moment (still very much a beginner) and this is the first app I've designed on my own, without using any tutorials. It's an app which takes the user's gender, age, ...
Nellington's user avatar
1 vote
0 answers
1k views

PowerShell CLI calculator

I found a project that aims to implement a CLI calculator app in as many different languages and ways as possible. Having a little experience in PS, I tried my hand at it. The requirements are as ...
mindoverflow's user avatar
2 votes
2 answers
79 views

Still learning, looking for general advice about a 4-function calculator I programmed using java

here's some code I wrote in java SE to get use to if statements and scanning. just looking for suggestions that will improve this program or/and teach me techniques that I should get use to using. <...
Jacob's user avatar
  • 23
2 votes
2 answers
222 views

A postfix (a.k.a. Reverse-Polish Notation - RPN) calculator

As an exercise, I put together a postfix calculator using modern Fortran. Language apart, I am interested in knowing your take on the algorithm. As far as I remember from my freshman year (chemistry - ...
Luca Argenti's user avatar
2 votes
1 answer
49 views

Terminal Calculator/Parser Inspired by gcalccmd

My program takes input from the user in two ways: By passing input as an argument whilst calling the command By taking any number of inputs after calling the command The program is a terminal ...
Angel E.'s user avatar
3 votes
2 answers
149 views

My first ever calculator C# [duplicate]

This is my first ever created program I've made. It's not very good but I'm pretty proud of it. If you have any suggestions I could add into the calculator I would gladly do that. ...
Sipuli's user avatar
  • 71
0 votes
2 answers
524 views

Stack based Calculator in Python

I programmed a calculator with int operations. The calculator stores functions in a dictionary. Also, the calculator stores how many arguments the function takes in a dictionary. The input format is ...
Akash Patel's user avatar
2 votes
1 answer
890 views

Basic COBOL Calculator

Small Calculator I made for myself while trying to learn COBOL for fun. Compiler used is GNUCOBOL. Just asks for input and will either do multiplication, subtraction, or addition. Completes run after ...
1ctinus's user avatar
  • 35

1
2 3 4 5
11