Question: Write a PL / SQL block that will prompt for an employee# number ate runtime. The block will display the employee# and name, job description,
Write a PLSQL block that will prompt for an employee# number ate runtime. The block will display the employee# and name, job description, salary and employee manager for all employee working in the same department number as the input employee, see sample output below:Question Composition:
Preparation:
Create a new NetBeans project called Question
In the extracted provided files, under folder Q you will find the files needed for this question.
Add the provided Hand.jar file to the "Libraries" for Question project.
Remember to Edit the Hand library and add the extracted "javadoc" folder as the Javadoc for this library.
Create a new class called AnalogueWatch for the Question project and complete it as described below.
The questions:
An analog watch, also called an analogue watch, is a timepiece that displays the time using hands on a traditional clock face, as opposed to a digital display
that shows the time in numerals. The analog watch has different parts but the most important are the face and the hands.
The face is the front of the watch, where the hands and markings are located. It is usually made of glass or plastic and can be round, square, or other shapes.
The hands are the pointers that rotate around the face to indicate the time. There are typically three hands:
Hour hand: The shorter hand that points to the hour.
Minute hand: The longer hand that points to the minute.
Second hand: A very thin hand that sweeps around the face once every minute.
For this question, it is expected of you to create a concrete class called AnalogueWatch that represents an analogue watch. Follow the instructions in the
description table Table and the information given in the UML diagram Table and complete the AnalogueWatch class.,
Enter employeenumber:
EMPLOYEE JOB SAL MANAGER
SCOTT ANALYST JONES
FORD ANALYST JONES
ADAMS CLERK SCOTT
JONES MANAGER KING
SMITH CLERK FORD
No of staff:
Total salary: R
Use BASIC loop with PLSQL variables.
Use WHILE loop with PLSQL record.
Use cursorFOR loop
Use BASIC or WHILE loop with parameter the employee# should be treated as parameter to the cursor
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
