Hello,
I'm almost completely useless at C, and as part of a project I've got to conjure up a programme, and I'm just hoping someone can give me push to get it started.
I want to make a programme where the user can draw a CIRCLE, SQUARE, LINE and POLYGON (and eventually any polygon) by setting the size or the starting X & Y and ending X & Y and radius.
My professor gave us a clue, we have to use printf and scanf
This what our professor gave to us, : clue:
......
printf("SQUARE");
printf("starting X: ");
scanf( );
...
printf("starting Y: ");
scanf( );
...
printf("ending X: ");
scanf( );
...
printf("ending Y: ");
scanf( );
...
printf("CIRCLE");
printf("starting X: ");
scanf( );
....
printf("ending Y: ");
scanf( );
...
printf("radius: ");
scanf( );
....
printf("LINE");
printf("starting X: ");
scanf( );
....
printf("starting Y: ");
scanf( );
....
printf("POLYGON");
printf(" ");
scanf( );
*rest of the code here*
I don't have really have any idea about this programme, even my classmates can't do it.
So we have to research but we can't find it in our library neither on google.
I'm just asking for a bit of help to get started. :'(
I hope you guys can help me, :'(
and I understand if you don't give away code because I'm not showing my effort. Just a bit of help. :'( Really need it to pass tomorrow. :'(:'(:(:(:'(