150 Topics

Member Avatar for
Member Avatar for torrm

Hello all. A friend is shipping some items in a container so it gave me the inspiration to write a quick little program. This only took 20minutes at best so please bear that in mind. The basic idea is if the containers size is known, and the cost is known …

Member Avatar for Labdabeta
0
424
Member Avatar for v3ga

My objective is to implement a GUI calculator in java. I am thinking of passing the expression entered by the user to bc and then get output from terminal and print to user. My question is [LIST=1] [*]How to execute a terminal command from java so that i can pass …

Member Avatar for v3ga
0
350
Member Avatar for Gsterminator

Hey everybody! So my problem is the very last part, getting the results of my calculation. So what i've done is created a stack with my very own stack class. The = button is suppose to display the result but i get a runtime error. Please help me out. Oh …

Member Avatar for Gsterminator
0
2K
Member Avatar for kiki256

Hey, I have to build an addition calculator. in the application interface should have a label on top which displays the number you clicked then under the label a running total label and then under than there should be a keypad with numbers from 0-9 and a plus sign. my …

Member Avatar for abelingaw
0
287
Member Avatar for reynaud0000

Hi guys i need a little help fast i have a calculator and its giving me some problems This calculator reads from a text file the result shows in the terminal but its giving me some troubles For one only the + operator works I cant use the overflow function …

0
134
Member Avatar for thecoolman5

Hi. I am just wondering how to restore a number that is in scientific notation. So, take a number that is in scientific notation, turn it into standard form, and resave the variable in standard form. here is an example of outputing the variable amount in standard form: [CODE]n1.setf(ios::fixed); cout …

Member Avatar for raptr_dflo
0
241
Member Avatar for thecoolman5

hi, I have this code: [CODE]#include<iostream> #include<cstdio> #include<sstream> using namespace std; int main (char argc) {        float n1;        char operators;        string n2;        float n2_act;        float ans;        cin >> n1;        …

Member Avatar for thecoolman5
0
267
Member Avatar for thecoolman5

hi, I am making a calculator and i need a function that can detect a char in a string. In other words, i need it to detect a NON-number.[CODE]string n1 = "35+66/7"; int pos = -1; n1.find(char, pos+1); cout << char.n1_find << " was found at "<< pos << endl; …

Member Avatar for thecoolman5
0
619
Member Avatar for SuchANewb

So basically I have to write a simple calculator, that fine and I did it. The only problem is it can only operate on the 2 numbers which the user puts in. I want to make it like a real calculator that you carry around in your pocket. Example: "Calculate: …

Member Avatar for dheaven
0
357
Member Avatar for pwnerboy

Here's my code: bigInt.cpp [CODE]/ // bigInt.cpp #include "bigInt.h" bigInt::bigInt() { int i; for(i = 0; i < SIZE; i++) //Sets all the values of digits to 0. digits[i] = 0; sign = true; numDigits = 1; error1 = true; overflowFlag = false; } bigInt::bigInt(const char temp []) { int …

Member Avatar for pwnerboy
0
1K
Member Avatar for seion

Practicing C++ and here is two of the practice problems I pulled from the FAQ And practice post. Just want feedback and issues with the way I wrote these. Simple Calculator [CODE] #include <iostream> #include <string> #include <sstream> #include <stdlib.h> using namespace std; int main(void) { //cout << string(50, '\n'); …

Member Avatar for Clinton Portis
0
152
Member Avatar for ddanbe

This is a series of 3 code snippets which together form a completly working "calculator". I used a console application in VS C# 2008, but 2005 should cause no problems. To start with : here you have the code for a scanner class. A scanner reads the inputline and tries …

Member Avatar for ddanbe
1
2K
Member Avatar for t1suka

Hello, I've been trying to code a TrueSkill calculator using Java that fetches scores and updates them in a MySQL database. I finished coding it however it appears to have a problem while executing. This is an example of what I want the output to be like: [QUOTE]connecting to database …

Member Avatar for t1suka
0
342
Member Avatar for heptasarim

Hello. I am new this perfect designed forum. About 1 week I have been searching that subject. I develope a site about study abroad. I want WP not Joomla or Drupal. Now the client as my friend wants a perfect site with search properties (by city, by price, by university) …

0
144
Member Avatar for Siimont

Hello! I'm doing a calculator in c# and I have one problem. I can't get the "%" button to work. I want it to work just like microsofts calculator and it would be great if annyone could help me! :) Its the code for how to calculate it I need!

Member Avatar for aadisabri
0
2K
Member Avatar for Raim

