150 Topics

Member Avatar for
Member Avatar for Member 785072

Hi people, I am currently teaching myself C++ with Stroustrup's "Programming, Principles and Practice using C++" and I'm stuck on one of the in-book exercises. It is a chunk of code (~180 lines) of buggy code that, when debugged properly, should create a calculator program. I have reached the limits …

Member Avatar for Matic_1
0
964
Member Avatar for joshl_1995

Hello DaniWeb Community, I'm making an online store and am wanting make a way to calculate the shipping the way I've got it at the moment is using [this](https://developers.auspost.com.au/apis/pac/getting-started). However, it isn't good for multiple items. So if one item is $10 and another (smaller) item is $5, so the …

Member Avatar for rproffitt
0
374
Member Avatar for wikit

Hi I'm trying to find a script that will allow me to set multiple options eg. option 1 = 40, option 2 = 15, option 3 = 30 etc where the user can select any number of the options and it will total the numbers up for them example there …

Member Avatar for Phaelax
0
469
Member Avatar for tkpanther

Hello, it is me once more. I am using Python 2.3, and I must use Zelle's graphics class (and I must agree with many of you. Tkinter is much better). We have been tasked with creating a Graphical Scientific Calculator. In addition to the normal operators, it must contain the …

Member Avatar for Gribouillis
0
22K
Member Avatar for kayleigh0411

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! import …

Member Avatar for JamesCherrill
0
1K
Member Avatar for Lau_1

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 …

Member Avatar for BenWard
0
412
Member Avatar for DragonMastur

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.

Member Avatar for Slass33
0
528
Member Avatar for vegaseat

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 …

Member Avatar for vegaseat
4
2K
Member Avatar for DragonMastur

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 …

0
686
Member Avatar for Gimper

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. [CODE]#include <iostream> #include <string> #include <sstream> using namespace std; char operator …

Member Avatar for rela
-2
3K
Member Avatar for dlmagers

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 …

Member Avatar for dlmagers
0
18K
Member Avatar for mehul12345

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 …

Member Avatar for iamthwee
0
1K
Member Avatar for maurice.tracey.7

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 …

0
163
Member Avatar for Fighter01

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: from tkinter import * root …

Member Avatar for Fighter01
0
955
Member Avatar for Cris_1

what im gonna do if two Jtexfield numbers in the calculator? how can i command all buttons numbers put to second textfield?:) -java

Member Avatar for JamesCherrill
0
159
Member Avatar for Christoffer_S

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: #include <iostream> using namespace …

Member Avatar for Schol-R-LEA
0
634
Member Avatar for E J

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 …

Member Avatar for urtrivedi
0
191
Member Avatar for Start4me

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: import static java.lang.System.*; import java.util.Scanner; class EulersMethod { public …

Member Avatar for Start4me
0
693
Member Avatar for oh2labs

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. …

Member Avatar for oh2labs
0
1K
Member Avatar for KrazyCod3r

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 …

Member Avatar for KrazyCod3r
0
301
Member Avatar for TrustyTony

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 [CODE]>>> li=[i for i in …

Member Avatar for fonzali
1
2K
Member Avatar for levesque123456

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 <?php if (!isset($_POST['your_age']) ) { header("Location: dog_form.html"); exit; } if ($_POST['your_age'] == "your_age") { $result = ($_POST['your_age'] *7; if ($_POST['your_age'] >= …

Member Avatar for diafol
0
344
Member Avatar for Ms

Hi, how i can fix my code to support keyboard input? /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package calculater1; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Font; import java.awt.GridLayout; import java.awt.event.ActionEvent; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; …

Member Avatar for JamesCherrill
0
3K
Member Avatar for eldiablo1121

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: import java.util.Scanner; public class calculator { public static void main(String[] args) …

Member Avatar for eldiablo1121
0
336
Member Avatar for hackit

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.

Member Avatar for LastMitch
0
223
Member Avatar for SpottyBlue

I was given a question from my college's e-learning blackboard: > Write a program that will act as a simple calculator. It should ask the user for a floating point number, an operator, and another floating point number. The program should first check the operator is either ‘+’, ‘-‘, or …

Member Avatar for sepp2k
0
260
Member Avatar for vadimak

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?

Member Avatar for vadimak
0
427
Member Avatar for gobiking

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 …

Member Avatar for gobiking
0
3K
Member Avatar for gobiking

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 …

Member Avatar for gobiking
0
220
Member Avatar for gobiking

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 …

Member Avatar for Labdabeta
0
287

The End.