Difference between revisions of "COMP1010"

From CompSciWiki
Jump to: navigation, search
Line 6: Line 6:
 
{|style="border-collapse: collapse; width=100%" cellpadding="5" cellspacing="0"
 
{|style="border-collapse: collapse; width=100%" cellpadding="5" cellspacing="0"
 
|-  
 
|-  
|style="background-color:black; color:white; font-size: medium;" width="70%" |<font color = "white"> <h1>Welcome to the Wiki-Based Text for COMP 1010</h1>
+
|colspan=2 style="background-color:black; color:white; font-size: medium;" width="70%" |<font color = "white"> <h1>Welcome to the Wiki-Based Text for COMP 1010</h1>
 
Welcome to COMP 1010 at the University of Manitoba. This text will show you how to <b>set up</b> your own computer so you can do your assignments at home. Confused about <b>logging in </b>to the website or the lab computers? Read on. Then you will learn how to <b>write your first program in Java</b>. And from here you'll learn how to write programs that do more than output <b>"Hello World!"</b>. We'll show you how to use loops, call methods, write methods, and understand arrays. Just as importantly, we'll talk about the importance of solving problems and thinking like a programmer. Finally there's a chapter that's meant to show you that computer science is about much more than programming.  
 
Welcome to COMP 1010 at the University of Manitoba. This text will show you how to <b>set up</b> your own computer so you can do your assignments at home. Confused about <b>logging in </b>to the website or the lab computers? Read on. Then you will learn how to <b>write your first program in Java</b>. And from here you'll learn how to write programs that do more than output <b>"Hello World!"</b>. We'll show you how to use loops, call methods, write methods, and understand arrays. Just as importantly, we'll talk about the importance of solving problems and thinking like a programmer. Finally there's a chapter that's meant to show you that computer science is about much more than programming.  
 
P.S. Interested in learning more about a wiki? Or about how this wiki-based text came to be? [[Wiki Background|Click here]].
 
P.S. Interested in learning more about a wiki? Or about how this wiki-based text came to be? [[Wiki Background|Click here]].
  
 
<!--Image goes here-->
 
<!--Image goes here-->
|rowspan=1 width="300px" height="200px" align=center bgcolor = #000|[[Image:Borobudur.jpg|right]]
+
|rowspan=1 align=center bgcolor = #000|[[Image:Borobudur.jpg|right]]
 
|-style="background-color:black; color:white; height:5px"
 
|-style="background-color:black; color:white; height:5px"
 +
|
 
|
 
|
 
|style="font-size: x-small"|Borobudur in Java, Indonesia. Photo credit: http://www.flickr.com/photos/smulan77
 
|style="font-size: x-small"|Borobudur in Java, Indonesia. Photo credit: http://www.flickr.com/photos/smulan77
 
<!--Getting Started Row Goes here-->
 
<!--Getting Started Row Goes here-->
 
|-
 
|-
|- style="background-color:#71637D; color:white; font-size: x-large; font-family: serif; text-align: center; vertical-align=middle; height: 50px"
+
|- style="background-color:#71637D; color:white; font-size: medium; font-family: serif; text-align: center; vertical-align=middle; height: 50px"
|colspan=3|<i><b>[[Getting Started]] in COMP 1010 at the U of M</b></i>
+
| [[Getting Started]] in COMP 1010 at the U of M
 +
| style="background-color:#CCCC99"|Write a Program a Day
 +
| style="background-color:#666666"|Case Studies
 
|-
 
|-
| color=#222222|<h2>Chapter 1: [[What_is_Programming%3F|What is Programming?]]</h2>
+
| colspan=3|<h2>Chapter 1: [[What_is_Programming%3F|What is Programming?]]</h2>
Learn about the steps to write a program, and read a short overview of the history of programming.  
+
Learn about the steps to write a program, and read a short overview of the history of programming.
 
|-
 
|-
|color=#222222|<h2> Chapter 2: [[Java Fundamentals]] </h2>
+
| colspan=3|<h2> Chapter 2: [[Java Fundamentals]] </h2>
 
Write your first program in Java. Then learn how to add input, declare and use varialbes, and do basic math. Also learn about relative and logical operators, casting, ++, --, and named constants.  
 
Write your first program in Java. Then learn how to add input, declare and use varialbes, and do basic math. Also learn about relative and logical operators, casting, ++, --, and named constants.  
 
|-
 
|-
|color=#222222|<h2> Chapter 3: [[Calling_Methods|Calling Methods]]</h2>
+
| colspan=3|<h2> Chapter 3: [[Calling_Methods|Calling Methods]]</h2>
 
Learn to use methods--ones written by Java programmers--to manipulate numbers and strings. Also customize your dialog boxes with methods from JOptionPane.   
 
Learn to use methods--ones written by Java programmers--to manipulate numbers and strings. Also customize your dialog boxes with methods from JOptionPane.   
 
|-
 
|-
|color=#222222|<h2> Chapter 4: [[Control_Structures|Control Structures]]</h2>
+
| colspan=3|<h2> Chapter 4: [[Control_Structures|Control Structures]]</h2>
 
Finally! Write programs that can make decisions using if and if else statements. Also learn how to nest if else statements.
 
Finally! Write programs that can make decisions using if and if else statements. Also learn how to nest if else statements.
 
|-
 
|-
|color=#222222|<h2> Chapter 5: [[Loops]]</h2>
+
| colspan=3|<h2> Chapter 5: [[Loops]]</h2>
 
Learn to repeat blocks of code using loops. This chapter focusses on while and for loops, but also introduces do-while loops. Also, learn to nest loops.
 
Learn to repeat blocks of code using loops. This chapter focusses on while and for loops, but also introduces do-while loops. Also, learn to nest loops.
 
|-
 
|-
|color=#222222|<h2> Chapter 6: [[User-Defined_Methods|User Defined Methods]]</h2>
+
| colspan=3|<h2> Chapter 6: [[User-Defined_Methods|User Defined Methods]]</h2>
 
In Chapter 3 you learned to call methods that were already written. Now learn to write your own methods. This chapter uses all the same ideas but shows you how to arrange your code so you don't have to repeat common parts of the program.  
 
In Chapter 3 you learned to call methods that were already written. Now learn to write your own methods. This chapter uses all the same ideas but shows you how to arrange your code so you don't have to repeat common parts of the program.  
 
|-
 
|-
|color=#222222|<h2> Chapter 7: [[Arrays]]</h2>
+
| colspan=3|<h2> Chapter 7: [[Arrays]]</h2>
 
If you want to store a grade for everyone in a class of 100 students do you need to have 100 variables? Fortunately, no. Instead, learn to use an array to store the data. Then learn to process arrays using loops.  
 
If you want to store a grade for everyone in a class of 100 students do you need to have 100 variables? Fortunately, no. Instead, learn to use an array to store the data. Then learn to process arrays using loops.  
 
|-
 
|-
|color=#222222|<h2> Chapter 8: [[More_With_Arrays|More With Arrays]]</h2>
+
| colspan=3|<h2> Chapter 8: [[More_With_Arrays|More With Arrays]]</h2>
 
Learn pass arrays using methods. Also use partially-filled arrays. Next learn to sort and search arrays. Finally, use parallel arrays.
 
Learn pass arrays using methods. Also use partially-filled arrays. Next learn to sort and search arrays. Finally, use parallel arrays.
 
|-
 
|-
|color=#222222|<h2> Chapter 9: [[Java In-depth]]</h2>
+
| colspan=3|<h2> Chapter 9: [[Java In-depth]]</h2>
 
By now you've written, compiled and run many Java programs. This chapter explains what goes on behind the scenes when you are compiling and running Java programs.  
 
By now you've written, compiled and run many Java programs. This chapter explains what goes on behind the scenes when you are compiling and running Java programs.  
 
|-
 
|-
|color=#222222|<h2> Chapter 10: [[More_About_Computer_Science|More About Computer Science]]</h2>
+
| colspan=3|<h2> Chapter 10: [[More_About_Computer_Science|More About Computer Science]]</h2>
 
Computer Science is not just about programming! Even though this course focussed on programming there are many other areas of computer science. Read about them here.  
 
Computer Science is not just about programming! Even though this course focussed on programming there are many other areas of computer science. Read about them here.  
 
|-
 
|-

Revision as of 15:49, 29 July 2010



Welcome to the Wiki-Based Text for COMP 1010

Welcome to COMP 1010 at the University of Manitoba. This text will show you how to set up your own computer so you can do your assignments at home. Confused about logging in to the website or the lab computers? Read on. Then you will learn how to write your first program in Java. And from here you'll learn how to write programs that do more than output "Hello World!". We'll show you how to use loops, call methods, write methods, and understand arrays. Just as importantly, we'll talk about the importance of solving problems and thinking like a programmer. Finally there's a chapter that's meant to show you that computer science is about much more than programming. P.S. Interested in learning more about a wiki? Or about how this wiki-based text came to be? Click here.

Borobudur.jpg
Borobudur in Java, Indonesia. Photo credit: http://www.flickr.com/photos/smulan77
Getting Started in COMP 1010 at the U of M Write a Program a Day Case Studies

Chapter 1: What is Programming?

Learn about the steps to write a program, and read a short overview of the history of programming.

Chapter 2: Java Fundamentals

Write your first program in Java. Then learn how to add input, declare and use varialbes, and do basic math. Also learn about relative and logical operators, casting, ++, --, and named constants.

Chapter 3: Calling Methods

Learn to use methods--ones written by Java programmers--to manipulate numbers and strings. Also customize your dialog boxes with methods from JOptionPane.

Chapter 4: Control Structures

Finally! Write programs that can make decisions using if and if else statements. Also learn how to nest if else statements.

Chapter 5: Loops

Learn to repeat blocks of code using loops. This chapter focusses on while and for loops, but also introduces do-while loops. Also, learn to nest loops.

Chapter 6: User Defined Methods

In Chapter 3 you learned to call methods that were already written. Now learn to write your own methods. This chapter uses all the same ideas but shows you how to arrange your code so you don't have to repeat common parts of the program.

Chapter 7: Arrays

If you want to store a grade for everyone in a class of 100 students do you need to have 100 variables? Fortunately, no. Instead, learn to use an array to store the data. Then learn to process arrays using loops.

Chapter 8: More With Arrays

Learn pass arrays using methods. Also use partially-filled arrays. Next learn to sort and search arrays. Finally, use parallel arrays.

Chapter 9: Java In-depth

By now you've written, compiled and run many Java programs. This chapter explains what goes on behind the scenes when you are compiling and running Java programs.

Chapter 10: More About Computer Science

Computer Science is not just about programming! Even though this course focussed on programming there are many other areas of computer science. Read about them here.

Appendix A: Researching Comp Sci Topics

Appendix B: Tips for ESL Students

Appendix C: Scanner Class

Appendix D: Help on Debugging

Appendix E: Creating a Screensaver

Glossary: Glossary of Comp Sci Terms