This tag is for questions about calculators.
6
votes
3answers
344 views
BMI Calculator in Java
My task:
Body Mass Index (BMI) is a measure of health based on height and weight. It can be calculated by taking your weight in kilograms and dividing it by the square of your height in meters.
...
3
votes
2answers
36 views
Calculator for the area of various 3D figures, using abstract classes and inheritance
I am a Java newbie, and they have just recently taught us abstract classes and inheritance. While I was practising, I wondered whether I can make multiple instances of the same abstract method in ...
-3
votes
0answers
26 views
-4
votes
0answers
9 views
How can i make my cancel and equals work? [closed]
public class Calculator_ict extends javax.swing.JFrame {
...
6
votes
1answer
189 views
Calculator that works by compiling and running a .java file
I wrote this code for a simple calculator. It creates a java file from the term, compiles and executes it. Now my question is : Is there a better way of doing this ? Would it be more efficient to ...
1
vote
1answer
48 views
Simple vector calculator [closed]
I am fairly new to Python and programming. I created this simple calculator inspired by my physics class. However, I feel this code could have been done more efficiently. Is there any advice for ...
6
votes
1answer
184 views
Calculators for gas law equations
I've made a C++ program that calculates a missing variable in an equation for one of the five following laws of gas:
Boyle's Law
Charles' Law
Gay-Lussac's Law
Avogadro's Principle
Ideal Gas Law
The ...
3
votes
2answers
91 views
Cost calculator for room bookings, based on file or user input
The application I would like help with is a booking calculation tool that runs a few simple calculations in order to work out the cost of someone's stay.
It currently contains only two java files, ...
0
votes
3answers
102 views
2
votes
3answers
92 views
13 function C++ Calculator that takes 2 - 3 arguments
I decided to write a (more or less simple) C++ calculator; init.cpp generally gets most of the user input, and calls the functions. Here are my files:
...
1
vote
1answer
77 views
Enum of calculator operations
I'm making my first simple project which I decided would be a calculator and I'm kind of stuck on implementing the operations. I have two classes one of which is the GUI part and the other one ...
3
votes
1answer
58 views
My Calculator.js
JavaScript implementation of a basic calculator. Looking for constructive criticism of my code. Thanks in advance!
...
1
vote
0answers
57 views
JavaScript Calculator
This quick code I made is meant to be an easy-to-use, multi-purpose calculator. When I say "multi-purpose", then I mean that this calculator can do some more interesting functions like rounding ...
3
votes
1answer
92 views
Calculator with history using Java 8
Yesterday, I saw this post from another user: Calculator with history
I started refactoring the code while typing an answer but I end up not posting as an answer because I not sure if my ...
4
votes
1answer
121 views
Calculator that does basic functions and area/volume in Python 3.6
This is my first big project that I've made in Python. I've noticed as I was writing it that it's extremely repetitive and I just don't know how to make it less so.
...
11
votes
2answers
366 views
Calculator with history
I'm the newbie in Java (and programming) and I've tried to make a simple calculator. Code is barbaric, I know, so I would like to make it more beatiful.
Main.java:
...
4
votes
1answer
55 views
Change-Making Problem Solution
Please take a moment and review my code and tell me how I did. This is the first time in my class (CSC 111) I've been given an assignment in which I had to use a lot of my own resources and develop ...
7
votes
2answers
75 views
Several math calculation functions
The code I have created calculates an arrangement of math calculation functions, and I would like to see if there is any way I could improve it, especially the calculator function. The guide function ...
2
votes
1answer
105 views
IRS Tax Calculator in Java
I am working on a tax calculator for a school assignment and was hoping to get some feedback on my current progress. I kind of feel like I over-complicated the code.
NOTE: I am required to do all of ...
14
votes
3answers
506 views
Super calculator in C
For my mathematical research, I am to deal with very large numbers and I know that the standard C types are not going to stand a chance against them due to their limited capacity, so I decided to ...
8
votes
2answers
187 views
Kinematic Equations
I'm learning the kinematic equations in Concepts of Engineering and so here are the equations I am learning:
To complete the lesson, I was told to create a Python program that outputs the horizontal ...
3
votes
1answer
147 views
Java Swing Calculator
I've been learning java for over a year and I'm looking for better ways to learn and I'm trying to get a better idea of where I am as a programmer. I honestly have no clue if my code is good or bad. I'...
2
votes
3answers
164 views
9
votes
6answers
906 views
Beginner's JavaScript calculator
As a part of a study-group I did a very simple little JavaScript calculator. It's not made to look pretty.
Any ideas on how I can make the code prettier?
...
3
votes
1answer
86 views
Multiple numbers calculator
This is my first ever Python program so I would really like to know if it's any good (I mean if it is well writen), and if not then how to make it better.
I would also like to know if there is a way ...
4
votes
1answer
192 views
Simple Calculator in Java and Swing
I'm new at this and I'm almost done with learning basic Java. I made this just to see if I could do it. I just want to know if there's anything I can do to make it better.
...
8
votes
1answer
430 views
0
votes
1answer
76 views
Three function Calculator 2.0
A week ago I did a three function calculator, I took the input from you guys and made it better. Overall it works fine, I didn't find any problems. But as a beginning programer I'd like some input on ...
4
votes
1answer
81 views
Calculator for area and perimeter of a window
This program calculates wood length and area of glass required for the window.
I am a beginner in C# and I want to know how professional programmers will write program like this.
...
3
votes
1answer
60 views
My Basic Tax Calculator
The goal is:
I can add many services as I need.
I can add many taxes as I need (the idea is that services has all of this taxes)
Calculate per services each tax value
Sum all the taxes of each ...
4
votes
2answers
704 views
Basic calculator in Swift 3
I just started learning the basics to Swift 3 about 2 days ago. Since then, I've decided to make a simple calculator that can only do one operation at a time.
I was wondering how efficient this was ...
6
votes
2answers
112 views
Three numbers calculator
Edit: I made a new calculator after taking your input New Calculator
I made this three-function calculator. I have been learning C for a couple of months, and I learned C++ through the internet.
This ...
-1
votes
1answer
393 views
Calculate the area of different shapes using polymorphism (virtual and override methods)
I have written code to calculate the area of different shapes using polymorphism (virtual and override methods) and it is working as expected. Can anyone please review this and let me know how I can ...
5
votes
1answer
118 views
Coin Estimator by Weight
I've created a mini project where the user will enter the total weight of the coins and the program will compute how many coins they have and how many wrappers they'll need. I initially found this ...
4
votes
3answers
132 views
Console-based calculator in C++
I've recently started studying C++ (from internet) Made my very first program, calculator. It works, but i'd like to know how could i make this more "advanced"?
...
3
votes
1answer
107 views
Dual-language beginner math solver program in C++
I've written a program that solves questions of:
Addition
Finding the hypotenuse of a triangle
Checking if the triangle has a right-angle or not
I've also written it to be viewed in English or ...
1
vote
2answers
126 views
A simple pocket calculator
I was searching the internet for some Python exercises, and I've found a lab assignment from University of Toronto. Here's the major of it:
Question 1.
Welcome Message In the if ...
1
vote
1answer
111 views
Basic 4-function Java Calculator with Swing
I can see that there are a lot of java calculators on here, so I hope it hasn't gotten too old. This is a basic 4-function calculator in java using the swing interface. I am positive that it is ...
6
votes
8answers
2k views
C++ calculator using classes
This is my first time using classes objects and functions. What can I improve on?
...
3
votes
2answers
137 views
Quadratic Equation Calculator with Java FX
I have designed a quadratic Equation Calculator with Java FX. It is divided into four separate classes:
GUI.fxml to design the UI
Logic class with the all the ...
1
vote
2answers
149 views
F = MA calculator
This is a calculator for F = MA. (Force = Mass * Acceleration)
I would like a review of my code. I believe that I have gotten better since my last time.
...
6
votes
2answers
102 views
Simple four function calculator in python
I just finished my first Python GUI project, a simple four function calculator. I think I've tested it pretty thoroughly. I'm learning python and OOP, so any critiques would be welcome.
In general, ...
2
votes
1answer
68 views
Number representation for a calculator that works with very big numbers
I'm a beginner: I have learned concepts and features which I think I need in my project, but this is my first serious program and it is my internship project. I'm totally confused and need help to ...
0
votes
0answers
331 views
A simple calculator using an applet
I need help moving my solve code in my calculator into its own separate class.
...
1
vote
0answers
156 views
OOD for reverse polish notation calculator
I am new to OOD and trying to implement a notation calculator in java with OOD concept, attached is my code. It works but I have feeling it's not good especially the factory method is not good. I will ...
2
votes
1answer
139 views
Checking if a bag has enough coins in program
The objective of the program is to check that the weight of the bag that the user inputs and then calculate how many coins are needed to the added/removed to ensure the bag has the right amount of ...
4
votes
1answer
99 views
Student Marking Calculator
This is a student module marks calculator that I was asked to write for a uni revision session in year 2.
Is this a good example of modern C++ code? Is there anything I can improve on or need to ...
0
votes
2answers
111 views
Make simple calculations [closed]
The problem is instead of doing what is stated in the if statements, does the else line like the if statement is false. However, when printed the variables i am working with, seems i have managed to ...
3
votes
0answers
92 views
JavaScript calculator that uses eval
I am new to Javascript and jQuery. I made a calculator by looking at other calculators, codes. I don't know so much Javascript methods, so I stick to eval method ...
2
votes
0answers
54 views
wxPython shipping cost calculator
I developed a cost to ship app in python. To use this app, you will need to install wxpython.
Please review and tell me the areas i can improve.
...