Skip to content
Snippets Groups Projects
Commit 0338af03 authored by Anna Meyer's avatar Anna Meyer
Browse files

add p1

parent 9def2b7c
No related branches found
No related tags found
No related merge requests found
# Project 1 (P1)
## Clarifications/Corrections
None yet.
**Find any issues?** Report to us:
- Anna Meyer <apmeyer4@wisc.edu>
- Jane Zhang <zhang2752@wisc.edu>
## Learning Objectives
In this project, you will learn to:
* Run otter tests,
* Turn in your project using Gradescope.
## Note on Academic Misconduct:
P1 is the first project of CS220, and is the **only** project where you are **not** allowed to partner with anyone else. You **must** work on this project by yourself, and turn in your submission individually. Now may be a good time to review our [course policies](https://canvas.wisc.edu/courses/355767/pages/syllabus).
## Step 1: Setup
You should have a folder `cs220` that you created for lab-p1 under `Documents`. We're assuming you did the lab and know how to do all the Tasks we mentioned. If you're confused about any of the following steps, refer back to your lab.
#### Create a sub-folder called `p1` in your `cs220` folder
Refer to [Task 1.1](https://git.doit.wisc.edu/cdis/cs/courses/cs220/cs220-lecture-material/-/tree/main/sum23/labs/lab1#task-11-create-the-folders-for-this-lab) if you need help.
This will store all your files related to P1. This way, you can keep files for different projects separate (you'll create a `p2` sub-folder for the next project and so on). Unfortunately, computers can crash and files can get accidentally deleted, so make sure you backup your work regularly (at a minimum, consider emailing yourself relevant files on occasion).
#### Download `p1.ipynb` to your `p1` folder.
Refer to [Task 1.7](https://git.doit.wisc.edu/cdis/cs/courses/cs220/cs220-lecture-material/-/tree/main/sum23/labs/lab1#task-17-correctly-download-a-python-file) if you need help.
#### Open a terminal in your `p1` folder.
Refer to [Task 1.3-1.5](https://git.doit.wisc.edu/cdis/cs/courses/cs220/cs220-lecture-material/-/tree/main/sum23/labs/lab1#task-13-open-a-terminal-emulator-aka-a-terminal).
#### Run `p1.ipynb` code using jupyter notebook
Refer to [Task 4.1](https://git.doit.wisc.edu/cdis/cs/courses/cs220/cs220-lecture-material/-/tree/main/sum23/labs/lab1#task-13-open-a-terminal-emulator-aka-a-terminal).
Make sure to follow the directions provided in `p1.ipynb`.
## Submission instructions
- Create a [Gradescope](https://www.gradescope.com/) login, if you haven't already created it. **You must use your wisc email to create the Gradescope login**.
- Login to [Gradescope](https://www.gradescope.com/courses/531688/) and join our course -- see [Canvas](https://canvas.wisc.edu/courses/355767/pages/week-1?module_item_id=6048037) for the access code
- In gradescope, upload the zip file into the P1 assignment.
- It is **your responsibility** to make sure that your project clears auto-grader tests on the Gradescope test system. Otter test results should be available in a few minutes after your submission. You should be able to see both PASS / FAIL results for the 2 test cases and your total score, which is accessible via Gradescope Dashboard (as in the image below):
<img src="images/gradescope.png" width="400">
# Images
Images from p1 are stored here.
sum23/projects/p1/images/gradescope.png

193 KiB

%% Cell type:code id:26245a58 tags:
``` python
# import and initialize otter
import otter
grader = otter.Notebook("p1.ipynb")
```
%% Cell type:code id:c9a32093 tags:
``` python
# PLEASE FILL IN THE DETAILS
# Enter none if you don't have a project partner
# project: p1
# submitter: NETID1
# partner: none
# hours: ????
```
%% Cell type:markdown id:9125244f tags:
**Question 1:** "Hello, World!" program.
%% Cell type:code id:aaf28663 tags:
``` python
name = "World"
greeting = "Hello, " + name + "!"
greeting
```
%% Cell type:code id:b6a624b0 tags:
``` python
grader.check("q1")
```
%% Cell type:markdown id:e9cbc891 tags:
**Question 2:** Compute current year.
%% Cell type:code id:34e3ebc7 tags:
``` python
curr_year = 45 * 45 - 2
curr_year
```
%% Cell type:code id:35fe8b4d tags:
``` python
grader.check("q2")
```
%% Cell type:markdown id:21f45de4 tags:
## Submission
Now, click on `Kernel` -> `Restart & Run All` to run all the cells in the notebook.
The cells below will automatically save your notebook after the previous cells are run, and generate a zip file for you to submit.
**SUBMISSION INSTRUCTIONS**:
The zipfile automatically gets downloaded. You should have received a GradeScope invite - please accept it.
Login to GradeScope and upload the zipfile. Check otter results as soon as auto-grader gets completed.
%% Cell type:code id:a6f723c8 tags:
``` python
# running this cell will create a new save checkpoint for your notebook
from IPython.display import display, Javascript
display(Javascript('IPython.notebook.save_checkpoint();'))
```
%% Cell type:code id:e12b2177 tags:
``` python
# Save your notebook first, then run this cell to export your submission.
grader.export(pdf=False, run_tests=True)
```
%% Cell type:markdown id:1189b824 tags:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment