[SOLVED] AuE8930 - Homework 2 

35.00 $

Programming resource
Digital learning resource
Category:
Practical programming resource
Suitable for guided study and reference
Tutor guidance available when needed

Description

5/5 - (1 vote)

Development/coding environment for your programming:

    • IDE like PyCharm for Python with Anaconda as Python installations, or
    • CLion for C++ if you choose option 2, or any others you prefer.

 

Option 1 (in Python)

 

Homework 2 link: https://github.com/fengziyue/CU-Computing-Autonomy/blob/master/Homework2/Homework2_Python.md

In the above link file, there are sample info:

“Sample codes could be found here for your reference. Make sure not to copy them”; there is a hyperlink in the word of ‘here’ directing to samples.

 

Option 2 (in C++)

Bonus: for the ones who uses C++, your score will be scaled with 110% until reach max 100.

e.g., if you get 80, it will be scaled to 80 * 110% = 88

 

If you are not using IDE, you can compile and run each assignment with the following command:

/usr/bin/g++ AssignmentName.cpp -o main && ./main

 

The frame of the code is already in the template, you just need to complete the lines marked with “// complete the functions here …”

The two questions are here: https://github.com/fengziyue/CU-Computing-Autonomy/tree/master/Homework2

 

Question 1 (20 scores):

Q1_Vectors.cpp

 

Question 2 (80 scores):

Q2_Reference-vs-Value.cpp

 

P.S.:  There are references … (ref).cpp in the above repo, but you use it at your direction.

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.