Skip to main content
Filter by
Sorted by
Tagged with
0 votes
2 answers
90 views

I'm new to Python and I am building a simple interactive calculator as a project. When I run the code in the terminal, it takes all the inputs but does not return the final output. The code restarts ...
new_coder's user avatar
0 votes
1 answer
113 views

I am a bare bones beginner, so there definitely could be something obvious I'm missing, but for some reason this code keeps outputting the first variable instead of the sum, subtraction, etc. #include ...
Hsdhx Ahkdfbsj's user avatar
2 votes
1 answer
54 views

#ifndef TOKENTYPES_H #define TOKENTYPES_H #include <string> enum class TokenType : int { NUMBER, OPERATOR, FUNCTION, PARENTHESIS }; struct Token { std::string value; TokenType type; };...
Sara Fielders's user avatar
0 votes
0 answers
91 views

EDIT I found my problème I'm so dumb ... was because I use a <ListItem key={index} button onClick={() => (entry)}> and on that the key 'Enter' was trigger too ... My bad I'm having a problem ...
hugo sudre's user avatar
-1 votes
1 answer
58 views

I have Three lists, list1 contains the first value, List2 contains the second value, and the third contains characters. How do I make mathematical operations based on the signs stored there work with ...
Матвей Шавлов's user avatar
0 votes
0 answers
167 views

I have this new calculator (HP Prime Pro G2) and I am trying to program some script, but I am having some trouble with it. I have two problems: I am trying to define some LOCAL variables. However, ...
user22603186's user avatar
0 votes
1 answer
48 views

I am working on a simple calculator using HTML, CSS, and JavaScript. The calculator displays numbers and operators correctly, but when I press the "=" button to evaluate the expression, I ...
Aleena Jane's user avatar
-1 votes
2 answers
83 views

I'm writing a program in Python for a calculator, and I'm trying to implement a history system. However, when I need to access the history, I use the symbol to access it, but it keeps telling me that ...
somerandomboi's user avatar
-1 votes
1 answer
39 views

whenever i use hcf in this calculator code infinite loop won't work but in other operations like +-*/% infinite loops works fine.how do i solve it?which should i write to allow infinte loop working ...
Tarikul islam Tarif's user avatar
-1 votes
1 answer
39 views

image file - Price calculator Hi. I am new to coding and started to write the code for my air conditioning price calculator. The code is currently looking like this: var input1 = document....
Viktor Tar's user avatar
-3 votes
1 answer
55 views

java.lang.ClassCastException: android.widget.Button[] cannot be cast to android.widget.Button at &...
Muhammad Hasnain Munir's user avatar
1 vote
0 answers
91 views

I want to create a program in my TI-84 that allows me to quickly generate unit complex-numbers given an angle x (that is, generate cos(x) + isin(x)), essentially so I can do 2 dimensional vector math ...
xKiwiNova's user avatar
0 votes
0 answers
170 views

I am trying to pick up Distance Calculation miles pricing in WordPress but I have not succeeded yet. any help would be appreciated. Here is my code. but I don't know what is wrong with my code. HTML ...
Masud Chowdhury's user avatar
1 vote
0 answers
61 views

I'm developing an Android app called "Scientific Calculator" with Jetpack Compose, and I've successfully implemented the square root operation for simple cases like √4 and √4*2. However, I'm ...
Sundaram Pandey's user avatar
1 vote
2 answers
102 views

I am using TI-nspire spreadsheets I want to find the number of values that are greater than 5 and less than 10 the numbers are stored in a column called "data" and also in cells A1 to A5 the ...
Arty Artanis's user avatar
0 votes
1 answer
119 views

I would like to play a video (with python) on my HP Prime G2. I know this sounds stupid but please. So, I already converted the video to a list of pixels but I realise that drawing the pixels one by ...
Kodeur_Kubik's user avatar
0 votes
0 answers
34 views

