Question: #include #include #define WIN_WIDTH (500) #define WIN_HEIGHT (300) #define ID0 () #define ID1 ( ) #define ID2 ( ) //prototypes void openSVG(char *id, int w,

 #include #include #define WIN_WIDTH (500) #define WIN_HEIGHT (300) #define ID0 ("")

#define ID1 (" ") #define ID2 (" ") //prototypes void openSVG(char *id,

int w, int h); void commentSVG(char *id, char *cmt); void fillRectSVG(char *id,

int x, int y, int w, int h, int r, int g,

#include #include

#define WIN_WIDTH (500) #define WIN_HEIGHT (300) #define ID0 ("") #define ID1 (" ") #define ID2 (" ")

//prototypes void openSVG(char *id, int w, int h); void commentSVG(char *id, char *cmt); void fillRectSVG(char *id, int x, int y, int w, int h, int r, int g, int b, float op); void fillCircleSVG(char *id, int cx, int cy, int rad, int r, int g, int b, float op); void fillEllipseSVG(char *id, int cx, int cy, int rx, int ry, int r, int g, int b, float op); void drawCirclesRowSVG(char* id, int cx, int cy, int rad, int n, int r, int g, int b); void closeSVG(char *id); void prologueHTML5(void); void drawTextH1HTML5(char *id, char *text, char *col); void drawParaHTML5(char *id, char *text, char *col); void epilogueHTML5(void);

void openSVG(char* id, int w, int h) { printf("%s ", id, w, h); }//openSVG

void closeSVG(char* id) { printf("%s ", id); }//closeSVG

void commentSVG(char* id, char* cmt) { printf("%s ", id, cmt); }//commentSVG

void fillRectSVG(char* id, int x, int y, int w, int h, int r, int g, int b, float op) { printf("%s ", id, x, y, w, h,r, g, b, op); }//fillRectSVG

void fillCircleSVG(char* id, int cx, int cy, int rad, int r, int g, int b, float op) { printf("%s ", id, cx, cy, rad, r, g, b, op); }//fillCircleSVG

void fillEllipseSVG(char* id, int cx, int cy, int rx, int ry, int r, int g, int b, float op) { printf("%s ", id, cx, cy, rx, ry, r, g, b, op); }//fillEllipseSVG

void drawCirclesRowSVG(char *id, int cx, int cy, int rad, int n, int r, int g, int b) { // replace with your code }//drawCirclesRowSVG

void drawShapesSVG(void) { openSVG(ID1, WIN_WIDTH, WIN_HEIGHT); commentSVG(ID1, "Define and paint SVG view box"); fillRectSVG(ID2, 0, 0, WIN_WIDTH, WIN_HEIGHT, 245, 245, 220, 1.0); commentSVG(ID2, "Draw SVG shapes"); fillCircleSVG(ID2, 50, 150, 40, 60, 249, 237, 0.8); fillRectSVG(ID2, 130, 120, 100, 60, 0, 255, 0, 0.7); fillEllipseSVG(ID2, 370, 150, 100, 40, 255, 0, 255, 0.6); drawCirclesRowSVG(ID2, 50, 50, 50, 5, 255, 0, 0); drawCirclesRowSVG(ID2, 50, 250, 50, 5, 0, 0, 255); closeSVG(ID1); }//drawShapesSVG

void prologueHTML5(void) { printf("%s%s ", ID0, ""); printf("%s%s ", ID0, ""); printf("%s%s ", ID0, "

"); printf("%s%s ", ID1, "

"); printf("%s%s ", ID2, "My First CSC 111 Page"); printf("%s%s ", ID1, "

"); printf("%s%s ", ID0, ""); printf("%s%s ", ID0, ""); drawTextH1HTML5(ID1, "My CSC 111 HTML5/SVG page", "lime"); }//prologueHTML5

void epilogueHTML5(void) { drawParaHTML5(ID1, "SVG is a great skill for my co-op job resume", "blue"); printf("%s%s ", ID0, ""); printf("%s%s ", ID0, ""); }//epilogueHTML5

void drawTextH1HTML5(char* id, char* text, char* col) { printf("%s

%s

", id, col, text); }//drawTextH1HTML5

void drawParaHTML5(char* id, char* text, char* col) { printf("%s

%s

", id, col, text); }//drawParaHTML5

int main(void) { prologueHTML5(); drawShapesSVG(); epilogueHTML5(); return EXIT_SUCCESS; }//main

This the template code. By using this code we have to print the second picture. Thanks.

x 201 809Math1 100 x e solved: In Exercis | W Ras al Ghul.wik XiLeapl SVG Art ic.ca/pluginfile.php/1644996/mod_resource/content/2/Assignment4-revisedA4P4.pdf gram to Search W C Program to Chang (1)Determine the po ] Tryi My CSC 111 HTMLS/SVG page SVG is a great skill for my co-op job resume Figure 2: Web page generated by A4P4 template chtml> title My First CSC 111 Page /title /head> body>

My CSC 111 HTMLS/SVG page

krect x-"e" ye" width- "58e" height "30e" fill-"rgb (245, 245, 228)" fill-opacity-"1.e" circle cx="50" cy-'150" r-"40" fille"rgb(60, 249, 237 )" fill-opacity:"0.8"> ellipse cx-"370" : "150" rxz "100" rys "40" fill-"rgb (255, 0, 255)" fill-opacity: "0.6">

SVG is a great skill for my co-op job resume

/html> Figure 3: A4P4 template #include #include #define WIN-WIDTH (500) #define WIN-HEIGHT (300) #define 1D0 ("") #define ID1 (" ") #define ID2 (" ") //prototypes void openSVG (char *id, int w, int h)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!