import java.util.Scanner; public class Bank { public static void main(String[] args) { //See Learn the Part for the complete instructions (link in resources folder of Udemy video). Scanner scan = new Scanner(System.in); System.out.println("\n****ROYAL BANK OF JAVA****"); System.out.println("Are you here to get a mortgage? (yes or no)"); //Task 1 - Pick up the user's decision. //Task 2 - Print this if the decision is "yes" System.out.println("\nGreat! In one line" + "\nHow much money do you have in your savings?" + "\nAnd, how much do you owe in credit card debt?"); // Task 3 - Pick up each value System.out.println("\nHow many years have you worked for?"); // Task 4 - Pick up number of years System.out.println("What is your name?"); // Task 5 - Pick up the user's name //Task 6 - Approve the mortgage if they meet the requirements (see article) // - Otherwise, don't give them a mortgage. System.out.println("Congratulations You have been approved!"); System.out.println("Sorry, you are not eligible for a mortgage."); //Task 2 - Print this if the decision was not "yes" System.out.println("\nOK. Have a nice day!"); scan.close(); } }