Friday, January 22, 2021

24. Create a class Box containing length, breath and height. Include following methods in it: a) Calculate surface Area b) Calculate Volume c) Increment, Overload ++ operator (both prefix & postfix) d) Decrement, Overload -- operator (both prefix & postfix) e) Overload operator == (to check equality of two boxes), as a friend function f) Overload Assignment operator g) Check if it is a Cube or cuboid Write a program which takes input from the user for length, breath and height to test the above class.

 24. Create a class Box containing length, breath and height. Include following methods in it:

              a) Calculate surface Area

              b) Calculate Volume

              c) Increment, Overload ++ operator (both prefix & postfix)

              d) Decrement, Overload -- operator (both prefix & postfix)

              e) Overload operator == (to check equality of two boxes), as a friend function

              f) Overload Assignment operator

              g) Check if it is a Cube or cuboid Write a program which takes input from the user for                             length, breath and height to test the above class.




23. Create a class Triangle. Include overloaded functions for calculating area. Overload assignment operator and equality operator.

 23. Create a class Triangle. Include overloaded functions for calculating area. Overload assignment operator and equality operator.




22. Create the Person class. Create some objects of this class (by taking information from the user). Inherit the class Person to create two classes Teacher and Student class. Maintain the respective information in the classes and create, display and delete objects of these two classes (Use Runtime Polymorphism).

 22. Create the Person class. Create some objects of this class (by taking information from the user). Inherit the class Person to create two classes Teacher and Student class. Maintain the respective information in the classes and create, display and delete objects of these two classes (Use Runtime Polymorphism).



21. Create Matrix class using templates. Write a menu-driven program to perform following Matrixoperations (2-D array implementation): a) Sum b) Difference c) Product d) Transpose

 21. Create Matrix class using templates. Write a menu-driven program to perform following Matrixoperations (2-D array implementation): a) Sum b) Difference c) Product d) Transpose





Wednesday, January 6, 2021

COMPUTER GRAPHICS question set (PAKHIRA)

  CHAPTER 9

1. window and view port

2. clipping

3. Cohen_Sutherland algo

4. Midpoint subdivision'

5. Sutherland-Hodgman algo

COMPUTER GRAPHICS question set (PAKHIRA)

 CHAPTER 8

1. Parallel projection, Perspective projection

2. orthographic,oblique

3. Vanishing point


COMPUTER GRAPHICS question set (PAKHIRA)

 CHAPTER 7



1. 3D Translation, scaling , rotation


2. 3D rotation about a reference point


4. 3D reflection


5. 3D reflection about a reference point


6. 3D shearing


COMPUTER GRAPHICS question set (PAKHIRA)

 CHAPTER 5

1. Translation, scaling , rotation

2. Translation, scaling , rotation about a reference point

3. homogeneous coordinate system

4. reflection

5. reflection about a reference point

6. shearing




COMPUTER GRAPHICS question set (PAKHIRA)

 CHAPTER 4

1. polygon - concave,convex, scan conversion.

2. odd-even method.

3. winding number method.

4. Boundary fill

5. Flood fill.

6. scan line fill

7. Scan line seed fill.

COMPUTER GRAPHICS question set (PAKHIRA)

 CHAPTER 3

1. Scan conversion method

2. ploynomial method of line, cicrle.

3. DDA for a line, circle.

4. advantage and disadvantage of DDA.

5. Bresssenham's algorithm for line, circle.

6. Midpoint method of line, circle,ellipse.