|
|
(83 intermediate revisions by 16 users not shown) |
Line 1: |
Line 1: |
− | ==Welcome to the Wiki-Based Text for COMP 1010: Intro Computer Science 1==
| + | __NOTOC__ |
− | This text is written for students in the first year course COMP 1010 at the University of Manitoba. This wiki was written by students in the course COMP 3040: Technical Communication for Computer Scientists.
| + | __NOEDITSECTION__ |
| | | |
− | ==Table of Contents==
| + | <!--table for Header begins--> |
− | ===[[Getting Started]]=== | + | <table border=0 cellpadding=3 cellspacing=0 width="100%"> |
− | *[[Claiming IDs]] - Basel
| + | |
− | **[[Claiming IDs#U of M ID|U of M ID]]
| + | |
− | **[[Claiming IDs#nTP ID|nTP ID]]
| + | |
− | *[[Installing TextPad and Java SDK]]
| + | |
− | **[[Installing TextPad and Java SDK#How to Install|How to Install]] - Chris M
| + | |
− | **[[Installing TextPad and Java SDK#Helpful TextPad Options|Helpful Textpad Options]] - Eli
| + | |
− | **[[Installing TextPad and Java SDK#Common Problems|Common Problems]] - Chris M
| + | |
− | *[[Getting Started#Review Questions and Exercises|Review Questions and Exercises]]
| + | |
| | | |
− | ===[[What is Programming?]]=== | + | <!--first row--> |
− | *[[What is Programming?#The Programming Process|The Programming Process]] Adam D - Travis (edit one pass)
| + | <tr> |
− | *[[What is Programming?#Anatomy of a Program|Anatomy of a Program]] Adam D - Travis (edit one pass)
| + | <td colspan=3 align=center> <font size=4><em>...for students by students</em></font> |
− | *[[What is Programming?#Review Questions and Exercises|Review Questions and Exercises]] Adam D
| + | </td> |
− | *[[What Is Programming Part II|Further Reading]] ''non-examinable'' Chris I-B
| + | </tr> |
| | | |
− | ===Your First Java Program=== | + | <tr> |
− | *[[Anatomy of a Java Program]] - Kelly
| + | <td colspan=3 align=center> <font size=3><strong>[[CS Outreach]]</strong></font></td> |
− | *[[Comments]] - Kelly
| + | </tr> |
− | *[[Output using System.out.]] - Kelly
| + | |
− | *[[Input using JOptionPane]] - Kelly
| + | |
− | *[[Variables and Literals]]
| + | |
− | *[[Common Primitive Variables]]
| + | |
− | *[[Arithmetic Operators]]
| + | |
− | *[[Strings]] - Doug
| + | |
− | *[[Increment and Decrement Operators]] - Doug
| + | |
− | *[[Casting]] - Doug
| + | |
− | *[[Named Constants]] - Doug
| + | |
− | *[[Your First Java Program Review Questions and Exercises|Review Questions and Exercises]]
| + | |
| | | |
− | ===[[Calling Methods]]=== | + | <tr> |
− | *[[Calling Methods#Introduction|Introduction]] - Eli
| + | <td width="33%" align=right><font size = 3><strong>[[COMP1010]]</strong></font></td> |
− | *[[Calling Methods#String Methods|String Methods (just mention compare methods--more on these methods later)]] - Eli
| + | <td width="33%">[[Image:KeyboardNew1.jpg|center]] </td> |
− | *[[Calling Methods#Math Methods|Math Methods]] - Basel
| + | <td width="33%"align=left><font size = 3><strong>[[COMP3040]]</strong></font></td> |
− | *[[Calling Methods#JOption Pane Methods|JOptionPane Methods (for various dialog boxes)]] - Eli
| + | </tr> |
− | *[[Calling Methods#Review Questions and Exercises|Review Questions and Exercises]] - Chris M
| + | |
| | | |
− | ===[[Control Structures]]=== | + | <tr> |
− | *[[Control Structures#The If Statement|If statements]] Chris I-B
| + | <td colspan=3 align=center> <font size=3><strong>[[COMP1260]]</strong></font></td> |
− | *[[Control Structures#The If-Else Statement|If-else statements]] Chris I-B
| + | </tr> |
− | *[[Control Structures#Nesting|Nested if-else]] Chris I-B
| + | |
− | *[[Control Structures#Conditions|Logical and Relative Operators]] Adam H
| + | |
− | *[[Control Structures#Comparing Strings|Comparing Strings]] Adam H
| + | |
− | *[[Control Structures#Review Questions and Exercises|Review Questions and Exercises]]
| + | |
| | | |
− | ===[[Loops]]=== | + | <tr> |
| + | <td colspan=3 align=center > <font size=4><em>[[authors]]</em></font></td> |
| + | </tr> |
| | | |
− | *[[Loops#An Introduction|An Introduction]]
| |
| | | |
− | *[[Loops#Types of Loops|Types of Loops]] - Roger and Vic (check inside)
| + | </table> |
− | | + | |
− | *[[Loops#Scope|Scope]]
| + | |
− | | + | |
− | *[[Loops#Infinite Loops|Infinite Loops]]
| + | |
− | | + | |
− | *[[Loops#Test Conditions|Test Conditions]]
| + | |
− | | + | |
− | *[[Loops#Additional Information|Additional Information]] - David
| + | |
− | | + | |
− | *[[Loop Review Questions and Exercises|Review Questions and Exercises]]
| + | |
− | | + | |
− | ===[[User-Defined Methods]]===
| + | |
− | *[[Overview]] - Mark
| + | |
− | *[[Writing a Method]] - Willson
| + | |
− | **[[Writing a Method#Method Header|Method Header]]
| + | |
− | **[[Writing a Method#Method Body|Method Body]]
| + | |
− | *[[Calling a User-Defined Method]]
| + | |
− | *[[Methods and Scoping]]
| + | |
− | *[[Commenting Methods]] - Mark
| + | |
− | *[[Passing Arguments using Methods]] - Mark
| + | |
− | *[[Review Questions and Exercises]]
| + | |
− | | + | |
− | ===[[Arrays]]===
| + | |
− | *[[Overview of Arrays|Overview]]
| + | |
− | *[[Creating Arrays]]
| + | |
− | *[[Entering and Using Array Elements]]
| + | |
− | *[[Out of Bounds and One off Errors]]
| + | |
− | *[[Processing Arrays (using for loops)]]
| + | |
− | **length attribute
| + | |
− | **print content of array
| + | |
− | **copying arrays
| + | |
− | **comparing arrays
| + | |
− | **summing values
| + | |
− | **finding average of values
| + | |
− | **find highest and lowest values
| + | |
− | *[[Review Questions and Exercises]]
| + | |
− | | + | |
− | ===[[More with Arrays]]===
| + | |
− | *Passing Arrays using Methods
| + | |
− | *Working with Partially Filled Arrays
| + | |
− | *Arrays of Strings
| + | |
− | *Searching Arrays
| + | |
− | *Sorting Arrays
| + | |
− | **Selection Sort
| + | |
− | **Binary Sort
| + | |
− | *Review Questions and Exercises
| + | |
− | ===Problem-Solving===
| + | |
− | ===More about Computer Science===
| + | |
− | ===[[Glossary]]===
| + | |