I wanted to create Js calculator,so I got a problem with displaying the results of my code on textarea. <!DOCTYPE html> <html> <head> <meta charset = "UTF-8"&...
MaximSap's user avatar
0 votes
1 answer
109 views

I am using AWS Location Services Route Calculator to determine travel time and travel distance of several origin destination pairs. The code is working but it is not reflecting travel delay due to ...
Jorge's user avatar
  • 368
0 votes
3 answers
85 views

This code is working fine to develop the GUI but whenever I click a button on GUI, nothing happens, no changes occur to textbox. I checked if the functions are being called by using print statements ...
Minahil Khawaja's user avatar
1 vote
2 answers
135 views

'm trying to write a basic calculator program in C using MinGW. However, the program exits unexpectedly after I enter the operator (+, -, *, or /). I've checked for common errors like missing return 0;...
mati's user avatar
  • 19
0 votes
3 answers
97 views

I've just gotten into programming and I tried to figure out how to create a calculator using tkinter and I couldn't for the life of me get the clear button to work. Every other button works, but the ...
PSapola's user avatar
1 vote
1 answer
104 views

I have this architecture: One backend with two MIGs with different regions, asia-southeast and europe-central. When I want to calculate Cloud Load Balancer in GCP, it asked me to specify the REGION ...
Muhammad Ikhwan Perwira's user avatar
1 vote
1 answer
48 views

I found this calculator code on Github and wanted to know how it works to execute events when clicking buttons. The "button_click" method appears in the code, but I don't understand how it ...
NickMO's user avatar
  • 21
1 vote
1 answer
124 views

I am trying to create a calculator and unable to calculate negative numbers because my current logic splits displayValue which is a string using regular expressions(Regex) to separate numbers and ...
Muheet Hazarika's user avatar
-1 votes
1 answer
62 views

#include <stdio.h> #include <string.h> #include <stdlib.h> int compare(char* num1, char* num2) { int length1 = strlen(num1); int length2 = strlen(num2); if (length1 <...
고예빈's user avatar
1 vote
1 answer
68 views

I tried to make calculator using assembly language, here is my code: .model small .stack 100h .data greeting db 'WELCOME TO YOUR CALCULATOR', 0Dh, 0Ah, '$' menu db '1 - ADDITION', 0Dh, 0Ah, '...
Gigi20's user avatar
  • 11
1 vote
2 answers
61 views

I want to be able to enter a single variable of 'hours' and return a result of 'price' where more hours = higher discount Here is my sheet with the % discount:hours = price https://docs.google.com/...
Trusty777's user avatar
1 vote
1 answer
44 views

.model small .stack 100h .data greeting db 'WELCOME TO YOUR CALCULATOR', 0Dh, 0Ah, '$' menu db '1 - ADDITION', 0Dh, 0Ah, '2 - SUBTRACTION', 0Dh, 0Ah, '3 - MULTIPLICATION', 0Dh, 0Ah, '4 - ...
Rusty Dalit's user avatar
1 vote
2 answers
72 views

