Core - JAVA Lab ManualDevelop a Java application to generate Electricity bill. Create a class with the following members: Consumer no., consumer name, previous month reading, current month reading, type of EB connection (i.e domestic or commercial). Compute the bill amount using the following tariff. If the type of the EB connection is domestic, calculate the amount to be paid as follows: First 100 units - Rs. 1 per unit101-200 units - Rs. 2.50 per unit 201 -500 units - Rs. 4 per unit > 501 units - Rs. 6 per unit If the type of the EB connection is commercial, calculate the amount to be paid as follows: First 100 units - Rs. 2 per unit 101-200 units - Rs. 4.50 per unit 201 -500 units - Rs. 6 per unit > 501 units - Rs. 7 per unitDevelop a java application to implement currency converter(Dollar to INR, EURO to INR, Yen to INR and vice versa),distance converter (meter to KM, miles to KM and vice versa),time converter (hours to minutes, seconds and vice versa) usingpackages.Develop a java application with Employee class withEmp_name, Emp_id, Address, Mail_id, Mobile_no asmembers. Inherit the classes, Programmer, AssistantProfessor, Associate Professor and Professor from employeeclass. Add Basic Pay (BP) as the member of all the inheritedclasses with 97% of BP as DA, 10 % of BP as HRA, 12% ofBP as PF, 0.1% of BP for staff club fund. Generate pay slipsfor the employees with their gross and net salary. Design a Java interface for ADT Stack. Implement thisinterface using array. Provide necessary exception handlingin both the implementations.Write a program to perform string operations using Array List. Write functions for the following a. Append - add at end b. Insert add at particular index c. Search d. List all string starts with given letter. Write a Java Program to create an abstract class named Shapethat contains two integers and an empty method named printArea(). Provide three classes named Rectangle, Triangleand Circle such that each one of the classes extends the classShape. Each one of the classes contains only the method printArea () that prints the area of the given shape.Write a Java program to implement user defined exceptionhandling.Write a Java program that reads a file name from the user,displays information about whether the file exists, whether thefile is readable, or writable, the type of file and the length ofthe file in bytes.Write a java program that implements a multi-threadedapplication that has three threads. First thread generates arandom integer every 1 second and if the value is even, secondthread computes the square of the number and prints. If thevalue is odd, the third thread will print the value of cube of thenumber.Write a java program to find the maximum value from thegiven type of elements using a generic function.Design a calculator using event-driven programming paradigm of Java with the following options.a) Decimal manipulationsb) Scientific manipulations
No comments:
Post a Comment