You are on page 1of 5

Process Manual for ACTS

Lab Examination Question Paper

ACTS TRAINING CENTRE – Bangalore Question Code : YES

DAC SEP 2023


Core Java
Date : 30.10.2023 Duration : 2 Hrs Max. Marks : 40

1) Write a Java program to perform the following operations-Using File


Handling – (40 Marks)

a) Create a class called Account with the following fields

account No,
customer_name,
Address
Customer type– Government employee /private employee /Agriculture
loan amt
Interest rate;
term
loan type – personal/home/agriculture

b) Create 5 Account Object


c) Create file and write the Account object into the file
d) Read object from the file , Display all Account Object
e) Find EMI and display the customer details
along with EMI.
f) Display the customer who has taken agriculture loan.
g) Display how many customers has taken personal loan and Home loan.

EMI = (loan amt +loan amt *Interest rate)/term

Interest rate = 9% for Home loan 14% for personal loan 5% for
agriculture loan

Term could be 12,24,36 months


Process Manual for ACTS

Lab Examination Question Paper

ACTS TRAINING CENTRE – Bangalore Question Code : ZES

DAC SEP 2023


Core Java
Date : 30.10.2023 Duration : 2 Hrs Max. Marks : 40

4) Write a program to solve the given hierarchy


Use classes and objects
Constructor
Inheritance
Abstract method
interface
Overriding
Demonstrate runtime polymorphism

Employee- abstract class


empid
empname
address
age
companyName
designation
baseSalary
+calculateSal();- Abstract Method

EmpInterface – Interface
+findTax(); - Abstract Method
Process Manual for ACTS

Driver
licenseId
overtimeAmount
+calculateSal ();
+findTax()-

Engineer
projectName
DA,HRA
+calculateSal
+findTax()

Note:

calculateSal() – for Driver


baseSalary + OvertimeAmount – tax

calculateSal() – for Engineer


baseSalary + DA+HRA – tax

findtax()- for both


if annualsalary<200000 tax =0;
if annualsalary>200000 and <500000 tax = 10%
else tax = 20%
Process Manual for ACTS

Lab Examination Question Paper

ACTS TRAINING CENTRE – Bangalore Question Code : KES

DAC SEP 2023


Core Java
Date : 30.10.2023 Duration : 2 Hrs Max. Marks : 40

1) Create a Player table using Mysql with the following fields

Player name
total run
no of wicket
no of matches
country name
salary
category=’B’
Write a Java program to perform the following operations-using using JDBC
Prepared Statement

2) Insert Player data to the table(min five records)


3) Display player who are playing for a particular country
4) update the category(‘A’) of player who has scored more than 10000
runs
5) delete player whose has scored less than 500 run and played more
than 5 matches.
6) Find the player who has got max run for a particular country
Process Manual for ACTS

Lab Examination Question Paper

ACTS TRAINING CENTRE – Bangalore Question Code : VES

DAC SEP 2023


Core Java
Date : 30.10.2003 Duration : 2 Hrs Max. Marks : 40

1) Create a class called Account with the following fields (Array List)

account No,
customer_name,
Address
Customer type– Government employee /private employee /Agriculture
loan amt
Interest rate;
term
loan type – personal/home/agriculture
loanPaid - boolean

b) Create 5 customer object and add into the Array List


c) Display all customer using iterator
e) Find EMI and display the customer details
along with EMI.
f) Display the customer who has taken agriculture loan.
g) Delete all the customer who has paid loan amount
h) Reduce further 2% to customer type Agriculture.

EMI = (loan amt +loan amt *Interest rate)/term

Interest rate = 9% for Home loan 14% for personal loan 5% for
agriculture loan

Term could be 12,24,36 months

You might also like