Given the following table containing information about employees of an organization, develop a small java application,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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: EmpNo EmpName Department Designation Salary In your program, you must initialize an array with the following details. Designation Department Code Emp Emp Join Date Basic HRA IT No Name 1001 Ashish 01/04/2009 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 Front Desk 12000 6000 2000 1005 Ranjan 16/07/2005 Engg 50000 20000 20000 m 1006 Suman 1/1/2000 Manufacturing 23000 9000 4400 e 1007 Tanmay 12/06/2006 PM 29000 12000 10000 DA (Dearness Allowance) details are given in the below "Designation" table. Designation Code Designation DA Engineer 20000 Consultant 32000 k Clerk 12000 Receptionist 15000 Manager 40000 Note 1: Salary should be calculated as (Basic + HRA + DA – IT). Note 2: Use switch-case to print Designation and to find the value of DA for a particular employee. Expected Output format: (assuming that your class name is Project1) If you execute the command java Project1 1003, the output should be - Emp No. Emp Name Department Designation Salary 1003 Rahul Acct Clerk 29000 If you execute the command java Project1 123, the output should be - There is no employee with empid : 123 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: EmpNo EmpName Department Designation Salary In your program, you must initialize an array with the following details. Designation Department Code Emp Emp Join Date Basic HRA IT No Name 1001 Ashish 01/04/2009 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 Front Desk 12000 6000 2000 1005 Ranjan 16/07/2005 Engg 50000 20000 20000 m 1006 Suman 1/1/2000 Manufacturing 23000 9000 4400 e 1007 Tanmay 12/06/2006 PM 29000 12000 10000 DA (Dearness Allowance) details are given in the below "Designation" table. Designation Code Designation DA Engineer 20000 Consultant 32000 k Clerk 12000 Receptionist 15000 Manager 40000 Note 1: Salary should be calculated as (Basic + HRA + DA – IT). Note 2: Use switch-case to print Designation and to find the value of DA for a particular employee. Expected Output format: (assuming that your class name is Project1) If you execute the command java Project1 1003, the output should be - Emp No. Emp Name Department Designation Salary 1003 Rahul Acct Clerk 29000 If you execute the command java Project1 123, the output should be - There is no employee with empid : 123
Expert Answer:
Answer rating: 100% (QA)
Answer I have wrote the code and for a time being i have inserted only two employee among the mentioned in the problem statement which you update as per your choice StepbyStep explanation Employeejava ... View the full answer
Related Book For
Basic Business Statistics Concepts and Applications
ISBN: 978-0132168380
12th edition
Authors: Mark L. Berenson, David M. Levine, Timothy C. Krehbiel
Posted Date:
Students also viewed these mathematics questions
-
Given the following table for two related samples: a. Compute the McNemar test statistic. b. At the 0.05 level of significance, is there evidence of a difference between group 1 and group 2? GROUP 1...
-
Given the following table of data points find the best least squares fit by a linear function f(x) = c1 + c2x. x- 1 2
-
Given the following table of joint probabilities, calculate the marginalprobabilities. A-21
-
Find the x-values where the following do not have derivatives. + -6 + y 8 0 6 X
-
When performing a x2 test of independence in a contingency table with r rows and c columns, determine the upper-tail critical value of the test statistic in each of the following circumstances: a. =...
-
Which of the isomeric C5H12O alcohols can be prepared by lithium aluminum hydride reduction of? (a) An aldehyde (c) A carboxylic acid (b) A ketone (d) An ester of the type RCOCH3
-
As a customer, think back to a recent sales presentation that you felt went well. What made it good? What did the salesperson do (or not do) that most impressed you? Did you buy the product or...
-
Watson Metal Products is planning to expand its operations to France in response to increased demand from the French for quality metal products to use in production processes. Ben Watson, president...
-
1. Using MATLAB, plot the three elements of the strain vector when the above material is oriented at (1) 0 and (2) at 30. This is accomplished by incrementally applying stress (i.e., 5 psi, 10 psi,...
-
At the time he purchased his variable annuity, Ahmed directed $5,000 of his premium into Subaccount A when the unit value was $10. A year later, the unit value had increased to $15. Assuming he made...
-
This question: 15 points) Assume Happy Camper Company was organized as a corporation. Happy Camper Company decides to raise additional capital for a planned business expansion by issuing additional...
-
Wood Work Inc. and Modern Furniture Ltd. are two large home furnishing retailers, selling a wide range of furniture, major appliances, and home electronics. The following data were taken from recent...
-
The Hotel Front Desk the Nerve Center of Customer Service Delivery! The hotel front desk is the nerve center and the dispatcher for customer service inquiries of all types. Although a large portion...
-
In this project, you will demonstrate your mastery of the following competencies: Analyze the fiscal impact of tax laws and incentives on an organization Recommend optimal tax planning strategies...
-
Smartphone, and examine how it has been designed, paying special attention to how the user should interact with it. From your first impressions, write down the good and bad things about how the...
-
On January 1, 2XX0, Waterfall Inc. acquired a 10% interest in Junior Corp. On January 1, 2XX1, Waterfall Inc. acquired an additional 20% Junior's common stock. No goodwill resulted from either...
-
Read and respond to the text: I believe that when traveling for business there are many cybersecurity issues to consider. One of the largest things to be cautious about while traveling, in general,...
-
Nitrogen monoxide reacts with hydrogen as follows: 2NO(g)+ H2(g) N2O(g) + H2O(g) The rate law is [H2]/ t = k[NO]2[H2], where k is 1.10 107 L2/(mol2s) at 826oC. A vessel contains NO and H2 at...
-
What is the difference between sampling with replacement versus sampling without replacement?
-
How does the interpretation of the regression coefficients differ in multiple regression and simple linear regression? Discuss.
-
A branch manager of a brokerage company is concerned with the number of undesirable trades made by her sales staff. A trade is considered undesirable if there is an error on the trade ticket. Trades...
-
Which of the following approaches is used to study management? Art Process Science Profession
-
Management is Ongoing process Social process Integrated process All the above
-
Which is the correct order for the process of management? Planning, organizing, staffing, directing, and controlling Planning, organizing, directing, staffing, and controlling Planning,...
Study smarter with the SolutionInn App