Member Avatar
I am trying to make a calculator, but I can not seem to figure out how to get the = operation to work. Everything else seems to be working fine, but I am just really struggling with the =. Any guidance in the right direction would be super helpful! ...
by kayleigh0411 in Software Development ()
Member Avatar
Hello, i faced some problem in building the android calculator. The problems like this: 1) If i click 2 + 3, it worked well, and screen will show the 5.** BUT! when i clicked + and + and + and +...... it will continuosly add the answer. How can i …
by Lau_1 12 in Mobile Development ()
Member Avatar
It could be simplifide more, I know. I was doing it as an exersise so its rough and skecthy. But it's workable, I tested it more then 50 times.
by DragonMastur 23 in Software Development ()
Member Avatar
This is the updated version of the Tiny Tkinter Calculator. It has more power, since you can type in functions contained in the Python math module then press the equals key. You can then move the result into memory for other calculations. The code is written in OOP class style …
by vegaseat 1,720 in Software Development ()
Member Avatar
I needed a calculator and I didn't want to use google since my internet is slow. So I made one! Here it is. Working with it is simple. Use the number and operation keys("c" for clear, "p" for pi, and "s" for sqrt) as well as the return and enter …
by DragonMastur 23 in Software Development ()
Member Avatar
Hello everyone. I recently started using C++ and blah blah blah you know the rest. Using my extremely limited knowledge, I attempted to make a basic 4 function calculator CUI in C++. The code I wrote is as follows. include <iostream> include <string> include <sstream> using namespace std; char operator …
by Gimper in Software Development ()
Member Avatar
Hello, I have read the requirements of this challenge and I have a good understanding of what needs to be done. I am confident that my program works but it DOESN'T. What a blow to my confidence. I am in hopes that someone kind person would point me in the …
by dlmagers in Web Development ()
Member Avatar
i need help creating an pplication to calculate flooring costs. The application should allow the user to enter the room length and width in metres, and select a type of flooring from a set of radio buttons (see Figure 1). The program should include the costs for the different types …
by mehul12345 in Web Development ()
Member Avatar
hi thier i was wondering if you guys could hep me when i press equall it calculates but when i press equall again it adds the first number added, for example if i was to enter 3 + 2 = 5 if i press enter again it equalls to 8 …
by maurice.tracey.7 in Software Development ()
Member Avatar
Hi, i have just started programming with python and i have beken given a task where i must create a python calculator. So far i have created the code (seen below) however i need help explaining it-e.g. saying what each part of the code does: Any help would be much …
by Fighter01 in Software Development ()
Member Avatar
what im gonna do if two Jtexfield numbers in the calculator? how can i command all buttons numbers put to second textfield?:) -java
by Cris_1 in Software Development ()
Member Avatar
Hi, First of all, I'm a newbeginner in C++. Ok, basically I'm tring to make a calculator with functions. Every function calculates either addition, subtraction, division or multiplication, pretty simple. Though I can't get it to call these functions! Here, take a look at my code: Yeah. The compiler says …
by Christoffer_S in Software Development ()
Member Avatar
Can anyone help me with this homework assignment. Im so confused!!! Create a very simple four function integer calculator with buttons for Add, Subtract, Multiply, and Divide, and with two text-type input fields. When the user enters two numbers and clicks one of the buttons, the answer is displayed where …
by E J in Web Development ()
Member Avatar
Good time of day! I'm working on creating an Eulers Method Calculator program. The problem I got stuck on is I don't know how to convert the user's string into a Differential Equation (dy/dx). This is what I have so far: Fot the dydx user input, the user can input …
by Start4me in Software Development ()
Member Avatar
this one is driving me nuts so I hope you guys can school me a bit. My goal is to create a multiple-option dynamic pricing sheet for a product page. The concept I have is that all the information for the product is inserted in the database via relative tables. …
by oh2labs in Web Development ()
Member Avatar
So I am using a while loop and my problem happens when I try and run this code in an online compiler which doesn't have input, it keep looping forever and doesn't wait for input. Is there a way I can force it to wait ? Please note that it …
by KrazyCod3r in Software Development ()
Member Avatar
Here little debugged version of my calculator posted earlier in GUI calculator thread. I prepared it after listening that their teacher did more limited calculator in around 150 lines of code with their graphics module. This is 115 lines without empty lines and comment lines Save attached gifs to same …
by pyTony 880 in Software Development ()
Member Avatar
I am trying to make a calculator to calculate your age in dog years, the following is the code I have so far, minus the html portion of it I am having trouble multiplying the Your_age variable by 7 which would be the dog years compared to human years. Anyway, …
by levesque123456 in Web Development ()
Member Avatar
Hi, how i can fix my code to support keyboard input?
by Ms in Software Development ()
Member Avatar
Hello, I have this calculator program that compiles and runs just fine, but my loop will not break as intendend too, when I hit 5 it it still runs the options to enter a number, here is my code: I do not know exactly what I need to do, i …
by eldiablo1121 in Software Development ()
Member Avatar
i want to use uize's calculator in my website i am trying it for three days but can't it how to use it. Please if anyone can tell me how to use it then please let me know as soon as possible.
by hackit -3 in Web Development ()
Member Avatar
I was given a question from my college's e-learning blackboard: My code is the straight-through logic. See below: The result in the console application gave me like this:
by SpottyBlue in Software Development ()
Member Avatar
Hello how can i make a change calculator? for exmaple i want to buy an item thet cost 5.89$ and in canada no more 1 cents so how can round the number to 5.90?
by vadimak in Software Development ()
Member Avatar
Hello, I have been trying to figure out how to make an array work with a calculator that uses up to 100 different inputs to calculate sum, difference, standard deviation min max etc. When I try to compile the code I get (error: no match for 'operator<<' on line 64 …
by gobiking in Software Development ()
Member Avatar
Hello, I have been messing around and writing more and more intricate calculator programs on MVE C++. The issue I am having right now is my program is not running unless I give my add, sub, etc. a value. When I try to just leave them as int add; or …
by gobiking in Software Development ()
Member Avatar
Hello, I am new to C++ and I was trying to write a simple calculator program that has a do-while loop and also includes a series of != statements. Even though I make the statements with all the appropriate keystrokes it keeps giving me my invalid sign statement. Also, I …
by gobiking in Software Development ()
Member Avatar
Hello. This code snippet is a basic calculator. The general concept is that the calculator accepts infix expressions as strings, converts them to reverse polish notation by way of the shunting-yard algorithm and then evaluates the resulting expression. I tried to encapsulate the functionality of each piece so that, in …
by L7Sqr 227 in Software Development ()
Member Avatar
>equal button wont work =( /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package calculator; /** * * @author Gatongay Famiglia */ public class NewJFrame extends javax.swing.JFrame { double plusminus; double firstDouble; double secondDouble; double totalDouble; int plusClick; int …
by darylglenng in Software Development ()
Member Avatar
hi folks, im having a problem here on my code can't figure what's wrong.. so here's my code: here's my error: i post this cause i don't have an idea what my problem is.. the problem happens when i click enter for getting the result of the numbers that i …
by aabbccbryanmark in Software Development ()
Member Avatar
import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class Calculator extends JFrame{ // Declare GUI components private JTextField jtfFirst; private JTextField jtfSecond; private JTextField jtfResult; private JLabel jlblFirst; private JLabel jlblSecond; private JLabel jlblResult; private JPanel entryPanel; private JPanel buttonPanel; private JButton jbtAdd; …
by fazae in Software Development ()