联系方式

  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-21:00
  • 微信:codinghelp

您当前位置:首页 >> C/C++编程C/C++编程

日期:2023-09-07 10:51

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


版权所有:编程辅导网 2021 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。 站长地图

python代写
微信客服:codinghelp