Questions tagged [calc]

calc refers to anything remotely related to anything about calculating anything. Because of its vague purpose, it should be avoided.

refers to anything remotely related to anything about calculating anything. Because of its vague purpose, it should be avoided.

383 questions
-3
votes
2 answers

n-by-n integer array

Problem statement: I want to write a program that reads in a positive integer n from standard input and creates an n-by-n integer array a[][] such that a[i][j] is the product of (i+1)th row with the (j+1)th column. Current Code: Scanner input = new…
-3
votes
2 answers

How to run calculation after methods are defined in Ruby?

Trying to find the future value of a single amount. I have created and defined the present value, rate and years. They all work together and now I am trying to figure out how to take the numbers entered for each and calculate them for the final…
Renee
  • 7
  • 2
-4
votes
2 answers

How to use a formula (in string format) to calculate values

How can I accept a formula from an input field to calculate a value? For example "(a+b)/100", "(a*b)/300" "(b/a)", etc. The result should be the calculated value. So, given A = 100; B = 200; and the formula is "(a+b)", the result should be 300.
sumit
  • 11
  • 3
-4
votes
1 answer

How can I make this calculator work

I am having trouble, as you can see in code, for the result3 as id i have op1, what I would like to have there so that it works is that id changes depending on the button pressed, how can I do that? because now every button is like a +.
-4
votes
1 answer

Why javascript counted wrong?

Why javascript counted wrong? console.log(3*9.7) // =29.099999999999998? console.log(3*97/10) // = 29.1
-5
votes
1 answer

Calc many value with many arithmetic operators c++

#ifndef CALC_H #define CALC_H class calc { double numb1; double numb2; public: calc(); void FUN_SUM(); void FUN_Subtraction(); void FUN_Multiplication(); void FUN_Division(); void…
ebdaa3sea
  • 15
  • 8
-6
votes
4 answers

How to Convert Feet to meter in JS on Document ready?

I think its simple but i dont find any solution

12

How can i simply automatically calc at "document ready" to meter? I dont need a button just a simple calculation
Antonio
  • 29
  • 2
-6
votes
1 answer

simple calculator that shows the different between 2 numbers in C#

first of all sorry for my broken language. i would like to create a calculator that shows the different between 2 numbers in C# i tried to make it but i always end up with adding the textbox 1 to the textbox 2 and displaying the total in text box 3,…
1 2 3
25
26