Hi everyone! please help me code this. . .
i only know about functions and i've tried coding this but i dont know if statements yet or loops,
Write this program using user-defined function.
Make a program that would do a simple bank account system. The program should contain at least two functions for the two major bank account transactions: deposit and withdrawal. Implement this program in a menu drive like application wherein the user will have the option to choose any transaction listed in the menu.
i would really appreciate the help.
Please help O:)
Post a Reply
|Oldest Newest Rating|
· September 9, 2014
I won't write the code itself, but when you are not aware of a solution immediately it's important to write the basic program in pseudocode first. This will allow you to obtain a better understanding of the logic that must be followed.
Since it just says use user-defined functions rather than creating classes, we'll do it all in main.
I haven't tested this pseudocode, so my logic may be off. Since you don't know how to use if statements I'll try to go over them real quick. An if statement is pretty much a conditional check, to see whether the statement is true or false.
Like if we put
since 3 is left than 5, this if statement will be false, so it skips the cin << "TRUE" and executes the cin <<"CNTINUE".
Now if we change the sign around to
this would evaluate to true meaning both statements will now be outputted. I suggest watching Bucky's videos on if statements and switch statements prior to continuing the rest of this. I'll post some psuedocode for the user-defined functions another time, but for now it'll be best for you to understand if statements in full. Sorry for the lousy response.
Hope it helped at least a bit.
· September 10, 2014
thank you so much for your help, i admit that i kinda skipped the basics, which is a dumb thing to do. But thanks really i will follow through your pseudocode. . .
· September 13, 2014
If you still need it then there you go.
· September 18, 2014
it really helped me, like a lot. . .
Used in many types of software including music players, video games, and many large scale applications.
|Bucky Roberts Administrator|