Design, Develop and Implement a menu driven program in C for the following operations on STACK of integers

A stack can be implemented by means of Array, Structure, Pointer and Linked-List. Stack can either be a fixed size one or it may have a sense of dynamic resizing.…

Continue ReadingDesign, Develop and Implement a menu driven program in C for the following operations on STACK of integers

Design, Develop and Implement a Program in C for converting an Infix Expression to Postfix Expression

ABOUT THE EXPERIMENT: Infix: Operators are written in-between their operands. Ex: X + YPrefix: Operators are written before their operands. Ex: +X Ypostfix: Operators are written after their operands. Ex:…

Continue ReadingDesign, Develop and Implement a Program in C for converting an Infix Expression to Postfix Expression

OpenGL program to develop a menu driven program to fill the polygon using scan line algorithm

Objective: In this program the students will learn to apply scan-line area filling algorithm to fill a polygon using OpenGL functions.Input: Provide the eight vertices to draw the polygon.Output: Polygon…

Continue ReadingOpenGL program to develop a menu driven program to fill the polygon using scan line algorithm

OpenGL program to Implement Bresenham’s line drawing algorithm for all types of slope

Program // Bresenham's Line Drawing #include #include #include int x1, y1, x2, y2; void myInit() { glClear(GL_COLOR_BUFFER_BIT); glClearColor(0.0, 0.0, 0.0, 1.0); glMatrixMode(GL_PROJECTION); gluOrtho2D(0, 500, 0, 500); } void draw_pixel(int x,…

Continue ReadingOpenGL program to Implement Bresenham’s line drawing algorithm for all types of slope