This tag is for questions about calculators.
4
votes
1answer
66 views
2
votes
1answer
78 views
Beginner PHP calculator
I've spent the last few evenings learning PHP, CSS and HTML through Codecademy and now on Team Treehouse. My goal is to progress with PHP over the next year or two and perhaps obtain Zend cert.
...
8
votes
3answers
794 views
Simple calculator with classes in C++
I came to C++ from Java. This is my attempt at making a calculator on about 2 days worth of knowledge. I don't really know what is redundant or unnecessary. Nor do I know of the better ways to achieve ...
1
vote
1answer
95 views
Simple JavaScript Calculator
I built a simple calculator that supports addition, subtraction, multiplication, and division. It can also chain operations. I'm looking for feedback on my code for places that could be done better in ...
0
votes
0answers
57 views
Calculator in Node.JS
I'm new to parsing, and there's only one way to learn anything, and that's to do it yourself. So I did. I wrote what is essentially a calculator. But instead you will send it a string and it will be ...
5
votes
1answer
71 views
Simple JavaFX Calculator
Good day everyone, I made a simple JavaFX calculator. It does basic calculations, and works to the best of my knowledge. However, I'm a novice at both Java and JavaFX, so I seriously doubt this is as ...
5
votes
2answers
58 views
Simple medication dosage calculator
I am a nurse and I'm learning to code. I have coded this simple tool that helps me doing some common nursing formulas for medication. It works, however I think it is too bulky/redundant. Can you help ...
6
votes
1answer
84 views
Somewhat Advanced C++ Calculator
I am currently in the process of learning C++ from C++ Primer. I have found the exercises in this book to be somewhat dull in that they only test syntax and not reasoning. As such, I have recently ...
3
votes
1answer
113 views
Calculator in HTML, CSS, JS
I am new to Javascript and HTML. I have written code for a calculator, so review my code and points out pros and cons in it.
...
0
votes
2answers
105 views
Basic calculator in Java
I'm new to programming and just made a basic calculator on my own.
Can anyone see if there is any room for improvement in the code, like stuff i should do different.
...
14
votes
4answers
1k views
Body Mass Index Calculator
I created a quick calculator in Javascript and I was wondering if there was a way to make the code look prettier or make it simpler. To me, it looks really cramped and messy and I'm not sure how ...
3
votes
1answer
58 views
Simple object-oriented calculator - part 4
This question is an improvement I did based on recommendations from these other questions:
Simple object-oriented calculator
Simple object-oriented calculator - follow-up
Simple object-oriented ...
3
votes
1answer
66 views
Simple object-oriented calculator - part 3
This question is an improvement I did based on recommendations from these other questions:
Simple object-oriented calculator
Simple object-oriented calculator - follow-up
To those looking this ...
3
votes
1answer
52 views
JavaScript calculator for adding discounts on some number of people
I am trying to learn JS and I am trying to make a simple calculator which will calculate price against number of people and will give discount on some amount of people. For instance, every 6th person ...
6
votes
2answers
81 views
Hours:Minutes Addition
I wrote this simple page to help at work, and as an exercise to get more familiar with JavaScript.
I'm especially interested in help with style and structure - is this "standard"?
I know the input ...
7
votes
2answers
209 views
Calculating the price of movie tickets based on multiple inputs
I have modularized my code and currently my "main" function is movieSalesReport(). I am coming from Python where you can have the functions return multiple values. ...
6
votes
2answers
101 views
Simple object-oriented calculator - follow-up
This question is an improvement I did based on recommendations from this other question: Simple object-oriented calculator
JSFiddle
...
21
votes
3answers
394 views
Simple object-oriented calculator
After studying several ways of doing OOP in JavaScript I think I finally came up with one that seems OK to me. Is it okay? Do you see some problems I can face by using OOP in JavaScript like this?
...
15
votes
4answers
841 views
Credit Calculator
The code has been test to work by the parameters listed below I just wanted to know if there were any details that I missed or blatantly overlooked.
Develop a Java application that determines ...
3
votes
3answers
130 views
Calculator Program which can operate on multiple numbers
All the calculator programs I have seen so far seem long, complicated and they can only operate on two numbers. I am trying to write one that is simple, short, and it can operate on as many numbers as ...
6
votes
2answers
166 views
Simple calculator which can operate on more than two numbers
All the calculator programs I have seen so far seem long, complicated and they can only operate on two numbers. Mine is simple, short, and it can operate on as many numbers as you want. Please tell me ...
7
votes
3answers
85 views
Simple Expression Calculator in C
The calculator evaluates a mathematical expression with binary operators +, -, *, / and ^ in C. I store numbers and operators into two different arrays and process them according to precedence.
...
1
vote
1answer
100 views
Price calculator for motors and pumps
Note
This question was born in request to post more details from this question on Programmers. Since details may uncover new/different complexity, I'm asking another question here. I also will use ...
8
votes
5answers
726 views
Simple Java calculator with two operands
I am taking a lynda dot com course online to start off. The course asks you to write a simple program:
Ask the user to input 2 values
Ask the user to input an operation
Use the operation on ...
3
votes
2answers
456 views
Python 2.7 Payroll Calculator program
This is a calculator I'm working on. The ultimate goal is to calculate multiple payrolls before selecting to end the program, please review current version in that context. PSA: I'm a beginner.
...
5
votes
2answers
164 views
Calculator in FORTRAN
This is my first step into Fortran. The program aims to provide a simple way of calculating numbers. Just looking for improvements in general.
...
5
votes
1answer
74 views
Affordability/Mortgage Calculator
I'm working on a class project for my intro to Java class. My background is in accounting/finance so I decided to make this simple calculator that helps the user decide what they can afford and how ...
5
votes
4answers
970 views
Simple BMI calculator in Java
A similar question must have been asked a thousand times, but for the life of me I can't figure this out. I am new to Java and I want to create a programme that asks a user for his or her height and ...
8
votes
4answers
861 views
C# WPF Simple Calculator
I've implemented simple +-*/ calculator in WPF. I know that here are few implementations of the same thing, but each is different, with different advantages or ...
4
votes
2answers
150 views
Python tuition calculator 2.0
Here is my program that calculates tuition cost for the next five years. I have had some review on it so far, but I am seeking more. Please keep in mind I am new to programming, so I may require a few ...
6
votes
2answers
226 views
Python tuition calculator
I'm a student learning Python, I made this calculator that will tell you the tuition for the next 5 years at an increase of 3% per year. How can I improve on this and did I do anything that isn't best ...
5
votes
5answers
719 views
Car Savings Calculator
I've created a second 'calculator-like' program, this time using the JOptionPane rather than typing in the console. At the moment the code looks to have a lot of repetition so I'm looking to simplify ...
4
votes
2answers
83 views
Parsing mathmatical functions
I have finally finished a Ruby calculator project, which is not based on eval. Instead it parses input char by char. The project is hosted on GitHub.
However, I find a specific part of the program ...
5
votes
2answers
331 views
Simple Tax Calculator
I've been learning Java for a very short period of time but with a couple of pointers, I've been able to put this simple VAT calculator together. If anyone could offer any ideas for improvement ...
17
votes
4answers
2k views
My first calculator
I've just wrote my first code, which is basically a calculator. Please rate it and suggest improvements (keeping in mind that I'm a beginner).
...
4
votes
1answer
742 views
Simple calculation in Java
I am kind of new to Java and I have tried making a simple calculator. This lets you do different calculations in a row until you type done then you get the answer. It works as I expected but I was ...
4
votes
1answer
418 views
BMR (Basal Metabolic Rate) Calculator
Been working on a BMR calculator on and off for a while now. Created an interface and been over different ways to store user input, different ways to calculate BMR/TDEE etc.
I created another class ...
6
votes
1answer
293 views
Basic Java Swing Calculator
I am new to Java Swing and have decided to create a calculator to learn some of the basic. I would like someone to look over my code to see if they can give me any improvements.
I have 6 classes and ...
7
votes
1answer
153 views
Console Calculator in C#
This is a calculator I've made in C#. Is there any way to improve it? Surely there is a way to get rid of all the ifs that are nested inside one another.
...
2
votes
3answers
640 views
2
votes
2answers
55 views
Commute cost calculator
I wrote a simple javascript program that takes a user's input and calculates the cost of their commute. I feel like I'm repeating a lot of stuff though.
How could I refactor this to make it cleaner ...
5
votes
1answer
1k views
Java calculator using postfix conversion and evaluation
I'm trying to create a program that converts infix expression to postfix (using stack) and evaluate the result of the postfix expression. I already have a solution that works, but I feel that it's ...
4
votes
2answers
348 views
Calculator with WPF
I built a calculator in C# with WPF for the UI. I'm still a beginner at WPF and C# in general, and I'm just looking for some constructive criticism.
XAML
...
5
votes
3answers
308 views
Simple Java addition calculator
I made this simple addition calculator in Java and I'm wondering how I can improve it.
...
5
votes
4answers
336 views
Basic web calculator
I've built a calculator. I would not use angular or bootstrap because I am becoming addicted to them. I also wanted to check for double '.' use, and to limit the screens max text length but did not ...
4
votes
2answers
191 views
Arithmetic addition and subtraction calculator even for extremely big numbers
Here is an attempt to sum even extremely very large numbers. As the extremely bigger numbers are fed to the method as String type this became possible. This ...
3
votes
1answer
86 views
Switch statement for adding/removing operands to the text part of a label
I have a switch statement with five cases, and four of them are really similar to the others. How could I properly refactor this code to eliminate the duplication of code?
...
8
votes
3answers
125 views
Algebraic calculator
I started with my own implementation of an algebraic calculator but ran into issues very early into the process. Then, I implemented the algorithm here. Please provide some inputs on areas where I can ...
4
votes
2answers
91 views
Reverse Polish Notation in F#
In my question to learn F#, I've decided to get one step closer to creating a programming language, and implement this simple Reverse Polish Notation "interpreter" of sorts.
It does not allow for ...
4
votes
1answer
756 views
MVC Calculator Implementation with Java Swing
I know this might be a relatively large amount of code, but I'm just looking for any improvement, big or small, on my coding as I can.
As part of my self-study in programming, I decided to make a ...