-
Lesson Setup
This is stuff
you'll need to
download and/or
browse before
starting this
lesson
-
Start-of-lecture
Slides
(Required)
-
Starter
project for the
lesson 04 PCEs
(Post-Class
Exercises)
-
Watch
the online
videos for this
lesson and
demonstrate your
knowledge
(Hand-In)
Download all
videos for
this lesson
(Use the
'Download'
menu item)
-
Parameters
-
VIDEO:
Basic Parameters
(This link may
(or may not) be
useful:
http://csharp.net-tutorials.com/basics/functions/)
-
Exercise:
Basic Parameters
(Sect. 4.4) (Hand-In)
-
Exercise:
Printing
numbers, w/
params
(Sect. 4.4)
-
Return Values
-
VIDEO:
Basic Return
Values
-
Exercise:
Return Values (Hand-In)
(Sect 4.5
and 7.5 both
have limited
information.
Additional
information is
available at
http://www.fredosaurus.com/notes-cpp/functions/return.html
(this is
actually a good
reference, even
though it's
technically for
C++ rather than
C#) )
-
Arrays
-
VIDEO:
Q + A: String
Comparison with
==,
String.Compare
-
VIDEO:
Basic Array of
Primitive Types
-
VIDEO:
How To Adjust
The Console's
Buffer Size
(so you can see
program output
text that has
scrolled off the
screen)
-
Exercise:
Arrays: Basics
(Sect. 8.1, 8.2)
-
Exercise:
Arrays: Usage
(Sect. 8.3)
-
Exercise:
Arrays: Using
only part of the
array (Previous
Knowledge)
(Hand-In)
-
Using Arrays As
Parameters And
Return Values
-
VIDEO:
Arrays as
Parameters
(syntax)
-
VIDEO:
Arrays as
Parameters (pass
by reference vs.
pass by value)
-
Exercise:
Passing arrays
to functions
(Sect. 8.7, 8.8)
(Hand-In)
-
VIDEO:
Arrays as return
types
-
Exercise:
Returning an
array from a
method (Hand-In)
-
Exercise:
Fibonacci
numbers in an
array
(Previous
Knowledge)
(Fun link:
Fibonachos)
-
Review: Nested Loops
- Exercise:
Nested Loops:
Square of
Numbers
(Sect. 5.8) (Hand-In)
Note: This should be very similar to
Lesson 03 Exercise #10
- Exercise:
Nested Loops:
Square of
Numbers with
parameters & return values
(Sect. 5.8) (Hand-In)
Note: This should be very similar to
Lesson 03 Exercise #9
-
Review
Exercises These may or may
not require you
to remember
topics from
prior lessons.
-
Exercise:
Detecting Prime
Numbers (Previous
Knowledge)
-
Exercise:
More Practice With Parameters, Return Values
(Sect. 4.4) (Hand-In)
-
Final Steps
-
Web
Hand-In for post-class exercises and for homework: Go to the
StudentTracker web app, and create an account for
yourself, and then "enroll" in the course. Please submit a .ZIP (and ONLY a .ZIP - not a .RAR, .7z, etc)
that contains the Program.cs
file, the video outline/viewing quiz .DOCX (or .PDF), any other files you wish to include, and leaves out every thing else (as
much as possible).
- Make sure that you're working on
the next homework
assignment.
Details
are listed on the
homework assignment page.
The due date is listed on the
main page.
- Practice what you've
learned
Remember that in order to really learn
this stuff you're going to need to practice it. Go
back and redo the exercises from this lesson until you've
really got it down. Go back to the prior lesson(s) and
review and redo that. Make sure that you've really got
this stuff in your head (and remember that it gets easier
each time you redo the work)!
|