GIDForums  

Go Back   GIDForums > Computer Programming Forums > C Programming Language
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #11  
Old 17-Nov-2006, 04:48
mathematician mathematician is offline
Member
 
Join Date: Nov 2006
Location: Shrewsbury Uk
Posts: 133
mathematician will become famous soon enough

Re: BOOKEEPING program, HELP!!


If your problem is with the actual programming, you need the input of the other people here; if your problem is with the logic you need mine.

The trouble is, I don't know how much you already know, and, if you put in things you haven't covered yet, your tutor will know that it didn't come out of your own head. The fact that you refer to the structure definition as a chart suggests you haven't covered them yet, and maybe you haven't covered file input/output either. If both of those is the case, you are probably being expected to store the input in arrays.

Or is your problem in understanding the book keeping terms? I don't know.

However in a kind of pigoen English rather than C:

define array of maybe twenty integers for account numbers
define array of maybe twenty floats for transaction ammounts, etc.

choice = 'x'
index = 0;

index = 1

until user wants to quit, or arrays are full, and you can't accept any more input
{
get user's choice

if user wants to enter transaction
{
get account number
store number in account_array[ index ]
get amount
store number in amount_array[ index ]

==== etc ======

when finished getting input for this transaction increment index by one
}

if( user wants to see journal )
{
use data you have got stored in the arrays to show jounal entries,
probably using the printf function to do it.
}

if( user wants to see balance sheet )
{
similarly, use data in arrays to do it, and use printf to display
balance sheet on screen
}

if( user wants to quit )
quit
}

end of program
 
 

Recent GIDBlogAccepted for Ph.D. program by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pipeline freeze simulation darklightred C++ Forum 6 27-Jul-2006 20:37
How to read particular memory location ? realnapster C Programming Language 10 10-May-2006 10:11
creating a file in [c] i hate c C Programming Language 15 21-Nov-2005 13:52
Type casts ? kai85 C++ Forum 12 23-Jun-2005 13:04
fltk-2.0 cvs Plumb FLTK Forum 20 13-Nov-2004 08:10

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 21:42.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.