1. ## newb help

Hello all.. I need a bit of help making sure I am going in the right direction on a simple program ..The compiler I am using is Dev-C++ 4.9.8.0.

User types bolded information:

Input the opening balance: 5000
Input the amount of deposits: 3000
Input the amount of withdrawals: 2000

The opening balance: 5000
The amount of deposits: 3000
The amount of withdrawals: 2000
= = = = =
The closing balance: 6000

2. So, what is the direction that you have taken? Your calculations look good to me.

3. I need help writing a program that asks the user to enter the dollar amount of the opening balance of an account, the dollar amount of the deposits to the account, and the dollar amount of withdrawals from the account

4. I need help writing a program that asks the user to enter the dollar amount of the opening balance of an account, the dollar amount of the deposits to the account, and the dollar amount of withdrawals from the account
I can see that. I can also tell that you have not read about our Homework Policy.

5. How long would it take you to write this program?

6. ROFL!

It would probably take laserlight under 5 minutes (we're probably talking seconds, not minutes).

7. Wow I'm impressed! Thanks anyway..

8. Well you'd need to declare your 3 variables (total (we'll call the amount you first put in the account total), deposited, and withdrawn), as integers (if they're values like your examples), or floats (if they're values with decimals, currency usually is). You'd need to take the total input from the user first, take the deposit input and add that, and then take the withdrawn input and subtract that. Then simply print your total variable.

9. Originally Posted by MacGyver
ROFL!

It would probably take laserlight under 5 minutes (we're probably talking seconds, not minutes).

We're not going to spit out the answer for you. Try it, tell us what went wrong or what you don't understand and then we'll help you if we judge you tried hard enough.

10. Okay no problem, I will post what I have so far when I get off work

11. Originally Posted by surfking
How long would it take you to write this program?
Timed myself: 136 seconds (2 min 16 sec)

12. Ouch, it hurts. It took me an amazing 4:20... I made a stupid mistake and needed to rewrite a good part of the code =/ What a shame.

13. Now, this sounds like a real Challenge in C++
Took me just under 100 seconds, but I cheated with copy/paste of the text

14. Took me 00:05:30.110 to write it out, test it, and guarentee it worked, in addition to making the format all pretty looking. Java messed me up and I was using + instead of << to print the variables (No, I can never remember what language I'm using.).

Interesting output, though. lol....

Edit: Redid the basics of the program in C in 00:02:23.609 without worrying as much about formatting.

15. I did it in about 116 seconds, but I too used copy and paste
Now that I've answered the standing question, I feel like writing something meanful.
To thread creator: check this awesome page out: http://www.cprogramming.com/tutorial.html