A class named Person which stores information like first name, middle ... Create a new class named Registration which ta
Subject Name: Programming skills – IV (Java) Subject Code: 2630006 1
2
A class named Student which stores information like the roll number, first name, middle name, last name, address and age of the student. The class should also contain appropriate get and set methods. A class named Employee which stores information like the Emp number, first name, middle name, last name, address, designation and salary. The class should also contain appropriate get and set methods.
3 A class named Person which stores information like first name, middle name, last name, address, phone no. A class named Student which inherits Person class. Also add information like Institute name, degree. The class should also contain appropriate get and set methods.
4
5
A class named Employee which inherits Person class. Also add information like Designation and salary. The class should also contain appropriate get and set methods. A class named Circle which stores information like radius, final variable PHI. The class should contain final methods like Area and Circumference. A class named Cylinder which inherits Circle class. Also add information like height. The class should also contain parameterized constructor named Cylinder (radius,height). Call the parent class constructor using this constructor. The class should also contain methods like Surface and Volume. The method Surface() should over ride the Circumference() of the super class. The method Volume() should override the Area() of the super class. An abstract class named Shape which stores information of final variable PHI. The class should also contain abstract method like Area. A class named Rectangle which inherits Shape class. Also add information like length and breadth. The class should also contain parameterized constructor named Rectangle (length, Breadth). Also implement method Area() and define it in the class.
6
A class named Circle which inherits Shape class. Also add information like radius. The class should also contain parameterized constructor named Circle (radius). Also implement method Area() and define it in the class. An abstract class named Deposit which stores information of principal, year and year. The class should also contain abstract method like Interest (principal, rate, year). A class named Simple_Interest which inherits Deposit class. The class should also contain parameterized constructor named Simple_Interest (principal, rate, year). Also implement method Interest (principal, rate, year) to calculate the simple Interest and define it in the class. A class named Compound_Interest which inherits Deposit class. The class should also contain parameterized constructor named Compound_Interest (principal, rate, year). Also
7
implement method Interest (principal, rate, year) to calculate the Compound_Interest and define it in the class. An interface named Exam with a method passExam(obtained marks, total marks) that returns Boolean. An interface named Classify with a method findDivision (percentage) that returns division of the student as String.
8
9
A class named Exam_result that implements both Exam and Classify. Define the passExam() and findDivision() in this class. The passExam() should return true if the marks obtained is equal or greater than 35%. The findDivision() should return “FIRST” if marks obtained are greater than or equal to 60%, “SECOND” if marks obtained are less than 60 % and greater than or equal to 50% else “NO DIVISION”. Create a class named Login which takes information like username and password. Also create proper get and set methods for data. Create a new class named Registration which takes information of student like first name, middle name, last name and address. Also create proper get and set methods for data. Create a class named Login which takes information like username and password. Also create proper get and set methods for data.
Create a new class named Book_Registration which takes information of Book like Book name, price, Authors, No of copies. Also create proper get and set methods for data. 10 An interface named Calculate with a method calculate_totalpay(basic pay) . A class named Employee_pay that implements Calculate. Also take information like employee first name, last name. Define the calculate_totalpay(basic pay) in this class. Also calculate DA, HRA in the method calculate_totalpay() DA= 10% of Basic Pay HRA=45% of Basic Pay Total Pay= DA+HRA+Basic Pay. 11 Create a package named MyPackage which consists of following classes A class named Item which stores information like the Item no, Item name, Price of the Item. The class should also contain appropriate get and set methods. B class named sales which will create object of item class and call get method from item class. (this class is outside the package)(you need to import package) 12 Create a package named MyPackage which consists of following classes A class named Course which stores information like the Course no, Course name, Max_Marks, Pass_Marks. The class should also contain appropriate get and set methods. 13 Create a package named MyHostelPackage which consists of following classes A class named Hostel which stores information like the Hostel number, hostel name, address and total capacity. The class should also contain appropriate get and set methods.
14 Create a package named MyHotelPackage which consists of following classes A class named Hotel which stores information like the Hotel number, hotel name, address, no of rooms and total capacity. The class should also contain appropriate get and set methods. 15 Create a package named MyPackage which consists of following classes A class named Movie which stores information like the Movie Id, Movie name, Date of Release. The class should also contain appropriate get and set methods.
16 Create a package named MyPackage which consists of following classes A class named Distributor which stores information like the Distributor Id, Distributor name, address, Contact No. The class should also contain appropriate get and set methods.
17 Create a package named MyPackage which consists of following classes A class named Worker which stores information like the Worker Id, Worker name, address, Contact No, wage per hour. The class should also contain appropriate get and set methods. 18 Create a package named MyPackage which consists of following classes A class named Publisher which stores information like the Publisher Id, Publisher name, address, Contact No. The class should also contain appropriate get and set methods. 19 Create a package named MyPackage which consists of following classes A class named Entrance_Test which stores information like the Test Id, Test name, Max_Marks, Pass_Marks. The class should also contain appropriate get and set methods. 20 Create a package named MyPackage which consists of following classes A class named Competition which stores information like the Competition Id, Competition name, No of Participants. The class should also contain appropriate get and set methods. 21 Create a package named MyPackage which consists of following classes A class named Magazine which stores information like Magazine Id, Magazine Name and Type of Subscription. The class should also contain appropriate get and set methods. 22 Create a package named MyPackage which consists of following classes A class named Account which stores information like the Account No, Account Name, Account type. The class should also contain appropriate get and set methods. 23 Create a package named MyPackage which consists of following classes A class named Parts which stores information like Part Id, Part Name, Part Color, Price. The class should also contain appropriate get and set methods.
Provide proper error messages and perform appropriate exceptions where ever required in all the classes
24 Create a package named MyPackage which consists of following classes A class named Department which stores information like Dep_Id, Dep_name, No of Employees. The class should also contain appropriate get and set methods. Provide proper error messages and perform appropriate exceptions where ever required in all the classes
25 Create a package named MyPackage which consists of following classes A class named Boat which stores information like Boat Id, Boat Name, Boat Color, Price. The class should also contain appropriate get and set methods. Provide proper error messages and perform appropriate exceptions where ever required in all the classes