0% found this document useful (0 votes)
40 views

Department of Master of Computer Application 11mx36 Client Intensive Object Computing Laboratory Lab Work Sheet - 1

1. Write programs to find roots of a quadratic equation, convert a two digit number to words using switch case, and calculate a sine series. 2. Create classes for rectangles and cuboids with methods to calculate area, volume, and surface area using inheritance. 3. Write programs demonstrating hierarchical and multilevel inheritance. 4. Create an applet to display shapes like rectangles, squares, circles and ellipses. 5. Design an applet with animation displaying your college name. 6. Create an application using static members to count instances of a class.

Uploaded by

JSaddam Hussain
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views

Department of Master of Computer Application 11mx36 Client Intensive Object Computing Laboratory Lab Work Sheet - 1

1. Write programs to find roots of a quadratic equation, convert a two digit number to words using switch case, and calculate a sine series. 2. Create classes for rectangles and cuboids with methods to calculate area, volume, and surface area using inheritance. 3. Write programs demonstrating hierarchical and multilevel inheritance. 4. Create an applet to display shapes like rectangles, squares, circles and ellipses. 5. Design an applet with animation displaying your college name. 6. Create an application using static members to count instances of a class.

Uploaded by

JSaddam Hussain
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

Department of Master of Computer Application 11mx36 Client Intensive Object Computing Laboratory Lab work sheet -1

1. Write a Java program to find all roots of quadratic an equation. 2. Write a Java program to convert a two digit number into words using switch case. 3. Write a Java program to calculate sine series x3 x5 x7 sin(x) = x ---- + ---- - ---- + . 3! 5! 7! 4. Create a class called rectangle with following public fields length breadth and following private method caculatearea( ) extend this class and create new class called cuboid which has the following additional public field height and following methods calculatevolume( ) calculatesurface( ) Here the constructor of cuboid should call constructor of its super class( rectangle ). 5. Write a Java program to create following types of inheritance (a) Hierarchical Inheritance (b) Multilevel Inheritance 6. Create an applet which display the following shapes. (a) rectangle (b) square (c) circle (d) ellipse 7. Design an applet to display your college name with attractive animation. 8. Create an application by using static member to count the number of instances of a class

Submission Date : 29/6/2012

You might also like