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:

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 27PE
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
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning