0% found this document useful (0 votes)
12 views3 pages

Project

Uploaded by

talasaleem595
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views3 pages

Project

Uploaded by

talasaleem595
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Assignment Project: Gru's Gadget Expo Management

System with Prefix Evaluation

Objective:
Help Gru manage the exciting Gadget Expo where he showcases his latest inventions
and interacts with fellow inventors. Utilize various data structures to handle guest
requests, manage event schedules, track merchandise, handle emergency evacuations,
and incorporate prefix notations for evaluating expressions related to gadget
functionality. This project will require the implementation of Array-Lists, Linked-
Lists, stacks, queues, and recursion.
Tasks and Requirements:
Task 1: Array-List (Event Management)
• Use an Array-List to store the list of scheduled events at the expo.
• Implement methods to add, remove, and search for events by criteria such as
time and popularity.
• Example events:
o "Minion Mayhem: A Day in the Life"
o "Gru's Greatest Gadgets Showcase"
o "Inventions of the Future"
• Number of Inputs: Typically, with at least 5-10 events. Users can add or
remove events during the simulation.
Task 2: LinkedList (Guest Management)
• Maintain a LinkedList to track the order of guests arriving at the expo.
• Implement methods to add guests to the list and process them as they enter.
• Example guests:
o Name: Vector, Favorite Invention: Freeze Ray, Assigned Events:
Minion Mayhem, Gru's Greatest Gadgets.
o Name: Dr. Nefario, Favorite Invention: Jelly Jam, Assigned Events:
Gru's Greatest Gadgets, Inventions of the Future.
• Number of Inputs: Start with 5 guests. Users can add more guests
dynamically during the expo.
Task 3: Stack (Emergency Evacuation & Prefix Notation Evaluation)
• Emergency Evacuations:
o Use a stack to manage emergency evacuation routes.
o Example routes:
▪ Route A: Exit through main hall.
▪ Route B: Exit through side entrance.
o Number of Inputs: Initialize with 3 routes. Users can add more routes
as needed.
• Prefix Notation Evaluation:
o Implement a method for user input of prefix expressions to adjust the
number of showcased inventions or inventory levels.
o Example expressions:
▪ + 5 3 (adjust the number of showcased inventions to 8)

▪ - 10 4 (adjust the inventory level to 6)


o Show a sample of prefix notation then allow users to input multiple
prefix expressions for evaluation during the expo.
Task 4: Queue (Merchandise Requests)
• Implement a queue to handle merchandise requests from attendees.
• Example merchandise:
o Item: Limited Edition Freeze Ray, Requester: Vector, Quantity: 1.
o Item: Minion Plush Toy, Requester: Dr. Nefario, Quantity: 2.
o Item: Gru's Gadget Blueprints, Requester: Lucy, Quantity: 1.
• Number of Inputs: Initialize with 5 requests. Users can add more requests
dynamically during the expo.
Task 5: Recursion (Event Popularity Reports)
• Use recursion to generate reports on the most popular events.
• Implement recursive searches through nested categories or tags to identify top
events.
Walkthrough:
Step 1: Initialize the System
• Add initial events to the Array-List.
• Add guests to the LinkedList.
• Define evacuation routes in the Stack.
• Add initial merchandise requests to the Queue.
Step 2: Daily Simulation
• Guest Arrivals:
o Process guest arrivals and assign them to events based on their
preferences.
• Merchandise Requests:
o Handle merchandise requests as they come in.
• Emergency Evacuation Drill:
o Randomly trigger an evacuation drill and use the stack to manage
evacuation routes.
• Prefix Notation Evaluation:
o Evaluate user-entered prefix expressions related to gadget
functionalities using the stack.
• Popularity Report:
o Generate a report on the most popular events at the end of the day
using recursion.
Code Implementation: Custom implementations for Array-List, LinkedList, Stack,
and Queue. Ensure seamless integration in the daily simulation of the gadget expo,
including prefix notation evaluation. Submission: 25/12/2024.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy