Manager 40000 Use Switch-Case to print Designation in the output and to find the value of DA for a particular employee. O/P Expected: 1. Assuming that your class name is Project1, and you execute your code as java Project1 1003, it should display the following output : Emp No. Emp Name Department Designation Salary 1003 Rahul Acct Clerk 29000 2. java Project1 123

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter6: Arrays
Section: Chapter Questions
Problem 12PE
icon
Related questions
Question
Manager
40000
Use Switch-Case to print Designation in the output and to find the value of DA for a particular
employee.
O/P Expected:
1. Assuming that your class name is Project1, and you execute your code as
java Project1 1003, it should display the following output :
Emp No. Emp Name
Department Designation Salary
1003
Rahul
Аcct
Clerk
29000
2. java Project1 123
There is no employee with empid : 123
Transcribed Image Text:Manager 40000 Use Switch-Case to print Designation in the output and to find the value of DA for a particular employee. O/P Expected: 1. Assuming that your class name is Project1, and you execute your code as java Project1 1003, it should display the following output : Emp No. Emp Name Department Designation Salary 1003 Rahul Аcct Clerk 29000 2. java Project1 123 There is no employee with empid : 123
Stream : JAVA
Tech Module :1
Project:1
Given the following table containing information about employees of an organization, develop
a small java application, which accepts employee id from the command prompt and displays
the following details as output:
Emp No Emp Name Department Designation and Salary
You may assume that the array is initialized with the following details:
Emp
Emp
Join Date
Desig
Dept
Basic
HRA
IT
No.
Name
Code
1001
Ashish
01/04/2009
e
R&D
20000
8000
3000
1002
Sushma
23/08/2012
PM
30000
12000
9000
1003
Rahul
12/11/2008
k
Аcct
10000
8000
1000
1004
Chahat
29/01/2013
r
Front
12000
6000
2000
Desk
1005
Ranjan
16/07/2005
m
Engg
50000
20000
20000
1006
Suman
1/1/2000
e
Manu
23000
9000
4400
factur
ing
1007
Tanmay
12/06/2006
PM
29000
12000
10000
Salary is calculated as Basic+HRA+DA-IT. (DA details are given in the Designation table)
Designation details :
Designation Code Designation
DA
e
Engineer
20000
C
Consultant
32000
k
Clerk
12000
r
Receptionist
15000
Transcribed Image Text:Stream : JAVA Tech Module :1 Project:1 Given the following table containing information about employees of an organization, develop a small java application, which accepts employee id from the command prompt and displays the following details as output: Emp No Emp Name Department Designation and Salary You may assume that the array is initialized with the following details: Emp Emp Join Date Desig Dept Basic HRA IT No. Name Code 1001 Ashish 01/04/2009 e R&D 20000 8000 3000 1002 Sushma 23/08/2012 PM 30000 12000 9000 1003 Rahul 12/11/2008 k Аcct 10000 8000 1000 1004 Chahat 29/01/2013 r Front 12000 6000 2000 Desk 1005 Ranjan 16/07/2005 m Engg 50000 20000 20000 1006 Suman 1/1/2000 e Manu 23000 9000 4400 factur ing 1007 Tanmay 12/06/2006 PM 29000 12000 10000 Salary is calculated as Basic+HRA+DA-IT. (DA details are given in the Designation table) Designation details : Designation Code Designation DA e Engineer 20000 C Consultant 32000 k Clerk 12000 r Receptionist 15000
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Study of Characters
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT