0
  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
4
Contributors
3
Replies
32
Views
2 Years
Discussion Span
Last Post by samwel mramba
0

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.

0

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).

-2
#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.)}
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.