Department of Master of Computer Application 11mx36 Client Intensive Object Computing Laboratory Lab Work Sheet - 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