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

Subject Name: Programming skills – IV (Java) Subject Code: 2630006

A class named Person which stores information like first name, middle ... Create a new class named Registration which takes information of student like first ...

160KB Sizes 4 Downloads 60 Views

Recommend Documents

Chemistry-subject-code-34.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item.

Statistics-subject-code-31.pdf
Statistics-subject-code-31.pdf. Statistics-subject-code-31.pdf. Open. Extract. Open with. Sign In. Main menu. Displaying Statistics-subject-code-31.pdf. Page 1 of ...

Accountancy-subject-code-30.pdf
c) It is not suitable for big business concerns. d) This system is not recognized by Income Tax and Sales Tax. Authorities. e) It is not possible to ascertain exact profit and Financial Position. of the business. f) It gives much scope for carelessne

Electronics-Subject-Code-40.pdf
Define single hop distance. 1. Ans The distance from the transmitting antenna measured along the earth surface. where the first hop takes place is called single ...

Chemistry-subject-code-34.pdf
York Hotel in New York, United States of America as announced on 14 March 2016. The acquisition was completed on. 29 April 2016 (the “2016 Acquisition”). Accordingly, the YTD Sep 2017 DPU was adjusted to exclude the contribution from. the 2016 Ac

Economics-subject-code-22.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Economics-subject-code-22.pdf. Economics-subject-code-22.pdf. Open. Extract. Open with. Sign In. Main menu.M

Electronics-Subject-Code-40.pdf
Whoops! There was a problem loading more pages. Whoops! There was a problem previewing this document. Retrying... Download. Connect more apps.

Sociology-subject-code-28.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Sociology-subject-code-28.pdf. Sociology-subject-code-28.pdf. Open. Extract. Open with. Sign In. Main menu.M

Subject code à3063 B.tech EXAMINATION PROGRAMING ...
B.tech EXAMINATION. (Fourth semester). (Main/RE-appear Batch 2011 onwards). (CSE/IT). CSE-204-E. PROGRAMING LANGUAGES. Time: 3 hours. Maximum ...

subject - GitHub
With this subject you are asked to present the construction(s) of the classical ... Imagine the pixels of a screen computer as a grid where each square is either ...

Business-studies-subject-code-27.pdf
2x1=2. 16. What is Tele-Banking. Provision of certain banking services (such as account balance inquiry, funds. transfer, and payment of bills) through telephone.

Business-studies-subject-code-27.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Business-studies-subject-code-27.pdf. Business-studies-subject-code-27.pdf. Open. Extract. Open with. Sign I

Business-studies-subject-code-27.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item.

Main-Exam-English-Compulsory-Question-Paper-Subject-Code ...
Such violations harm the ... operasional perusahaan dengan mengukur dan mengevaluasi kecukupan kontrol serta efisiensi ... permanent damage to the brain. ... -Compulsory-Question-Paper-Subject-Code-QDB-22-Advt-09-014-15.pdf.

Subject Change.pdf
subject change allowed. Sr N0 Name Class Roll No. Course Type for which. changes are allowed. Page 1 of 1. Subject Change.pdf. Subject Change.pdf. Open.

Subject Description Template.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Subject ...

Subject: Proposal f -
Subject: Proposal for deployment of JIO Fiber , 4GLTE & WIFI Network in ... business houses and Commercial Complexes/ establishment do around the world.

Commarce-Subject-11th.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Commarce-Subject-11th.pdf. Commarce-Subject-11th.pdf. Open. Extract. Open with. Sign In. Main menu.

subject outline periwinkle.pdf
Download. Connect more apps... Try one of the apps below to open or edit this item. subject outline periwinkle.pdf. subject outline periwinkle.pdf. Open. Extract.

Subject-Auxiliary Inversion
Jun 26, 2013 - The treatment of English auxiliary verbs epitomizes the stark contrast between the original generative view of syntax as an autonomous formal ...

Commarce-Subject-11th.pdf
Tax Incidence l0 6 Questions X 1 Mark each. l QuestionX4Marks. =06. :04 l0. -) Agricr.rltural Ltcome 5. I Question X I Mark :01. 1 Qr"restion X 4 Marks :04 5. -t.

a political subject
common enterprise: a web that even encompasses the (only partly) contractual ..... never have to bow and scrape before Native nobility. .... life like a spider-web. And in the middle of it was the spider: the concubine or nyai. She is not one who tak

Download [Pdf] Sat Subject Test Biology (Sat Subject Test Biology E/M) Read online
Sat Subject Test Biology (Sat Subject Test Biology E/M) Download at => https://pdfkulonline13e1.blogspot.com/143800575X Sat Subject Test Biology (Sat Subject Test Biology E/M) pdf download, Sat Subject Test Biology (Sat Subject Test Biology E/M)

Download [Pdf] SAT Subject Test Physics (Barron's Sat Subject Test Physics) Full Pages
SAT Subject Test Physics (Barron's Sat Subject Test Physics) Download at => https://pdfkulonline13e1.blogspot.com/1438000405 SAT Subject Test Physics (Barron's Sat Subject Test Physics) pdf download, SAT Subject Test Physics (Barron's Sat Subject