CSCI 103 - Spring 2025 Introduction to Programming

Unit 1 Exercises

Create a Github account

In order to use the in-class excercises, you must have an account on Github.com. If you have not created a Github account yet, follow the instructions in this section. If you already have a Github account and you wish to use it for this course, you can skip to the next section.

Github is a development ecosystem based around git. We will be using Github to authenticate your identity and you will also use it in CS 104 to store your code.

Start by visiting Github’s sign-up page. You are free to choose your username and does not necessarily need to match your USCNet account. Your email, however, should be your USC e-mail address.

https://github.com/signup/free

You will be sent an email to verify your email address. Verify your account before proceeding.

Setup your Github Account

Follow the instructions carefully on this page.

Here is a C++ scratchpad:

loading…

Variables and Expressions

loading…
loading…
loading…
loading…
loading…
loading…
loading…
loading…
loading…
loading…

Random Number Generation

loading…
loading…
loading…

Conditionals (if..else)

loading…
loading…
loading…
loading…
loading…

Loops 1

loading…
loading…
loading…
loading…
loading…
loading…
loading…
loading…
loading…

Nested Loops

loading…
loading…
loading…
loading…

Loop Idioms: Reduction

loading…
loading…

Loop Idioms: Selection

loading…
loading…

Arrays

loading…
loading…
loading…
loading…
loading…
loading…
loading…

Arrays - Pratice

loading…
loading…
loading…
loading…
loading…
loading…

Functions

loading…
loading…
loading…

Functions - Practice

loading…
loading…
loading…
loading…
loading…