Re: Java Gurus Help
- From: "Andrew.Bell" <zen62619@xxxxxxxxx>
- Date: Sat, 11 Mar 2006 19:23:38 -0000
This is what I have so far.
//Andrew Bell
public class MiniBank
{
public static void main(String args[])
{
String title[] = {"Current Account ", "ISA ", "Mortgage ", "Car Loan
"};
String ConfigMenu[] = {"A. For a specific customer, display details of
their accounts.",
"B. Get the ballance in an account for a specified customer.",
"C. Add to an account for a specific customer.",
"D. Withdraw from an account for a specified customer.",
"E. Get the total funds in all of the current accounts in the
bank.",
"F. Get the total funds in all of the ISA's in the bank."};
char Choice;
int Customer;
char Answer ='y';
int[] Customer1;
Customer1 = new int[4];
int[] Customer2;
Customer2 = new int[4];
int[] Customer3;
Customer3 = new int[4];
int[] Customer4;
Customer4 = new int[4];
System.out.println(" ");
System.out.println("Welcome To The Mini Bank");
System.out.println("------------------------");
System.out.println(" ");
for (int i=0; i<4; i++)
{
System.out.print("Please Enter Amount For Customer 1's " + title[i] +
"= ");
Customer1[i] = EasyIn.getInt();
}
System.out.println(" ");
for (int i=0; i<4; i++)
{
System.out.print("Please Enter Amount For Customer 2's " + title[i] +
"= ");
Customer2[i] = EasyIn.getInt();
}
System.out.println(" ");
for (int i=0; i<4; i++)
{
System.out.print("Please Enter Amount For Customer 3's " + title[i] +
"= ");
Customer3[i] = EasyIn.getInt();
}
System.out.println(" ");
for (int i=0; i<4; i++)
{
System.out.print("Please Enter Amount For Customer 4's " + title[i] +
"= ");
Customer4[i] = EasyIn.getInt();
}
System.out.println(" ");
//User Menu
System.out.println(" ");
System.out.println("Configuration Menu");
System.out.println("--------------------");
for (int i=0; i<6; i++)
{
System.out.println(ConfigMenu[i]);
}
System.out.println(" ");
System.out.println(" ");
System.out.print("Please select an option from the above menu
(A,B,C,D,E or F). = ");
Choice = EasyIn.getChar();
if ((Choice == 'A') || (Choice == 'a'))
{
System.out.print("Please select a customer. (1,2,3 or 4) = ");
Customer = EasyIn.getInt();
if (Customer == '1')
{
System.out.print("Customer 1");
{
System.out.print("Please select an option from the above menu
(A,B,C,D,E or F). = ");
}
}
}
}
}
Hope this helps the explination, basically what i need is if a user selects
an option for example A it then returns a message back saying please select
a customer. One the user has selected the customer it then displays the
bank ballances. That is my full program what ive done so for. Hope this
helps.
.
- Follow-Ups:
- Re: Java Gurus Help
- From: IchBin
- Re: Java Gurus Help
- References:
- Java Gurus Help
- From: Andrew Bell
- Re: Java Gurus Help
- From: IchBin
- Java Gurus Help
- Prev by Date: Re: Java Gurus Help
- Next by Date: Re: Java Gurus Help
- Previous by thread: Re: Java Gurus Help
- Next by thread: Re: Java Gurus Help
- Index(es):
Relevant Pages
|
|