MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / createAccount

Method createAccount

Programs/bankSystem.java:26–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24
25 // function to create an account -
26 public void createAccount() {
27 System.out.println("Enter your name: ");
28 name = sc.nextLine(); // get name
29 System.out.println("Enter date: ");
30 date = sc.nextLine(); // get date
31 System.out.println("Enter nationality: ");
32 nationality = sc.nextLine(); // get nationality
33 System.out.println("Enter Aadhar/PAN/verification number: ");
34 verifNum = sc.nextLine(); // get verification number
35 do {
36 System.out.println("Basic balance: ");
37 balance = sc.nextDouble(); // initial deposit (must be minimum Rs.1000)
38 if (balance < 1000) {
39 System.out.println("Initial balance should be minimum Rs.1000!");
40 }
41 else {
42 System.out.println("Account created!");
43 }
44 } while (balance < 1000);
45 AccNumCnt++;
46 AccID = AccNumCnt; // assigns account id automatically
47 }
48
49 // function to deposit money in existing account -
50 public void depositMoney() {

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected