Answered step by step
Verified Expert Solution
Question
1 Approved Answer
3:15 1 oo. 42% . 4 . 0 f 07_Hands_on_Activity... @ : ESTI IT1815 Hands-on Activity Say Hi! Objective: At the end of the exercise,
3:15 1 oo. 42% . 4 . 0 f 07_Hands_on_Activity... @ : ESTI IT1815 Hands-on Activity Say Hi! Objective: At the end of the exercise, the students should be able to: Create a program that dequeues items based on priority Software Requirements: NetBeans IDE Java Development Kit (JDK) 8 Procedure: 1. Create a folder named LastName_FirstName on your local drive. (ex. Reyes_Mark) 2. Using NetBeans, create a Java project named Greeting Set the project location to your own folder, 3. Import Scanner and PriorityQueue from the java.util package. 4. Create one (1) PriorityQueue object named nicknames 5. The output shall do the following 5.1. Ask the user to input the nicknames of four (4) of his/her classmates 52 Ask the user to press H to say "Hi" to each of them 5.3 Display Hi and the classmate's nickname (Ex. Hi Nika!) whenever the user presses H. and Done saying hi when the queue gets empty Sample output Enter the nicknames of 4 of your classmates: Nika Berlin Mark Kae Press # to say hi to each of them. # Hi Berlin Hi Kae Hi Mark Hi Nika H Done saying Hi GRADING RUBRIC (100 points) Criterion Description Correctness The code produces the expected result Logic The code meets the specifications of the problem Efficiency The code is concise without sacrificing correctness and logic Syntax The code adheres to the rules of the programming language. Max Points 40 40 10 10 07 Hands-on Activity 1 *Property of STI Page 1 of 1 TIL
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started