Question: Can anybody help me to solve this Assignment4.java? The first two photos are Assignment4.java and the 3th-11th photo are HW4 instructions! 12th-15th photo are input1.txt
// Ansignent #. 4 /I Namet Your name /I StudentID: /I Description: Assignment 4 class displays a menu of choices to a user and performs the chosen task. It will keep asking a user to enter the next choice until the choice of Q' (Quit) is entered. import java.io.* I/to use InputStreamReader and BufferedReader import java.util. public class Assignment4 /I local variables, can be accessed anywhere from the main method char input '2' String bookTitle, bookAuthor, bookISBN int bookVersion double bookPrice String line new String) a Book object Book bookinev Book(O: //Create a Scanner object to read user input Scanner scan- new Scanner (System.in) do // will ask for user input system.out.printin( "What action would you 1ike to perform2") line scan.nextLinet) if (line.length1) input 1ine.charat (0)1 input Character.toUpperCase(input): // matches one of the case statement case "Add Book bookTitle scan.nextLinet) book1.setAuthor(bookAuthor)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