switch(choice) { case 1: double sum = 0; for (int i = 1; i <= 5; i++) { System.out.println("Enter " + i + "th number: ...
Prime Yt's user avatar
0 votes
1 answer
59 views

I am writing a calculator for ADHD medication dosages. However, when I press "Convert!" I have to click it several times for the placeholder text to appear. What's going on? Nothing I try ...
Tilly's Spam Emails's user avatar
1 vote
1 answer
54 views

Per the Odin Project's instructions, I need to make my basic calculator operate via math functions rather than using eval(). https://www.theodinproject.com/lessons/foundations-calculator I've only ...
Reginald86's user avatar
0 votes
1 answer
108 views

package kotauto; import java.util.ArrayList; import java.util.Scanner; import java.util.concurrent.TimeUnit; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException;...
Bartek Kopyt's user avatar
-1 votes
1 answer
69 views

Please I need the full program of a calculator that calculates the sum, the subtraction, the multiplication, and the division of 2 operands 64 bits each. Because the registers in 8086 microprocessor ...
user25042064's user avatar
0 votes
0 answers
58 views

So, I want to make a calculator that will calculate this formula: Result = No. of Attendance / (No. of Students * No. of School Days) but I want the No. of students to be counted automatically by ...
Blueberry's user avatar
-1 votes
1 answer
59 views

While trying to expand the interface of my JS calculator project, I decided to add a keyboard interface so that you can write directly in the input box with your keyboard. I also decided to have an ...
The frontender's user avatar
0 votes
1 answer
47 views

I have a problem with my macros that use a Bing API key to calculate the distance between the postal codes 36088 and 10117. The calculation from 36088 to 10117 (436.809 km) is correct, but the ...
Mustafa Erk's user avatar
0 votes
0 answers
52 views

I've encountered a problem in my code with CTkScrollableFrame and labels. I am working on a calculator application using custom tkinter. The calculator is divided into 2 frames - display and buttons. ...
Maťo Valapka's user avatar
0 votes
1 answer
50 views

I'm new at python and currently learning GUI tkinter in python, I am very much inspired by the code of a tic-tac-toe game and thought that what if I could make calculator out of it, so I tried and ...
Piston Dev's user avatar
-1 votes
1 answer
83 views

I have searched and unable to find formula for this calculator. https://www.saltyunderground.com/support/berghia-calculator.html Open source page and locate formula then use to create custom ...
Tim Dalby's user avatar
1 vote
3 answers
129 views

I want all the columns to be together towards the left side of the table, but nothing i do is able to change the gap between the first column and the second(and third) columns. How do i fix this? <...
Charles's user avatar
  • 13
0 votes
1 answer
96 views

I am writing a program for the ti-84 using python. It is designed to get a differential equation from the user, process it, and draw a slope point field for that equation. The part that is giving me ...
Finn Pearson's user avatar
-3 votes
1 answer
62 views

I've written a simple calculator in Java that takes user input for two numbers and an operator. It's supposed to perform the corresponding mathematical operation and output the result. However, my ...
Sebastian Kramer Garfias's user avatar
0 votes
1 answer
144 views

I am in the process of developing a cart system, and encountered some challenges with rounding certain amounts during calculations. Below are the details of my cart. itemPrice = 0.99; itemQuantity = ...
VR Patel's user avatar
-1 votes
2 answers
732 views

My goal is to make a calculator in c++. I'm using Visual Studio Code. The calculator will include calculation order (First parantheses, then * and /, then + and -). In the terminal you write an ...
Canyon's user avatar
  • 91
1 vote
1 answer
450 views

I saw a code like this that could be run on the bash prompt: bc fibonacci.bc <<< "fibonacci(1)" A function fibonacci(n)is defined in the file fibonacci.bc. The syntax of the ...
Kamalakshi's user avatar
  • 7,688
0 votes
1 answer
118 views

I have an expression in string for example formula="333333333333333333+222222222222222222" I am trying to calculate the value of the expression to be accurate upto 18 digits. to calculate I ...
akaparadox's user avatar
0 votes
0 answers
24 views

I am trying to access the "meaning" from this API link, but every time it does not return anything? API link:https://api.dictionaryapi.dev/api/v2/entries/en/hello <div class="word-...
user23443961's user avatar
0 votes
2 answers
285 views

I am new to Javascript and built a basic calculator. I want to add a function that allows me to input negative numbers using a toggle feature. However, when I try to use it, it only makes the first ...
Sethi Sab's user avatar
0 votes
1 answer
57 views

I've been trying to create a calculator using tkinter but I got a problem in storing numbers so that I can calculate using operators.I tried to store the value in number but when I press the = key the ...
Nanika's user avatar
  • 21
1 vote
2 answers
204 views

I'm developing a scientific calculator in android studio using java. I have used Streatergy Design Pattern for handling operations as well as Shunting Yard Algorithm for the calculate function where ...
Komuthu Fernando's user avatar

1
2 3 4 5
93