首页 > > 详细

5SD802程序代做、代写Programming with C/C++ 1

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”.

联系我们
  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-21:00
  • 微信:codinghelp
热点标签

联系我们 - QQ: 99515681 微信:codinghelp
程序辅导网!