help me develop banking system

Reply

Join Date: Aug 2004
Posts: 6
Reputation: yingyuan is an unknown quantity at this point 
Solved Threads: 0
yingyuan yingyuan is offline Offline
Newbie Poster

help me develop banking system

 
0
  #1
Aug 6th, 2004
banking system :

-all the bank accout can be created, accessed,and clossed later.
-three type of account:current,saving,fixed deposit.
-each custormer can open more than one type of accounts.
-The transactions are deposit, withdraw, and view balance
-the account created with a deposit and creation date.
-After that money can be deposited and withdrawn.Balance will be updated accordingly
-a request for balande should display each individual account ballance as well as the total balance of all acoounts owned

customer class and an account class

customer class:

customer no (3 digits)
Name
address
account class:

creation date
Balance
type
Reply With Quote Quick reply to this message  
Join Date: Dec 2003
Posts: 2,417
Reputation: alc6379 has a spectacular aura about alc6379 has a spectacular aura about alc6379 has a spectacular aura about 
Solved Threads: 125
Team Colleague
alc6379's Avatar
alc6379 alc6379 is offline Offline
Cookie... That's it

Re: help me develop banking system

 
0
  #2
Aug 6th, 2004
This isn't a homework project, is it?

Have you done anything on the code yet? If so, please post what you've done so far.

We don't do your homework here for you. If you don't show effort on your part, this post might get closed/deleted.
Alex Cavnar, aka alc6379
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 6
Reputation: yingyuan is an unknown quantity at this point 
Solved Threads: 0
yingyuan yingyuan is offline Offline
Newbie Poster

Re: help me develop banking system

 
0
  #3
Aug 6th, 2004
yes, this is my C++ assignment.
i know this assignment want to using the Object-Oriented concepts(inheritance, polymorphism etc).
i know to defind some classes like create account, and what type of acount custermer want to create, but i dont know how to search back the account custemer created.
Reply With Quote Quick reply to this message  
Join Date: Dec 2003
Posts: 2,417
Reputation: alc6379 has a spectacular aura about alc6379 has a spectacular aura about alc6379 has a spectacular aura about 
Solved Threads: 125
Team Colleague
alc6379's Avatar
alc6379 alc6379 is offline Offline
Cookie... That's it

Re: help me develop banking system

 
0
  #4
Aug 6th, 2004
Like I said, if this is an assignment, work on it some yourself, and if you get stuck, post the code you've written so far, and ask if we can help troubleshoot your already written code.

We don't do your homework for you-- we help you figure out your problems. Many of us here (not including me, though) are excellent programmers, but we're not willing to help unless you're willing to help yourself first.
Alex Cavnar, aka alc6379
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 6
Reputation: yingyuan is an unknown quantity at this point 
Solved Threads: 0
yingyuan yingyuan is offline Offline
Newbie Poster

Re: help me develop banking system

 
0
  #5
Aug 7th, 2004
ok, i just recieve this project in one week later, i will try to write somthing if i have stuck, i will post the code.
Reply With Quote Quick reply to this message  
Join Date: Dec 2009
Posts: 1
Reputation: Mazen_1st is an unknown quantity at this point 
Solved Threads: 0
Mazen_1st Mazen_1st is offline Offline
Newbie Poster
 
-2
  #6
