Object Oriented Programming & Computer Graphics Laboratory
Object Oriented Programming & Computer Graphics Laboratory
GROUP A
· Constructor, Destructor:
Static member functions,friend class,this pointer,inline code and dynamic memory allocation :
· Operator overloading
· Inheritance
· Templates
· Virtual functions & files
8. Create a class named Television that has data members to hold the model number and the screen size in inches,and the price.Member functions include overloaded insertion and extraction operators.If more than four digits are entered for the model,if the screen size is smaller than 12 or greater than 70 inches, or if the price is negative or over $5000 then throw an integer.Write a main() function that instantiates a television
object,allows user to enter data and displays the data members .If an exception is caught ,replace all the data member values with zero values.
GROUP B
1. Assignments to understand functions available in graphics library such as,
(a) Text and Graphics mode, initialization of graphics mode, graphics drivers,
switching between text and graphics mode, error handling.
(b) Color, Color Palette, Aspect ratio, Text: fonts, alignment, size, orientation
and justification.
(c) Graphics Primitives: Pixel, Line, Circle, Ellipse, Polygons, Line styles, Bar
graphs, Pie Charts, Histograms, filling a polygon, windowing.
(d) Writing a Graphics Editor
2. Write a program to implement algorithm for line and circle drawing.
3. Write a program to implement algorithm for filling a polygon using scan-fill
method.
4. Write a program to implement 2-D transformations.
5. Case study of any graphics tool.
0 comments:
Post a Comment