Calendar Awards Members List FAQ
Advertisement
Play-Asia.com - Buy Video Games for Consoles and PC - From Japan, Korea and other Regions
Reply
$ Thread Tools
 
  #1 (permalink)   [ ]
Old 11-02-2006, 12:31 AM
Gokussj1420 United_States Gokussj1420 is offline
I am the right hand of destruction
Join Date: Aug 2005
View Posts: 598
C++ help!

Hi I am in a C++ programing class at school and I need help with making a program. I am stumped.
The lab is on numeric arrays. The program will simulate a checkbook. Here is what the teacher asks for in the program.


1. Operator enters the beginning accoutn balance.
2. Use a loop to enter transactions (checks and deposits) into arrays.

Method 1 Method 2
use positive numbers for deposists. Enter 'D' for deposit.
Use negative numbers for checks. Enter 'C' for check.
Enter zero to exit the loop. Answer 'N' to exit loop.

3. When operator signals to end the loop, display the following:
a) The beginning balance.
b) A listing of all checks, number of checks, and their total.
c) A listing of all deposits, number of deposits, and their total.
d) The ending balance.

Structure/Coding:
1. You will need two arrays to store the checks and deposits.
2. Develop your algarithm before you begin.
3. Minimum functions to implement your logic.
a) Process a check as it is entered.
b) Process a deposit as it is entered.
c) List checks with their number and total.
d) List deposits with their number and total.
4. Test data - Enter in order shown:
Beginning Balance
$328.75
$225.80
$42.50-
$170.68-
$32.95-
$225.80
$355.00-
$12.06-
$65.37-

If anyone can help me out and show me how to write this program, I would greatly appreciate it.
__________________

Thanks for the sig and avy V99
Reply With Quote
  #2 (permalink)   [ ]
Old 11-02-2006, 12:35 AM
Aerorian Aerorian is offline
Sage of Wisdom
Join Date: Aug 2003
Location: Within Midnight
View Posts: 5,877
Re: C++ help!

Man, if you could have asked this two years ago, I would have told you the solutions. But now I need some memory refreshments because I've forgotten all the C++.

No one is going to do your assignment for you. If you can, post whatever code you have up till now so that others can see where you are stuck on. No one will code the thing for you from the beginning.
__________________
[Valice.Net] [Click to save humanity] [ZU Psychologist] 6,000th post - 2007/02/03
Reply With Quote
Advertisement
  #3 (permalink)   [ ]
Old 11-03-2006, 12:51 AM
linkw United_States linkw is offline
Gerudo Thief
Join Date: Nov 2006
Location: Yo Mama
View Posts: 55
Re: C++ help!

I can give some crappy help,make variables for balance,deposit,Payed _to_who,and payed.
make it so when you press "c" the prompt will ask you "how much did you pay?"After you enter $5 or whatever make it write the value payed.Now make the prompt ask"And to who did you pay to?"After you enter bob or something,make it write it to the Variable payed_to_who.

for deposits,just do the first part of the withdraw part.
Now you can do the rest,right?


Im still not too good,and i could write you a script,but that would be cheeting.

P.S.im 11
Reply With Quote
  #4 (permalink)   [ ]
Old 11-03-2006, 07:10 AM
Gokussj1420 United_States Gokussj1420 is offline
I am the right hand of destruction
Join Date: Aug 2005
View Posts: 598
Re: C++ help!

Thanks linkw for the help. I ended up getting it done. And if your only 11 and you know that much about it then keep heading down that path becasue you would make a good programer. I on the other hand, im 20. But I have never done any of this in my life. But i think im starting to get the hang of it. Thanks agian.
__________________

Thanks for the sig and avy V99
Reply With Quote
Advertisement
  #5 (permalink)   [ ]
Old 11-03-2006, 09:05 PM
linkw United_States linkw is offline
Gerudo Thief
Join Date: Nov 2006
Location: Yo Mama
View Posts: 55
Re: C++ help!

Thanks 4 the advice
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -5. The time now is 02:19 AM.

Contact Us - Zelda Universe - Archive - Privacy Statement - Top
no new posts