5SD802 Assignment 1程序代做

- 首页 >> Web

Assignment 1
Programming with C/C++ 1: Introduction - 5SD802
PLEASE READ ALL THE INSTRUCTIONS BEFORE YOU START
Instructions:
• Download and use Galba V2.0 from the course page (Modules-> Course Materials).
• Unzip Galba V2.0.zip in a folder that you specifically created for this assignment.
• Delete the content of main.cpp and manually rewrite the code in the image at the end of this
document in main.cpp, all of it.
Questions
For each of the below concepts, write a comment in main.cpp after your name explaining each concept:
• Data Type
• Variable Assignment
• Variable Initialization
• Operator
• Boolean Expression
Part 1
• Modify the content of the function render_circle_square_image() so
that it recreates the image in Figure 1 using the functions:
• draw_rectangle(), draw_circle()
• You can find the documentation for these functions in the file
“galba.h” under the section “Rendering”.
• The colors don’t need to be exactly the same.
Part 2
• Write inside the body of the (empty) function
render_portrait() code to draw a self-portrait with: upper
body, arms, neck, head and facial features. As in Figure 2.
• Use the same functions as in Part 1, and more if you
want, you can find every function in “galba.h”.

站长地图