plz do this project

Project Description:-
• This project manages the bank activities.
• The bank has many branches.
• The bank deals with many account holders and each holder has many accounts.
• Each account holder makes two operations (Deposit - Withdraw) on his accounts.
• The system should handle the holder operations on his accounts and record the data and
time when this operation occurs.
• The system has three main entities:-
Branch:-
Each branch has basic information (Name – Id – Address – ….)
Holder:-
Each holder has basic information (Name – Id – SSN - Address– E-Mail-…)
Account:-
Each account has basic information (Id – Holder - Value….).
System Required Functions:-
1- For Branch:-
a. Enter branch information.
b. Display branch information.
c. Update branch information.
d. Delete branch.
e. Display branch account holders.
2- For Account holder:-
f. Enter holder information.
g. Display holder information.
h. Update holder information.

Data Structure Projects
i.Delete holder with its accounts.
j. Search for holder using (id – name - branch).
k. Deposit a value to holder specific account.
l. Withdraw a value from holder specific account.
m. Display holder accounts.
n. Transfer all holder accounts from branch to another branch.
o. Transfer a specific account from branch to another branch.
3- For Account:-
p. Enter account information for specific holder.
q. Display specific account information.
4- General Functions:-
r. Display specific branch accounts.
s. Display branches ordered by the total value of its accounts.
t. Display top (10) account holders in the bank.
u. Display top (10) account holders each branch.
v. Display operations done by specific account.
w. Display all operations done by specific account in a specific duration (From date… to
date…).
x. Display all operations done in a specific day.
y. Display all operations done in a specific duration (From date… to date…).
z. Find total value of money in the bank as a whole (total sum of all account values in all
branches).
Er. http://cplusplus.com/forum/beginner/1/#msg6680
Programmers are good at spotting homework questions; most of us have done them ourselves. Those questions are for you to work out, so that you will learn from the experience. It is OK to ask for hints, but not for entire solutions.


Sorry, but we really don't to homework problems around here. If you show us a reasonable attempt to solve your problem and explain that you have some issues to work out, then we'll happily help you with that!

-Albatross
Last edited on
@OP: You're not the boss of me!!
In Soviet Russia, homework assignment posts yo
In Soviet Russia, people make their homework.
these always make me giggle.

How do you expect to learn?
If you struggle and need help, ask questions. If you just want to get the job done, pay someone to do it for you.

http://cplusplus.com/forum/articles/31015/
I suppose if you pay enough some people here would be up for the job.
closed account (3pj6b7Xj)
Thanks for the idea :) project completed and working, its a console program tho, I was going to try it with win api but i'm still learning the api. I would post the code but were is the fun in that for you? I actually took it upon myself to use your project idea as my own learning experience, lol thanks!
Last edited on
@mrfaosfx
lol, just lol :p
do it yourself
Dear Sir/Madame mrfaosfx
Please Put the code since if i will not do it i will lose 50 marks in college and i may fail thx.
> ... i will lose 50 marks in college and i may fail
Excuse my sarcasm.
If you cannot solve this problem, maybe you should fail!
What will you do after you passed all tests? Ask your future colleagues to do your assignments?

You can learn from failure but you never learn from letting others do your work!
@dodo
How about you show us some effort and let us see what you've done so far? I'm willing to help you but will not do the work for you.
You ask a lot, try to ask one by one, there is a saying "divide and conquer" try to work with a simple objective from your project. Then post it here when you need assistant.

http://codewall.blogspot.com
Last edited on
you should fail.. EPIC FAIL. haha .. me i have a project text twist to be done in c.. and i'm working for it not just asking the whole code of text twist here.. :P
Last edited on
we already created that program and we use linked list.. pay me and i'll give you the code :P haha..
closed account (3pj6b7Xj)
You want me to post my sweet code here when it took me a couple of hours to sit down and write it? If I could do it so can you, atleast try and as you go ask questions and many people here will answer them. You should have completed this long ago.
We're being a little too mean here. Okay, dodo, I admit that I think you're lazy. :/ But at the same time, that's not right of us to be running your nose into the ground.

