C++ Assignments updated on 6/02/07
Assignment for Introduction to C++
For the final exam you will be asked to hand code two assignments from the tutorial sections of this Web site.
Last Week of Class
- Bring in your Java and C++ Books
- Final projects will be marked this week. No credit will be given to a project that is NOT commented and NOT properly indented.
- Create a folder in your student directory on the H Drive and call it C++_MO_FirstInitialLastName for example C++_MO_VGold.
- Move into this folder the latest version of either your final project(Tic Tac Toe), Grammar Gorilla work or tutorial Projects. If your work is in someone else's folder write a small document saying where your work is and why it is there.
- In addition move the following projects into the folder
- Keylistener Animation Project
- Inheritance Assignment / Back To School
- Permutations
- Madlibs
Important Notices :
Helpful Links
- Java API
- Java Tutorials-the Really Big Index
- Software Design Document Template
- cPlusPlus Helpful web site
- Microsoft VC++ Documentation
What is Object Oriented Programming?
Object-oriented programming may be seen as a collection of cooperating objects, as opposed to a traditional view in which a program may be seen as a collection of functions, or simply as a list of instructions to the computer. In OOP, each object is capable of receiving messages, processing data, and sending messages to other objects. Each object can be viewed as an independent little machine with a distinct role or responsibility.[2]
Object-oriented programming is intended to promote greater flexibility and maintainability in programming, and is widely popular in large-scale software engineering. By virtue of its strong emphasis on modularity, object oriented code is intended to be simpler to develop and easier to understand later on, lending itself to more direct analysis, coding, and understanding of complex situations and procedures than less modular programming methods.
http://en.wikipedia.org/wiki/Object_orientated_programming
Object Oriented Vocabulary
Current Announcements
1/24/07
Technology of the Day
- Kaela and Lindsay Social Networking –Friday 1/26
- Julie and Caitlin Games - 1/30 Tuesday
- Corrine and Ady Music –2/1 Thursday
- Jason and Bruce Robotic – 2/5 Monday
- Kevin, Ryan & Frankie Nasa – 2/7 Wednesday
Lessons and Assignments
05/29/07 Image and Font Example
05/25/07 MouseClick Magic
05/07 Grammar Gorillas, Tic Tac Toe and Review for Final Exam
4/25- Putting it All Together and Clear Screen
Link to Sample Code - NotHelloWorld
Simply NotHelloWorld with Buttons
Lesson 04/03
public class HelloWorld {
public static void main(String [] args) {
System.out.println("HelloWorld");
}
}
Lesson 3/26 - 26 Days to Product
- Grammar Gorilla - The User Interface
- Adding Text With Swing Tutorials
- Adding Swing Check Boxes Tutorials
- Outstanding Packaging Issues
- How will Grammar Gorilla's be run by when productized -
- HTML (Ady) / Web Start (Ryan) / Browser (Kevin)
- Assessment will be based on:
- the ability of each student to finish the assignment with little guidance from me. Each student, as a member of a team should be able to answer most questions amongst themselves barring any slippery coding problems.
- How well the final GUI has been thought through and designed.
- How solid, robust and well tested is the final product.
Lesson 3/12
- Animation KeyListener Project
- Assessment will be based on
- the ability to move three stick figures right and left in response to key presses
- each figure should be a different color
- For extra credit add a Mouse Listener
- Don't Forget the Comments
Lesson 3/5
Lesson 21 2/26 through 3/2
Lesson 20 1/17 and 1/22
/**
* Generates a random permutation. Fills an ArrayList with the
* numbers 1 to listSize so that no two entries of the array have
* the same contents. Makes a second ArrayList and fills it with
* the numbers 1 to listSize. Then picks one of those at random
* (using Random.nextInt(int), removes it, and appends it to the
* permutation ArrayList. This operation is repeated listSize times.
*
* @return Random permutation ArrayList
*/
- ArrayList Tutorial
- Permutation Assignment
- Readings - Chapter 10 on Arrays
Lesson 16 Arrays 1/9 and 1/11
- Class Lecture Arrays Tutorial
- Class Lecture - More about Methods
- Class Assignment - Madlib
- Readings - Chapters 8 and 9
Lesson 15 Inheritance week 1/3 and 1/5
- Class Lecture- Defining and Using Classes 1/3
- Class Lecture - More about Methods 1/5
- Class Assignment - Arrays- Madlib
Lesson 14 Continued the week beginning 12/18
- Quiz 2
- String Continued - Strings - Exercises Palindrome, Shorthand and Piglatinor
Lesson 14 for the week beginning 12/8
- Strings - Exercises Palindrome, Shorthand and Piglatinor
Lesson 13 for the week starting 12/4
Lesson 11 and 12 Methods Project week of 11/27
- Method Assignment
- Method Return Type
- Due on 12/4 -
- Read chapters 3 and 4 of Java Methods, An Introduction to Object-Oriented Programming by Maria Litvin and Gary Litvin - (On 12/4 we will review the reading and possible quiz)
- Method and Method Return Types Projects
- The Method Worksheet
Lesson 10 - Continue Java tutorials 11/21 - 11/23
Lesson 9 - Introduction to Java - 11/14
- Finish up C++ library Projects
- The differences between C++ and Java
- Start with the tutorials Getting Started at http://java.sun.com/docs/books/tutorial/reallybigindex.html
Lesson 8 - Basic Classes - Week Starting 11/06
- C++ Book - Part II: Classes, Hour 7 Basic Classes
Lesson 7 - Overloading Functions and Function Templates - Week Starting 10/23
Reading Materials
Assignments - Exercises A and B, and Extra Credit assignments are due by end of class Monday 10/30
Lesson 6 - Modularity and Functions
Lesson 5
- Modularity and Functions
- More on Functions
- Scoping Hand out
- Programming Pointers
- Exercise
- C Library Extra Credit
Students will be Assessed
- on their ability to break code into logical units/functions.
- Their ability to write function prototypes
- Their ability to successfully call functions first from within main, followed by calling functions within other functions.
Lesson 4