Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
35 views

User Defined Java Class - Assignment For Practice

The document outlines 3 assignments. The first asks to create employee and project files to calculate salary details including bonuses. The second asks to perform basic math operations on number pairs. The third asks to create a product file to calculate total prices and apply a 5% discount if the total is over $100.

Uploaded by

Renato Santos
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views

User Defined Java Class - Assignment For Practice

The document outlines 3 assignments. The first asks to create employee and project files to calculate salary details including bonuses. The second asks to perform basic math operations on number pairs. The third asks to create a product file to calculate total prices and apply a 5% discount if the total is over $100.

Uploaded by

Renato Santos
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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