All you need to do is show us an honest attempt at solving the problem, and we will help you far more than if you continue to post nothing.

[/redundant_redundancy]

-Albatross
Although I admit the source code shouldn't be posted, for the sake of @dodo's unearned grades, I am very curious to see what code would be required to complete this.

Most of these functions I wouldn't even know where to begin with, is there any possibility I can look at how you coded it VIA PM; mrfaosfx?

If not, care to explain what main elements were used to execute these requirements properly? Or suggest a tutorial that should supply me with sufficient information to complete this task?
It is not even remotely moral to write the code for you (, nor would I enjoy the pointless exercise), but some guidance for your effort to search for this forum is in place. With all the derogatory attitude we may cause you to loose your faith in humanity. But I think everyone is stunned by the title of that post.

For starters, considering your level, forget smart solutions. There are good object oriented STL methods to be used in problems like this, but for you, few functions of your own and global variables will be more comprehensible. If the point is to write the code elegantly and compactly, to create the solution with maximum reuse of the features already available in the language's library, then stop reading my response.

Create a source file, open an IDE if you use one. Start with something less purposeful, just to experiment with.

In your problem, it should be obvious that you have several (3) distinct sets of data. The elements in each set are 'complex', in the sense that they have their own fields.

The most primitive non-C++, more like C, way to implement this is to use some structure for the elements in the set, like this:
1
2
3
4
5
6
struct A {
  Type1 field1;
  Type2 field2;
  ...
  TypeN fieldN;
}
Then you can use array to represent the set:
 
A some_data_set[N]; 

N is fixed and this means that you must use another variable to store how much of those A structures you actually use at each moment. When you have solution working with arrays, you may consider an STL equivalent that can grow arbitrarily and allows effective removal of entries.

Now, start breaking the operations the problem requires in little micro-steps. For example:
Transfer all holder accounts from branch to another branch.
can be broken into many actions: "transfer a single holder account from one branch to another." Then break this further into:
1) find in the source branch one account for a holder
2) copy the account to the destination branch
3) remove the account from the source branch
4) adapt the data of the account in the destination branch, if necessary

Think about the steps required to complete an action. If it reads like a batch job, usually indicated by plural, then it is repetition of some fundamental step. Anticipate that doing something with something will require locating it first. Moving something usually requires copy and delete pair, etc. Forget the functions and the variables. They can be rearranged in many ways later without affecting the solution.

By this time, I hope you have realized that you will need to implement many generic (in the layman sense) actions for the data sets. You will need to be able to search in the data set, trying to match some component of the elements against some supplied value. E.g., you will need to search in some_data_set, trying to match field2 with some value. Create an empty C++ project in your IDE, or a C++ file and try to implement this in some generic case with which you feel comfortable. Gain confidence.

Now, if the search has unique match by design (like searching for a person by some ID), then the search is simply parametrized by the value you want to match and the result is the position where the occurrence was found. Do not forget to handle the case of no occurrences in the caller. Like, returning invalid position from the search and handling the situation in the calling function. Think what the user will expect. For example, warn the user, or simply do nothing.

If the search does not have unique match, you have to be able to call the search consecutively, restricting it to ever smaller portions of the set - if the search is forward, you will restrict it to the tail of the data set. The next search will follow after the position of the last occurrence. This requires another parameter. Then the calling function has a loop - finds occurrence with the search function, processes the occurrence, repeats with the elements of the data set following the last occurrence.

The searching will be equivalent if you use STL, but then you can directly use the provided implementations of the search functions. Implementing them is therefore redundant in the end, but I think that if you do not feel capable to do that, using the library routines is going to be hectic and incomprehensible for you. (I could never use STL if I did not feel I could create some idiotic substitute of STL functionality.)

Last hint. In the C-style approach above, deleting requires to first find what you want to delete, than move all following elements one position backward.

Someone had to communicate those ideas to you anyways. May be they did, or may be they didn't.

Regards
Topic archived. No new replies allowed.