Re: Simple Bank Code Problem
[ removed duplicate thread ]
Do not start multiple threads about the same issue.
Re: Simple Bank Code Problem
Quote:
Originally Posted by
sarita.stuff@hotmail.com
...
I started some code with the help of a friend, but I don't think it is correct. Can someone help me?
Here is was I had written before, thought I don't really understand what I have done.
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
double 0.0;
double fee;
double checks;
double deposits;
double balance;
double balance = balance + checks+ deposists;
cout << "balance: ";
cin >> checks, depsits
system("PAUSE");
return 0;
}
- Well, did you try to compile this code? :confused:
- What let you doubt "it is correct"? Have you got wrong result using this code?
Re: Simple Bank Code Problem
Quote:
Originally Posted by
Marc G
[ removed duplicate thread ]
Do not start multiple threads about the same issue.
Hi Marc G, sorry about the double post! I thought I lost the first one and I couldn't find it so I made another. I'm still getting lost trying to navigate through the site, but thank you!
Re: Simple Bank Code Problem
Quote:
Originally Posted by
VictorN
- Well, did you try to compile this code? :confused:
- What let you doubt "it is correct"? Have you got wrong result using this code?
Yes it gave me an error message. I realize now that I misspelled some words but the code still isn't quite working.
I'm trying to use the starting balance, add deposits, and subtract checks in order, take 3% of all the deposits and add it to the daily profit, then finally total up how much money the bank has at the end of the day.
When I solved the problem on paper, the end total came out to around $65.
Re: Simple Bank Code Problem
One thing that will help you is to input values into your variables before you do the calculations with them.