Options: 1. Deposit 2. Withdraw 3. Check the balance 4. Quit Enter your choice (1,2,3, or 4):Then read in the user's choice (in the choice variable already declared) and do what the user requests (which requires using the appropriate method from the Account class). Note that if the user chooses deposit or withdraw, the program must ask for and read in the amount. Also, if the user types in an incorrect choice (such as a 6) the program should print a message telling the user to try again.
Heads 1 Heads 2 Tails Tails Tails Heads 1 Heads 2 Heads 3 Heads 4 Tails Heads 1 ...You'll have to work a little on the formatting to get this to come out right (think about where you'll use print and where you'll use println).
Print Runs.java to hand in.
* * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *You will need a second nested for loop after the first to print the bottom part of the diamond. It will be similar to the first - you can copy that one and make adjustments. The first nested loop should stay the same - the numRows variable will represent the number of rows in the upper triangle, not the whole diamond.
public static boolean isLetter(char c)Recall that a static method is called using the class name. Hence, a call would have the form
Character.isLetter(ch)where ch is a variable of type char. Since a boolean is returned the above call should be placed in an appropriate place for a boolean such as an if.
NumberFormat fmt = NumberFormat.getPercentInstance();
System.out.println ("Percentage of vowels: " + fmt.format(whatever));
read in the first phrase while the phrase is not "Q" { initialize the counters etc. to set up the for loop for loop to count letters and vowels in the phrase print the number of vowels & letters and percentage of vowels read in the next phrase or "Q" to quit }Note that all you need to do is add the sentinel controlled while loop around the code you already have. Be sure the code to initialize the counters is inside the while loop (you start the counters over for each phrase).
Be sure to go through the program and properly indent after adding code (with nested loops the inner loop should be indented). Emacs will do the work for you! Select the region you want to indent (with the mouse or keys), then press Alt-Ctrl-\ ("indent region"). Voila!
Print the final version of your program