Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

User Defined Java Class

Assignment

Assignment1:
1. Create EmployeeDetails file with multiple records having data as (EmpId, EmpName, Dept, DOB,
Contact, Address, Email and Basic).
2. Create ProjectDetails file (EmpId, DeplyedOnProject-yes/no)
3. Calculate TA, HRA & Total salary
 HRA will be 12 % of Basic,
 TA will be 4% of Basic,
 If employee is on project, bonus will be 4500.

Assignment2:
Take few pair of numbers and perform following operations on them:
 Addition
 Multiplication
 Subtraction
 Division

Assignment3:
1. Create ProductDetails file with multiple records having data as (ProdId, ProdName, Quantity,
Price).
 Calculate TotalPrice of each product.
 If TotalPrice is greater than 100, then give discount of 5% else no zero discount.

© 2018 AutomationEdge Inc. All Rights Reserved.


This document is for your company’s internal use only and may not be distributed to any third party.

You might also like