Learn how to submit assignments via the checkin tab
See how preliminary testing works
All while getting a start on P1!
Logging In
Login to the machine, using your eID (same username that you use for Canvas).
The initial password should be your student ID (or whatever password you currently use). If your password is still your student ID, you should change it.
To do so, open a terminal and type passwd Troubleshooting:
Raise your hand if you are having problems!
Writing a C Program
Browse to the P1 assignment instructions on the progress page of the CS270 website.
Create a directory for CS270 assignments, we recommend ~/cs270.
Create a subdirectory for P1, we recommend ~/cs270/P1.
The teaching assistant will explain the sample code provided.
Build and run the sample program.
Modify the sample program to add the P1 functions.
Modify the sample program to call the P1 functions.
Build the P1 program and test it yourself.
Compiling a C Program
To compile your program into an executable called P1, type in
the following commands to a terminal window:
c11 -g -Wall -c P1.c
c11 -g -Wall P1.o -o P1
To run the compiled program, type the following command:
./P1 1.0 2.0 3.0 4.0 5.0
Submitting a C Program
Browse to checkin tab on the course website.
Follow the instructions to login.
Submit the P1.c file and wait for preliminary testing to complete. You may only get preliminary testing feedback every 30 minutes. However, if you wait till the due date to do your homework, you will have
to wait much longer to get preliminary testing results.