Re: Java Gurus Help



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.


.



Relevant Pages

  • Re: BIG BUG in Deleting detali records
    ... in the database in order to enforce referential integrity. ... when the customer himself is deleted from the master table. ... customerID int identity not null primary key, ...
    (borland.public.delphi.database.ado)
  • Re: Java Gurus Help!
    ... Get the ballance in an account for a specified customer.", ... int[] Customer1; ... Customer = EasyIn.getInt; ...
    (comp.lang.java.help)
  • Re: writing strings instead of rabish to file using fprintf
    ... > please and help me finding the reason why this rabish is being ... use either int or unsigned ... And similarly with customer number. ... FAQ below. ...
    (comp.lang.c)
  • Re: Database Design Problem
    ... at your design that you would lose ProductCategoryID from the Orders table ... You should also have a customer and employee table and only include ... [EmployeeID [INT] ... You would also have primarykeys on OrderID in ORders and SerialNumber in ...
    (microsoft.public.sqlserver.programming)
  • Re: How to make a Foreing Key?
    ... Supose I have this tables DETAIL, HEADER and ITEMS and I want to add in the ... Should I ADD a field CUSTOMER in the table DETAIL to do that? ...
    (microsoft.public.sqlserver.programming)