Unlock all 8 pages
Get it free by sharing your own notes, buy just this one, or become a member and unlock documents with your plan.
How to unlock this document
Choose the way that suits you. Each one gives you all 8 pages to read online and the PDF to download.
Share your notes, unlock for free
2 free unlocks for every 5 approved uploads
- Upload your own lecture notes, assignments, essays or past papers
- PDF, Word, PowerPoint and Excel files all work, and you can send many at once
- We check each upload; you get a notification when it is approved
- Spend a free unlock on this document or any other, and keep it for good
- Shared under your public username, never your email
Then upload your notes from your profile.
Buy this document
$8 one-time payment
- All 8 pages of this document, yours to keep
- Download the PDF and read it any time, also offline
- No subscription and nothing to cancel
- Find it again any time under My Profile → Library
You log in or create a free account first, then pay securely.
Become a member
Unlock documents from the whole library, which keeps growing
- Choose any documents you like, up to your plan’s unlocks
- Documents you unlock stay yours, even if you cancel later
- Your unlocks start again with every renewal
- Secure checkout by Dodo Payments
You log in or create a free account first, then pay securely.
Compare the plansAlready a member, or bought this before? Log in to open it
About this document
- Pages
- 8 pages
- Price
- $8 one-time, yours to keep
- Membership
- Included in every plan
- Format
- Subject
- Computer Science, Programming
This study guide covers basic concepts in computer science, focusing on Scheme/Racket programming language and NetLogo. It explains arithmetic operations, comparison operators, logic connectors, defining variables and functions, conditional statements, and list manipulation. It is useful for students in their first term of an introductory computer science course.
What's inside
- Scheme/Racket arithmetic operations
- Comparison operators and logic connectors
- Defining variables and functions
- Conditional statements with 'if' and 'cond'
- List manipulation and recursive functions
- Basic NetLogo commands
Who it is for: Students taking an introductory course in computer science. (Undergraduate)
Share with classmates: WhatsApp Telegram X LinkedIn Facebook
Summary
Scheme and NetLogo are two programming languages. Students learn how to use them with examples and explanations of their basic features.
Scheme Arithmetic and Logic
Scheme uses prefix notation for arithmetic and comparison operations. It has operations for addition, subtraction, multiplication, division, exponentiation, square root, modulus, quotient and absolute value. It also has logic connectors for 'and', 'or', 'not'.
Scheme Variables and Functions
Scheme allows users to define variables and functions. Variables can be created using the 'define' keyword. Functions can be created using either the basic or lambda syntax. Conditional statements can be created using 'if' and 'cond'.
NetLogo Basics
NetLogo has commands for creating and manipulating turtles and the environment. Basic commands include clearing the screen, creating turtles, moving turtles, and drawing. Variables can be created and manipulated in different contexts.
Key terms
- prefix notation
- operations are placed at the beginning of the expression.
- atom
- a basic unit of data in Scheme, such as a number or a symbol.
- list
- a collection of atoms or other lists in Scheme.
- turtle
- an agent in NetLogo that can move around and interact with the environment.
- observer
- the context in NetLogo where global variables and commands are managed.
- context
- the scope in which a variable or command is defined and used.
Questions this document helps with
- What is prefix notation in Scheme?
- How do you create a function in Scheme?
- What are the basic commands for manipulating turtles in NetLogo?
Summary written with AI from the document's text.
Ask the AI Teacher
Ask any question about this document or your course, and get a clear explanation.
Log in to ask Create a free account
Free accounts can ask 5 questions a day.