Extra Credit Assignment: Environment Setup

UC Irvine - Fall ‘22 - ICS 45C

This assignment is worth 1% extra credit on your final grade, it’s not a part of the project/homework grading. The goal is to make sure you have your development environment setup before we start project 1.

Due date

This assignment is due at 10PM PT on Friday of week 2 (2022-10-07). The project extra days cannot be used in this assignment. You’ll still have the 15 minute buffer for any technical issues.

Before you start

  • Setup VS Code;
  • Install a compiler;
  • Setup code formatting.

All relevant links are available in the main course page. If you have any issues, please reach out on EdStem or during office hours.

What you have to do

Download this file: p0-starter.cpp

Although very poorly written and formatted, this file can be compiled and executed. So the first thing you have to do is make sure you can do that.

Part 1: g++

Step 1: Open a terminal.

Step 2: Navigate to the directory you downloaded the file.

cd /Users/caio/Downloads

Please note that’s the directory in my computer, yours might be different!

Step 3: Compile it…

g++ p0-starter.cpp -std=c++11 -Wall -Wextra -Wpedantic -Werror -o p0-starter

Step 4: Run it!

./p0-starter

Step 5: Check the output of that code.

It should tell you something! Once you’ve seen the output, complete this assignment: https://canvas.eee.uci.edu/courses/48712/quizzes/244228/

Part 2: style

Now that we know we can compile and run code, let’s try formatting it. Open p0-starter.cpp in VS Code and follow the instructions from the “Setup code formatting” slides. Once you have a nicely formatted code, submit the file to P0 on gradescope: https://www.gradescope.com/courses/443728/assignments/2289176/

Summary

To get extra credit, you should have submitted:
  1. the answer on Canvas;
  2. a nicely formatted file on Gradescope.
If you haven't done one of those, please check the instructions again!

Both (1) and (2) should be autograded, so once you have completed them correctly, you're all done and have successfully installed all essentials we'll need!