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
-
Find the z-score that has 78.5% of the distributions area to its right.
-
In problem 6.4, what percentage of time is the order actually running? In problem 6.4 An order for 50 of a product is processed on work centers A and B. The setup time on A is 45 minutes, and run...
-
A bulldozer costs 12,150. It will be kept for five years. At the end of that time agreement has already been made that it will be sold for 1,600. Show your calculations of the amount of depreciation...
-
(Prepared from a situation suggested by Professor John W. Hardy.) Lone Star Meat Packers is a major processor of beef and other meat products. The company has a large amount of T-bone steak on hand,...
-
The required return is the net result of applying the Capital Asset Pricing Model to the stocks you have in your Portfolio. In order to compute the required rate of return, you will need three...
-
The post-closing trial balance for Heron Consulting Services, inc, at December 31 of the prior year is presented here. The company respond the following transactions during the current year: January...
-
Claret Corporation had the following transaction for the year 2019: January 1 Purchased 40,000 shares of ABC Co. at P22 per share plus transaction cost of P1 per share. This is designated as fair...
-
Describe the competitive dynamics of the movie delivery business of today, taking into consideration on top of everything, extreme external shocks in the industry such as global pandemics. To what...
-
Create 'professor_audit_trail' table. Use the code below: use ; create table professor_audit_trail ( id int unsigned primary key auto_increment not null, ProfessorName VARCHAR(255) not null,...
-
How are the competitive forces within industrial automation product industry shaping its profitablity using porter's five forces framework
-
Technological , political, and competitive influences are categorized as what type of major influence on business buyer behavior? Explain
-
Discuss Four (4) traditional competitive criteria and explain implication of each criteria in business operations.
-
In a study, the sample is chosen by pulling 50 names from a hat. What is the sampling method? 2 answers
-
Phosgene, COCl2, is a toxic gas used in the manufacture of urethane plastics. The gas dissociates at high temperature. At 400oC, the equilibrium constant Kc is 8.05 104. Find the percentage of...
-
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...
-
Rationalize the denominator of the following: 1. \(\frac{5}{\sqrt{7}}\) 2. \(\frac{3 \sqrt{6}}{2 \sqrt{10}}\)
-
Perform the following operations without a calculator. Simplify if possible. 1. \(3 \sqrt{15} \div(8 \sqrt{3})\) 2. \(14.7 \sqrt{135} \div(3 \sqrt{5})\).
-
Identify all subsets of the real numbers to which the following real numbers belong: 1. 14 2. -14.223 3. \(\sqrt{17}\)
Study smarter with the SolutionInn App