So I'm making a simple calculator program on the Windows Form Application of C++. Nevertheless, I'm stuck on the exponents, factorial, and square root part. In my System32 Console calculator, these were the codes I use for the exponent, factorial, and respectively, while I just used the sqrt function of …

Member Avatar for Raim
0
391
Member Avatar for Macilath

Hello all, As part of a homework assignment, we're to take [URL="http://stroustrup.com/Programming/calculator08buggy.cpp"]a given buggy calculator[/URL] and correct the errors. Once that's done, the assignment is to add the sqrt() and pow() functions to said calculator. This is from Stroustrup's Programming, Principles and Practices using C++. I've been working on the …

Member Avatar for Zekorov
0
2K
Member Avatar for Superandomness

Hi there, I'm making a simple C++ calculator. I want it to work something like this sample run: Begin Calculations 10 S // Set Accumulator to 10 = 10.000000 // Contents of Accumulator 2 / // Divide by 2 = 5.000000 // Contents of Accumulator 55 - // Subtract 55 …

Member Avatar for Superandomness
0
172
Member Avatar for jonkim9483

hey guys, new to daniweb here. This is my first assignment in my first C class at school. I'm having some trouble getting the program to work, was wondering if you folks could give me some tips. I believe I have most of the code down, I think my issue …

Member Avatar for D.M.
0
368
Member Avatar for Prisms

Ok guys I'm almost done with my GPA program but I hit a snag. everything works fine but when I insert a letter grade the program doesn't read what number it corresponds to and sets double number to zero. Can some please let me know what I'm doing wrong. [CODE]import …

Member Avatar for Prisms
0
5K
Member Avatar for Prisms

Hey guys I'm new to java and was wondering if I could have a little assistance. I need to have a user input their number of classes, hours for each class and the grade they received after the information is given i need to calculate their GPA. I have gotten …

Member Avatar for Prisms
0
3K
Member Avatar for hackit

guys i just read a vulnerability in the calculator of windows. vulnerability is like this: *) open calculator *) type 4 and then take its square *) then minus two from the result shocked.... answer should be 0 but it shows a different answer.. please help me on this.

Member Avatar for Reverend Jim
0
178
Member Avatar for TrustyTony

Very trivial program which could be thought as conclusion from the Quiz posts (thanks Gribouillis for inspiration for format)

Member Avatar for TrustyTony
0
191
Member Avatar for ionko

I'm trying to make a price calculator for my friend's car shipping company. It seemed like a simple thing to do but with my skills I'm having some problems. The calculator takes the distance from zipcode 1 to zipcode 2, and mutplies the total miles by .32 to get the …

Member Avatar for ionko
0
251
Member Avatar for thecoolman5

hi, I am trying to make a calculator and I need the stringstream function to convert a a certain part of a string.[CODE]string n1 = "243+79"; int n2 = 0; stringstream(n1[0-2]) >> n2; // this converts the 243 from n1 to an int[/CODE] Any solutions?

Member Avatar for thecoolman5
0
336
Member Avatar for Thoronath

Hi. I wrote a calculator that calculates the given expression (eg, 2 +3 +4-3-1), it works only if you type expression and press ctrl-d, what i have to do to display the result after pressing enter Here's the code: [code] #include <stdio.h> int main() { printf("give expression \n"); char expression; …

Member Avatar for Thoronath
0
209
Member Avatar for thecoolman5

Hi, i am trying to make a BMI calulator and here is my code: [CODE]#include<iostream> #include<sstream> #include<fstream.h> using namespace std; int main (char argc) { double ff1; double ii1; double ww1; for(;;) { system("cls"); cout << "Enter feet." << endl; string f1; cin >> f1; stringstream(f1) >> ff1; if(ff1 >! …

Member Avatar for thecoolman5
0
957
Member Avatar for vikaspa

Dear All To conduct online exams we need to set timer for say 60 minutes or 90 minutes after this time the user should be logged of fiocrcefully Please help me for the code in php Can I use session for this ...

Member Avatar for urtrivedi
0
715
Member Avatar for VBNewUSer

Good day to everyone:) , i'm a new user here and i'm also new to Visual Basic , i'm having problems coding the codes myself. It's an assignment for me from school , after attemtping it for a few hours , I'm almost finish but i'm having trouble in the …

Member Avatar for VBNewUSer
0
1K
Member Avatar for BlackGazer

My operators are pretty much working well, but the problem is every time I do an operation (example: 1+2 = 3) and then tried clicking another number the number that I clicked adds up with the result (so this is what happens, the result is 3, then I click 7 …

Member Avatar for contra_shadow
0
309

The End.