1. Assume the bank has 3 clients. Assume every client has 3 accounts. Use a two-dimensional array to store the credit of each account for each user. The array should look like this:
    Amount in account 1 for user 1 Amount in account 2 for user 1 Amount in account 3 for user 1
    Amount in account 1 for user 2 Amount in account 1 for user 2 Amount in account 3 for user 2
    Amount in account 1 for user 3 Amount in account 1 for user 3 Amount in account 1 for user 3

Recommended Answers

All 3 Replies

Assume you start coding.
Assume you encounter a problem with your code.
Assume you post your code here, explaining your problem.
You can very well assume we will try to help you out.

Assume that you are new to daniweb.
Assume that you don't have read the community rules.

Assume the bank has 3 clients. Assume every client has 3 accounts. Use a two-dimensional array to store the credit of each account for each user.

use this

int clientid_accountid[3][3];
clientid_accountid[0][1]={##,#####};
clientid_accountid[0][2]={##,#####};
clientid_accountid[0][3]={##,#####};

and it continues . . .

lastly , Assume that you have learnt the basics of nested loop. And with nested loop you can do that very easily.

Assume , next time , you won't post without the code (you have so far).

#inlude<isotrem>
#inlude<cstdlib>
using namespace std;
int main()
{
int i;
int j
int total;
cout<<"enter  your age?"<<endl;
cin>>i;
cout<<"enter again your age?"<<endl;
cin>>j;
total=i+j;
cout<<"the total is "<<total<<endl;
system("PAUSE");
return 0;
[Click Here](http://www.)}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.