Question: data structure PLEASE NOTE THAT THIS HOMEWORK IS 3 PAGES AND WITH A TOTAL OF 10 POINTS. QUESTION 1: (QUEUE ADT) [5 POINTS] Write a
PLEASE NOTE THAT THIS HOMEWORK IS 3 PAGES AND WITH A TOTAL OF 10 POINTS. QUESTION 1: (QUEUE ADT) [5 POINTS] Write a Java program that repeatedly prompts the user to enter strings, using the string "E end" to indicate when finished. The user is assumed to only enter strings of the form "firstname lastname". Output the first names in the same order they were entered, preceded by the string "First Name Queue: " and then do the. same for the last names, preceded by the string "Last Name Queue" ". Use ArrasUnboundedQueue objects in your program. Sample Run: run: Enter a String formatted as firstname and lastname : Yusef Alqasrawi Enter a String formatted as firstname and lastname : Mahmoud Jawarneh Enter a String formatted as firstname and lastname : Said Elaiwat Enter a String formatted as firatname and lastname : Moharred Khader Enter a string formatted as firstname and lastname : E end First Name Queue: Yusef Mahmoud Said Mohammed Last Name Queue: Alqasrawi Jawarneh Elaiwat Khader BUILD SUCCEsSroL (total time: 1 minute of seconds) // Question I code below this line
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