Dec 16th, 2009
  1. #include "stdafx.h"
  2. #include <iostream.h>
  3. #include <conio.h>
  4. #include <windows.h>
  5.  
  6. struct accounts{
  7. int acnum1;
  8. int acnum2;
  9. int acnum3;
  10. double balance1;
  11. double balance2;
  12. double balance3;
  13. };
  14.  
  15. typedef struct accounts account;
  16.  
  17.  
  18. account init (account);
  19. account deposit (account);
  20. account withdraw (account);
  21. void query (account);
  22. void showall (account);
  23.  
  24.  
  25. int main(int argc, char* argv[])
  26. {
  27. account bank;
  28. bank = init (bank);
  29. char transaction;
  30. while (transaction != 'E'){
  31. cout<<"\n++++++++++\n";
  32. cout<<"WORLD BANK\n";
  33. cout<<"\n++++++++++\n\n";
  34.  
  35. cout<<"deposit -----> <press> D\n";
  36. cout<<"withdraw -----> <press> W\n";
  37. cout<<"Query -----> <press> Q\n";
  38. cout<<"Show All -----> <press> S\n";
  39. cout<<"Exit -----> <press> E\n";
  40. cout<<"\n\n";
  41.  
  42. cout<<"please select your transaction :";
  43. cin>>transaction;
  44.  
  45. switch(transaction){
  46. case 'D':
  47. bank = deposit(bank);
  48. break;
  49. case 'W':
  50. bank = withdraw(bank);
  51. break;
  52. case 'Q':
  53. query(bank);
  54. break;
  55. case 'S':
  56. showall(bank);
  57. break;
  58. case 'E' || 'e':
  59. exit(0);
  60. break;
  61. default:
  62. "please select one of the items from the menu item";
  63. break;
  64.  
  65. }
  66. system("CLS");
  67. }
  68. return 0;
  69. }
  70.  
  71. account init (account buffer){
  72. buffer.acnum1 = 11111;
  73. buffer.acnum2 = 22222;
  74. buffer.acnum3 = 33333;
  75. buffer.balance1 = 0;
  76. buffer.balance2 = 0;
  77. buffer.balance3 = 0;
  78. return buffer;
  79. }
  80.  
  81. account deposit (account bank){
  82. int ac_num;
  83. double balance,deposit_amt;
  84.  
  85. cout<<"\nenter account number";
  86. cin>>ac_num;
  87. switch(ac_num){
  88. case 11111:
  89. cout<< "enter deposit amount ";
  90. cin>>deposit_amt;
  91. bank.balance1 = bank.balance1 + deposit_amt;
  92. balance = bank.balance1;
  93. system("CLS");
  94. cout<<"TRANSACTION APPROVED";
  95. cout<<"\n++++++++++++++++++++++\n\n\n\n";
  96. cout<<"Balance on your account :\n"<<"#"<<ac_num<<" is $"<<balance;
  97. cout<<"\n\n\npresss ne button to continue";
  98. cout<<endl;
  99. getch();
  100. break;
  101. case 22222:
  102. cout<< "enter deposit amount ";
  103. cin>>deposit_amt;
  104. bank.balance2 = deposit_amt + bank.balance2;
  105. balance = bank.balance2;
  106. system("CLS");
  107. cout<<"TRANSACTION APPROVED";
  108. cout<<"\n++++++++++++++++++++++\n\n\n\n";
  109. cout<<"Balance on your account :\n"<<"#"<<ac_num<<" is $"<<balance;
  110. cout<<"\n\n\npresss ne button to continue";
  111. cout<<endl;
  112. getch();
  113. break;
  114. case 33333:
  115. cout<< "enter deposit amount ";
  116. cin>>deposit_amt;
  117. bank.balance3 = deposit_amt + bank.balance3;
  118. balance = bank.balance3;
  119. system("CLS");
  120. cout<<"TRANSACTION APPROVED";
  121. cout<<"\n++++++++++++++++++++++\n\n\n\n";
  122. cout<<"Balance on your account :\n"<<"#"<<ac_num<<" is $"<<balance<<".00";
  123. cout<<"\n\n\npresss ne button to continue";
  124. cout<<endl;
  125. getch();
  126. break;
  127. default:
  128. cout<<"acount number does not exist";
  129. break;
  130. }
  131.  
  132. return bank;
  133. }
  134.  
  135.  
  136.  
  137. account withdraw (account bank){
  138. int ac_num;
  139. double balance,withdrawl_amt;
  140.  
  141. cout<<"\nenter account number";
  142. cin>>ac_num;
  143. switch(ac_num){
  144. case 11111:
  145. cout<< "enter withdrawl amount ";
  146. cin>>withdrawl_amt;
  147. bank.balance1 = bank.balance1 - withdrawl_amt;
  148. balance = bank.balance1;
  149. system("CLS");
  150. cout<<"TRANSACTION APPROVED";
  151. cout<<"\n++++++++++++++++++++++\n\n\n\n";
  152. cout<<"Balance on your account :\n"<<"#"<<ac_num<<" is $"<<balance;
  153. cout<<"\n\n\npresss ne button to continue";
  154. cout<<endl;
  155. getch();
  156. break;
  157. case 22222:
  158. cout<< "enter withdrawl amount ";
  159. cin>>withdrawl_amt;
  160. bank.balance2 = bank.balance2 - withdrawl_amt;
  161. balance = bank.balance2;
  162. system("CLS");
  163. cout<<"TRANSACTION APPROVED";
  164. cout<<"\n++++++++++++++++++++++\n\n\n\n";
  165. cout<<"Balance on your account :\n"<<"#"<<ac_num<<" is $"<<balance;
  166. cout<<"\n\n\npresss ne button to continue";
  167. cout<<endl;
  168. getch();
  169. break;
  170. case 33333:
  171. cout<< "enter withdrawl amount ";
  172. cin>>withdrawl_amt;
  173. bank.balance3 = bank.balance3 - withdrawl_amt;
  174. balance = bank.balance3;
  175. system("CLS");
  176. cout<<"TRANSACTION APPROVED";
  177. cout<<"\n++++++++++++++++++++++\n\n\n\n";
  178. cout<<"Balance on your account :\n"<<"#"<<ac_num<<" is $"<<balance<<".00";
  179. cout<<"\n\n\npresss ne button to continue";
  180. cout<<endl;
  181. getch();
  182. break;
  183. default:
  184. cout<<"acount number does not exist";
  185. break;
  186. }
  187.  
  188. return bank;
  189. }
  190.  
  191. void query (account bank){
  192. int ac_num;
  193. cout<<"\nenter account number";
  194. cin>>ac_num;
  195. switch(ac_num){
  196. case 11111:
  197. system("CLS");
  198. cout<<"TRANSACTION APPROVED";
  199. cout<<"\n++++++++++++++++++++++\n\n\n\n";
  200. cout<<"Balance on your account :\n"<<"#"<<ac_num<<" is $"<<bank.balance1;
  201. cout<<"\n\n\npresss ne button to continue";
  202. cout<<endl;
  203. getch();
  204. break;
  205. case 22222:
  206. system("CLS");
  207. cout<<"TRANSACTION APPROVED";
  208. cout<<"\n++++++++++++++++++++++\n\n\n\n";
  209. cout<<"Balance on your account :\n"<<"#"<<ac_num<<" is $"<<bank.balance2;
  210. cout<<"\n\n\npresss ne button to continue";
  211. cout<<endl;
  212. getch();
  213. break;
  214. case 33333:
  215. system("CLS");
  216. cout<<"TRANSACTION APPROVED";
  217. cout<<"\n++++++++++++++++++++++\n\n\n\n";
  218. cout<<"Balance on your account :\n"<<"#"<<ac_num<<" is $"<<bank.balance3<<".00";
  219. cout<<"\n\n\npresss ne button to continue";
  220. cout<<endl;
  221. getch();
  222. break;
  223. default:
  224. cout<<"acount number does not exist";
  225. break;
  226. }
  227.  
  228. }
  229.  
  230. void showall (account bank){
  231. system("CLS");
  232. cout<<"DISPLAYING ALL EXISTING ACCOUNTS";
  233. cout<<"\n++++++++++++++++++++++++++++++\n";
  234. cout<<"ACCOUNT\t\t\t\tBALANCE\n\n\n";
  235. cout<<"-------\t\t\t\t-------\n";
  236. cout<<bank.acnum1<<"\t\t\t\t"<<bank.balance1<<"\n";
  237. cout<<bank.acnum2<<"\t\t\t\t"<<bank.balance2<<"\n";
  238. cout<<bank.acnum3<<"\t\t\t\t"<<bank.balance3<<"\n";
  239. cout<<"\n\n\npress ne key to continue";
  240. cout<<endl;
  241. getch();
  242. }
[/CODE]

this is a suck code
i hated it
kill it
Last edited by peter_budo; Dec 17th, 2009 at 2:09 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks)
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 51
Reputation: valtikz is on a distinguished road 
Solved Threads: 7
valtikz's Avatar
valtikz valtikz is offline Offline
Junior Poster in Training
 
0
  #7
Dec 16th, 2009
Originally Posted by Mazen_1st View Post
this is a suck code
i hated it
kill it
what is this for?!
...
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 6760 | Replies: 6
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC