Guidelines: 1. Use switch case to call a method that performs the operation. E.g. If the user enters 1 to check balance then call checkBalance method 2. Use while loop to display the bank operations and terminate the loop on Exit (i.e. operation 5) 3. Variables to declare in the main method: balance, answer, account No (assign default values) 4. Your code should contain the following methods. Steps to follow: 1. Display bank operations 2. Input user choice Operations 1. Check Balance 2. Deposit Money 3. Withdraw Money 4. Change Answer of Security Question 5. Exit 3. Use a switch to call the appropriate method 4. Implement the above methods in your program 5. Loop again to display all bank operations. 6. Terminate the loop to end the bank operations (hint: You can use return statement) Enter your choice: 2 Enter the amount to deposit: 50 Operations 1. Check Balance public static void checkBalance(double balance, String answer, int accountNo){ Constraints: 1. Ask the user to enter the answer of the security question and display the available balance only when the answer is correct. use equals method to compare String: Syntax: s1.equals(s2) 2. Withdraw balance only when the withdrawal amount is less than or equal to balance. Sample Output: public static double depositMoney(double balance){ 2. Deposit Money 3. Withdraw Money 4. Change Answer of Security Question 5. Exit 1} Enter your choice: 1 In which city was your first job? SF Account Number: 1234567890 public static double withdrawMoney(double balance){ } here s1 and s2 are String variables public static String changeAnsSecutityQuestion(){

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

IN JAVA please use rhe following info to create program, if possible add comments so i can learn what is happening

)
Guidelines:
1. Use switch case to call a method that performs the operation.
E.g. If the user enters 1 to check balance then call checkBalance method
2.
Use while loop to display the bank operations and terminate the loop on Exit (i.e. operation 5)
3. Variables to declare in the main method: balance, answer, account No (assign default values)
4. Your code should contain the following methods.
Steps to follow:
1. Display bank operations
2. Input user choice
3.
Use a switch to call the appropriate method
Operations
1. Check Balance
4.
Implement the above methods in your program
5.
Loop again to display all bank operations.
6. Terminate the loop to end the bank operations (hint: You can use return statement)
2. Deposit Money
3. Withdraw Money
Constraints:
1. Ask the user to enter the answer of the security question and display the available balance
only when the answer is correct.
use equals method to compare String:
Syntax: s1.equals(s2)
here s1 and s2 are String variables
2. Withdraw balance only when the withdrawal amount is less than or equal to balance.
Sample Output:
4. Change Answer of Security Question
5. Exit
Enter your choice: 2
Enter the amount to deposit: 50
public static void checkBalance(double balance, String answer, int accountNo){
}
public static double depositMoney(double balance){
Operations
1. Check Balance
2. Deposit Money
3. Withdraw Money
4. Change Answer of Security Question
5. Exit
public static double withdrawMoney(double balance){
1}
Enter your choice: 1
In which city was your first job? SF
Account Number: 1234567890
public static String changeAnsSecutityQuestion(){
Transcribed Image Text:) Guidelines: 1. Use switch case to call a method that performs the operation. E.g. If the user enters 1 to check balance then call checkBalance method 2. Use while loop to display the bank operations and terminate the loop on Exit (i.e. operation 5) 3. Variables to declare in the main method: balance, answer, account No (assign default values) 4. Your code should contain the following methods. Steps to follow: 1. Display bank operations 2. Input user choice 3. Use a switch to call the appropriate method Operations 1. Check Balance 4. Implement the above methods in your program 5. Loop again to display all bank operations. 6. Terminate the loop to end the bank operations (hint: You can use return statement) 2. Deposit Money 3. Withdraw Money Constraints: 1. Ask the user to enter the answer of the security question and display the available balance only when the answer is correct. use equals method to compare String: Syntax: s1.equals(s2) here s1 and s2 are String variables 2. Withdraw balance only when the withdrawal amount is less than or equal to balance. Sample Output: 4. Change Answer of Security Question 5. Exit Enter your choice: 2 Enter the amount to deposit: 50 public static void checkBalance(double balance, String answer, int accountNo){ } public static double depositMoney(double balance){ Operations 1. Check Balance 2. Deposit Money 3. Withdraw Money 4. Change Answer of Security Question 5. Exit public static double withdrawMoney(double balance){ 1} Enter your choice: 1 In which city was your first job? SF Account Number: 1234567890 public static String changeAnsSecutityQuestion(){
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY