Import Scanner, Queue, and LinkedList from the util package. Import Scanner, Queue, and LinkedList from the util package. The output shall: Ask the user to input three (3) movies that s/he would like to watch in a Ask the user to input three (3) snacks or beverages that s/he would like to eat or drink while watching these Display all the movies and snacks in separate Ask the user to type S whenever s/he is done eating or drinking a Display the snacks remaining each time S is pressed and "No more snacks" when all snacks are eaten. Convert your code into a Python Sample output:

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter5: The Repetition Structure
Section: Chapter Questions
Problem 5E
icon
Related questions
Question

PYTHON LANGUAGE

  1. Import Scanner, Queue, and LinkedList from the util package.
  2. Import Scanner, Queue, and LinkedList from the util package.
  3. The output shall:
    • Ask the user to input three (3) movies that s/he would like to watch in a
    • Ask the user to input three (3) snacks or beverages that s/he would like to eat or drink while watching these
    • Display all the movies and snacks in separate
    • Ask the user to type S whenever s/he is done eating or drinking a
    • Display the snacks remaining each time S is pressed and "No more snacks" when all snacks are eaten.
  4. Convert your code into a Python
  5. Sample output:
Enter movie 1 of 3: The Conjuring 3
Enter movie 2 of 3: Fast & Furious 9
Enter movie 3 of 3: Godzilla vs. Kong
Enter snack 1 of 3: Popcorn
Enter snack 2 of 3: Cheesedog
Enter snack 3 of 3: Milk tea
Movies to watch are: deque(['The Conjuring 3', 'Fast & Furious 9', 'Godzilla vs. Kong'])
Snacks available are: deque(['Popcorn', 'Cheesedog', 'Milk tea'])
Press S each time you finish a snack.
deque (['Cheesedog', 'Milk tea'])
IS
deque([ 'Milk tea'])
No more snacks
Transcribed Image Text:Enter movie 1 of 3: The Conjuring 3 Enter movie 2 of 3: Fast & Furious 9 Enter movie 3 of 3: Godzilla vs. Kong Enter snack 1 of 3: Popcorn Enter snack 2 of 3: Cheesedog Enter snack 3 of 3: Milk tea Movies to watch are: deque(['The Conjuring 3', 'Fast & Furious 9', 'Godzilla vs. Kong']) Snacks available are: deque(['Popcorn', 'Cheesedog', 'Milk tea']) Press S each time you finish a snack. deque (['Cheesedog', 'Milk tea']) IS deque([ 'Milk tea']) No more snacks
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Threads in linked list
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,