|
|
(107 intermediate revisions by 23 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]]
| + | |
− | **[[Claiming IDs#U of M ID|U of M ID]]
| + | |
− | **[[Claiming IDs#nTP ID|nTP ID]]
| + | |
− | *[[Installing TextPad and Java SDK]]
| + | |
− | **[[How to Install]]
| + | |
− | **[[Helpful TextPad Options]]
| + | |
− | **Common Problems
| + | |
− | *Review Questions and Exercises
| + | |
| | | |
− | ===[[What is Programming?]]=== | + | <!--first row--> |
− | *[[Programming Languages]]
| + | <tr> |
− | *Anatomy of a Program
| + | <td colspan=3 align=center> <font size=4><em>...for students by students</em></font> |
− | *The Programming Process
| + | </td> |
− | **Review Questions and Exercises
| + | </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
| + | |
− | **ints
| + | |
− | **chars
| + | |
− | **double
| + | |
− | **boolean
| + | |
− | *Arithmetic Operators
| + | |
− | *[[Strings]] - Doug
| + | |
− | *[[Increment and Decrement Operators]] - Doug
| + | |
− | *[[Casting]] - Doug
| + | |
− | *[[Named Constants]] - Doug
| + | |
− | *Review Questions and Exercises
| + | |
| | | |
− | ===[[Calling Methods]]=== | + | <tr> |
− | *[[Calling Methods#String Methods|String Methods (just mention compare methods--more on these methods later)]]
| + | <td width="33%" align=right><font size = 3><strong>[[COMP1010]]</strong></font></td> |
− | *[[Calling Methods#Math Methods|Math Methods]]
| + | <td width="33%">[[Image:KeyboardNew1.jpg|center]] </td> |
− | *[[Calling Methods#JOption Pane Methods|JOptionPane Methods (for various dialog boxes)]]
| + | <td width="33%"align=left><font size = 3><strong>[[COMP3040]]</strong></font></td> |
− | *[[Calling Methods#Review Questions and Exercises|Review Questions and Exercises]]
| + | </tr> |
| | | |
− | ===[[Control Structures]]=== | + | <tr> |
− | *if-else
| + | <td colspan=3 align=center> <font size=3><strong>[[COMP1260]]</strong></font></td> |
− | *Nested if-else
| + | </tr> |
− | *Logical and Relative Operators
| + | |
− | *Comparing Strings
| + | |
− | *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]]
| + | </table> |
− | | + | |
− | *[[Loops#Scope|Scope]]
| + | |
− | | + | |
− | *[[Loops#Infinite Loops|Infinite Loops]]
| + | |
− | | + | |
− | *[[Loops#Test Conditions|Test Conditions]]
| + | |
− | | + | |
− | *[[Loops#Additional Information|Additional Information]]
| + | |
− | | + | |
− | ===[[User-Defined Methods]]===
| + | |
− | *[[Overview]]
| + | |
− | *[[Writing a Method]]
| + | |
− | **[[Writing a Method#Method Header|Method Header]]
| + | |
− | **[[Writing a Method#Method Body|Method Body]]
| + | |
− | *[[Calling a User-Defined Method]]
| + | |
− | *[[Methods and Scoping]]
| + | |
− | *[[Commenting Methods]]
| + | |
− | *[[Passing Arguments using Methods]]
| + | |
− | *[[Review Questions and Exercises]]
| + | |
− | | + | |
− | ===[[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]]===
| + | |