S 334 Final E 6Read the ollowing function and drw the corespodingoti she to the function call aterwards (draw it pisel-by pisel, Lplt ech piset) 5 vold dras (int O Int yo, int sEnd, Int yn int p 2...
CS 334 Final Exam Prof. Danyang Thang Read the following function and draw the corresponding geometric shape according 6. to the function call afterwards (draw it pixel-by-pixel, i.e., plot each pixel) (25 points) void draw (int xo, int yo, int xEnd, int yEnd) int dx = fabs (xEnd- :0), dy fabs(yEnd-yo); int p = 2 * dy-dx; int twoDy 2dy, twoDyMinusDx 2(dy dx) int x, y: if (xo> xEnd) f y yEnd; xEnd = x0; else f x=x0; setPixel (х,...