me  Objective:  At the end of the exercise, the students should be able to:  ▪ Implement queues in both Java and Python. Software Requirements: ▪ NetBeans IDE ▪ Java Development Kit (JDK) 8 ▪ Python 3.7 or higher Procedure: 1. Create a folder named LastName_FirstName in your local drive. (ex. Reyes_Mark) 2. Using NetBeans, create a Java project named MovieTime. Set the project location to your own folder. 3. Import Scanner, Queue, and LinkedList from the java.util package. 4. Create two (2) Queue objects named

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Here is Hands-on Activity below. 
Movie Time 
Objective: 
At the end of the exercise, the students should be able to: 
▪ Implement queues in both Java and Python.
Software Requirements:
▪ NetBeans IDE
▪ Java Development Kit (JDK) 8
▪ Python 3.7 or higher
Procedure:
1. Create a folder named LastName_FirstName in your local drive. (ex. Reyes_Mark)
2. Using NetBeans, create a Java project named MovieTime. Set the project location to your own
folder.
3. Import Scanner, Queue, and LinkedList from the java.util package.
4. Create two (2) Queue objects named movies and snacks.
5. The output shall:
5.1.Ask the user to input three (3) movies that s/he would like to watch in a cinema.
5.2.Ask the user to input three (3) snacks or beverages that s/he would like to eat or drink while
watching these movies.
5.3.Display all the movies and snacks in separate lines.
5.4.Ask the user to type S whenever s/he is done eating or drinking a snack.
5.5.Display the snacks remaining each time S is pressed and "No more snacks" when all snacks
are eaten.
6. Convert your code into a Python script.
7. Save the script as movie_time.py to your folder.. 

 

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.
S
deque (['Cheesedog', 'Milk tea'])
S
deque(['Milk tea'])
S
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. S deque (['Cheesedog', 'Milk tea']) S deque(['Milk tea']) S No more snacks
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY