Hands-on Activity 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...


Hands-on Activity
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<br>Enter movie 2 of 3: Fast & Furious 9<br>Enter movie 3 of 3: Godzilla vs. Kong<br>Enter snack 1 of 3: Popcorn<br>Enter snack 2 of 3: Cheesedog<br>Enter snack 3 of 3: Milk tea<br>Movies to watch are: deque(['The Conjuring 3', 'Fast & Furious 9', 'Godzilla vs. Kong'])<br>Snacks available are: deque(['Popcorn', Cheesedog', 'Milk tea'])<br>Press s each time you finish a snack.<br>IS<br>deque(['Cheesedog', 'Milk tea'])<br>deque([ 'Milk tea'])<br>No more snacks<br>

Extracted 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. IS deque(['Cheesedog', 'Milk tea']) deque([ 'Milk tea']) No more snacks
Hands-on Activity<br>Movie Time<br>Objective:<br>At the end of the exercise, the students should be able to:<br>Implement queues in both Java and Python.<br>Software Requirements:<br>NetBeans IDE<br>Java Development Kit (JDK) 8<br>Python 3.7 or higher<br>Procedure:<br>1. Create a folder named LastName_FirstName in your local drive. (ex. Reyes_Mark)<br>2. Using NetBeans, create a Java project named MovieTime. Set the project location to your own<br>folder.<br>3. Import Scanner, Queue, and LinkedList from the java.util package.<br>4. Create two (2) Queue objects named movies and snacks.<br>5. The output shall:<br>5.1. Ask the user to input three (3) movies that s/he would like to watch in a cinema.<br>5.2. Ask the user to input three (3) snacks or beverages that s/he would like to eat or drink while<br>watching these movies.<br>5.3. Display all the movies and snacks in separate lines.<br>5.4. Ask the user to type S whenever s/he is done eating or drinking a snack.<br>5.5. Display the snacks remaining each time S is pressed and

Extracted text: Hands-on Activity 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. Sample output in Python: 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. Is deque(['Cheesedog', 'Milk tea']) Is deque([ 'Milk tea']) No more snacks GRADING RUBRIC (100 points): Description Max Points 40 40 10 10 Criterion Correctness Logic Efficiency Syntax The code produces the expected result. The code meets the specifications of the problem. The code is concise without sacrificing correctness and logic. | The code adheres to the rules of the programming language.
Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here