[Solved] CTA200 Assignment 1

$25

File Name: CTA200_Assignment_1.zip
File Size: 178.98 KB

SKU: [Solved] CTA200 Assignment 1 Category: Tag:
5/5 - (1 vote)

The goal of this assignment is to practice using the command line and git. The material you need should all be contained in the first lecture. You may work in groups, but please complete all the steps yourself and submit your own repository.

  1. Make a Github account and create a new (public) empty repository called CTA200 (or somethingof the sort).
  2. Create a local repository. Add the Github repository as the remote.
  3. Enter the folder for the local repository in your terminal. Using a text editor such as vi or gedit, createa simple README.md file and a LICENSE which contains the MIT license (find this online and copy/paste it).
  4. Commit your changes to the local repository.
  5. In your local repository, create a folder called assignment 1
  6. Copy the files main.c, average.c and average.h from the assignment1 2020 folder of the CTA200 course repository to your assignment 1 folder local repository.
  7. Using a text editor, create a Makefile which builds and links the C program. Check that you can runthe program and it produces the right result (you should be able to identify what it does from the code without knowing any C).
  8. Commit the Makefile and the .c and .h files.
  9. Push the changes from your local repository to Github.
  10. (Bonus) Make a change to the C program and describe what you did in the comments (add at least 1 line somewhere). Commit the modified version with a useful commit message and push to your Github repository.
  11. Using the history command, save your command line history to a file called history.txt to show howyou completed the tasks (hint: pipe the results of history to the tail command using the | operator to choose how many of the last n lines to show, you can redirect the output to a file using the > operator). 12. Commit your history.txt file to the local repository and push the changes to Github.

When you have completed the assignment, send the url of your Github repository to Fergus (horrobin at astro.utoronto.ca) and CC Norm (murray at cita.utoronto.ca) with CTA200 Assignment 1 in the subject line.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] CTA200 Assignment 1
$25