This tag is for questions about calculators.
3
votes
1answer
53 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
55 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.
...
7
votes
1answer
363 views
0
votes
1answer
57 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 imput on ...
4
votes
1answer
72 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
48 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 ...
3
votes
1answer
76 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
94 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 ...
-3
votes
1answer
55 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 ...
4
votes
1answer
61 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
114 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
103 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
104 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
66 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
73 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
121 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
85 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
63 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
60 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
51 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
107 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
93 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
57 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
80 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
49 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.
...
5
votes
1answer
100 views
Basic calculator program in Python
I was writing a basic calculator program to practice my skills at python.
I'm a beginner at Python and was wondering if there is a way to simplify this code of mine? It seems a little bit too long and ...
4
votes
3answers
615 views
For a given balance and an annual interest rate, calculate the minimum fixed monthly payment to pay off debt in a year
Interest is compounded monthly. Payment doesn't vary from month to month.
Version 1
...
4
votes
2answers
63 views
Musical Note Length Calculator in C
This is my first ever program in C and I was just tinkering around with this idea, as I'm on a music based course and the synth plugins all use milliseconds as its time.
Any improvements to make it ...
8
votes
2answers
486 views
Velocity, Distance and Time Calculator
This is a velocity, distance, and time calculator that I wrote not too long ago. How can I improve upon this code?
...
3
votes
2answers
71 views
Python Calculator using tkinter
I created a basic desktop calculator using Python. Does anyone have any suggestions as far as coding best practices, readability issues, or just generic coding mistakes I might have missed? Any ...
4
votes
1answer
65 views
Python adding machine
I was wondering if there is any way to make this code smaller/condensed. It is for a school project which says it has to be as small as it can be and I am not sure whether it can go any smaller.
<...
2
votes
1answer
176 views
BMI calculator as a C++ console application
I am pretty new to coding and I wanted to know how to use header and source files to organize a C++ project. I could not yet find out how I should use header and source files to still have my project ...
6
votes
1answer
201 views
Simple calculator in Android Studio
I have been learning Java for a few months now and have created a basic calculator application in Android Studio for a school project. Since this is my first attempt at programming, I am sure that my ...
6
votes
3answers
110 views
Python calculator
I'd appreciate any comments about my Python calculator, ways in which it can be improved and where it's currently lacking.
...
4
votes
3answers
102 views
GPA Calculator that takes letters or numbers as input
The program is complicated. I didn't call any class because it was hard for me using classes.
Did I do something redundant or did I miss something?
...
0
votes
0answers
58 views
4
votes
3answers
1k views
Reinventing the basic calculator functions
I decided to reinvent the basic calculator functions using only:
the set of positive integers
greater than, less than, and equality properties
increment and decrement
(in other words, the counting ...
4
votes
1answer
98 views
Ohm's Law calculator
I'm looking for ways to make this calculator more efficient and/or make the code a little easier to read.
...
7
votes
1answer
95 views
Sum numbers input from terminal
The following Golang code accepts a sequence of numbers (any integer and float type) in the terminal, adds them, and prints the result (sum) to the terminal.
Actually in Golang you can't add ...
5
votes
2answers
84 views
Pool volume estimator
I am looking to make the following code more efficient since it it rather lengthy. However I need to include in the code constructor classes that include accessor methods for the container number, ...
1
vote
0answers
158 views
Simple React calculator - child/parent component communication
Does anyone have any critique of these ~180 lines of React, specifically this?
...
6
votes
2answers
173 views
Beginners project: calculating area
This was my second project as a beginner in Java programming. Please provide feedback/ tips on my program.
...
3
votes
1answer
136 views
Basic Calculator in Java 8
I was reading this post and saw quite few improvements. So I tried to rewrite it using Java 8 features. Any improvements you can spot, please feel free to mention.
...
3
votes
7answers
324 views
Beginners Java calculator
I am a beginner in Java programming, and I created a calculator as my first Java project. Therefore, can you review my code and provide feedbacks/ tips?
...
7
votes
2answers
823 views
Homework to display a square and calculate tips
Here's a simple school assignment I did:
Problem 1: Write a program that asks the user for a positive integer
no greater than 15. The program should then display a square on the
screen using ...
5
votes
1answer
231 views
Celestial age calculator
Our solar system has 8 planets, including earth. Our calendar has some very confusing concepts such as leap years, which I still don't fully understand. In fact, since where I live, we use a different ...
1
vote
0answers
99 views
Code that checks input for calculator app
I made an Android app, a calculator, that uses buttons for input, Android keyboard is turned off. I have a block of code, that handles the input to string and checks for some things at the same time. ...
2
votes
1answer
100 views
Weightlifting calculator
I'm building a simple iOS app using Swift that calculates the One Rep Max weight a user can theoretically lift. User inputs a weight lifted, the number of repetitions and the app uses one of several ...
10
votes
1answer
284 views
A prefix notation calculator that asks about everything step by step
I made a prefix notation calculator.
Prefix notation, aka Polish notation, is a form of notation for logic, arithmetic and algebra, like infix and postfix (reverse Polish) notation.
The expression '+...