ChatGPT 可用网址,仅供交流学习使用,如对您有所帮助,请收藏并推荐给需要的朋友。
https://ckai.xyz
1.Instructions
Assignment 1Programming with C/C++ 1: Introduction - 5SD802PLEASE READ ALL THE INSTRUCTIONS BEFORE YOU START
- 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.
2. 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
2.1 Part 1
• Modify the content of the function render_circle_square_image() sothat 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.
2.2 Part 2
• Write inside the body of the (empty) functionrender_portrait() code to draw a self-portrait with: upperbody, arms, neck, head and facial features. As in Figure.
• Use the same functions as in Part 1, and more if you want, you can find every function in “galba.h”.
WX:codehelp