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
-
The vibration of a motor mounted in the middle of a fixed-end beam can be modeled as a mass-spring system. The motor mass is 40 kg, and the beam mass is 13 kg. When the motor is placed on the beam,...
-
How can digital marketing be used to develop new markets and penetrate existing markets? What types of new products can be delivered by the internet?
-
Using an example of static equilibrium of an element in pure two-dimensional (2D) shear stress, prove that the shear stresses are symmetric (i.e., prove that \(\sigma_{i j}=\sigma_{j i}\) when \(i eq...
-
Life cycle product costing. Intentical Inc., manufactures game systems. Intentical has decided to create and market a new system with wireless controls and excellent video graphics. Intenticals...
-
Discuss the principles of wind energy resource assessment and optimization in onshore and offshore wind farm development, addressing topics such as wind turbine siting, wake effects, turbulence...
-
You have just been hired as a financial analyst for Lydex Company, a manufacturer of safety helmets. Your boss has asked you to perform a comprehensive analysis of the company's financial statements,...
-
Consider the following the flat database table: FName LName Address California Florida New Jersey California Mark Maria John Mark John Smith Cruise Hareson Smith Hareson Course code TM366 TM366 TM112...
-
Suppose The Management's position had been 95% in the Vanguard index during the time period used with the data and 5% in one of the individual stocks. For each of the two such portfolios (95%...
-
You are an investor and investing in four stock options (SOA, SOB, SOC, and SOD) for a single day. The purchase prices and the historical price standard deviations are as follows: SOA: Purchase Price...
-
The ticket sales for events held at the new civic center are believed to be normally distributed with a mean of 16,000 and a standard deviation of 2,000. (You may need to use the appropriate appendix...
-
Use the following chart on US Treasury Bond Rates to answer questions 9 and 10. All bonds are zero coupon bonds. Maturity 3 Month 6 Month 2 Year 3 Year 5 Year 10 Year 30 Year Yield 0.77 0.92 1.23...
-
Preparing an Income Statement, Statement of Retained Earnings, and Balance Sheet and Interpreting the Financial Statements [LO 1-2, LO 1-3] [The following information applies to the questions...
-
On 6/30/2022 Smith Co purchased a 10 year insurance policy on its equipment for $2,670,000. This is the only insurance policy the company has in place. As of 12/31/2022, what would be the balance for...
-
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...
-
Define and distinguish between an open and a closed adoption.
-
Describe the nature and purpose of putative father registries.
-
Describe the nature and significance of the biologyplus rule.
Study smarter with the SolutionInn App