CECS-174: Introduction to Programming and Problem Solving
This site contains information about the activities carried out in the first
CECS course on programming and problem solving, CECS-174, during Fall-2009.
Here you'll find the most recent activities in each of the different categories and you'll
also find announcements.
Be sure you have the class syllabus
(in PDF) to get more administrative details about the class for Fall-2009.
Readings and Lectures
Following is a brief description of the concepts introduced during each of
the fifteen weeks of the course. These will be updated each week.
- Introduction to CS, programming, problem solving, program,
algorithm, binary number system, Java. Chapter 1 and 2.
Check out this YouTube video titled
in 60 seconds. HowStuffWorks.com provides discussion of
how bits and bytes work.
- Chapter 2 on Using Objects. During this shortened week, we'll learn the basics
of data types, the assignment statement, and using Math library functions.
Sample programs: TypeTester.java
- Complete Chapter 2 with a discussion on classes, objects, and
methods. Start chapter 3 on implementing classes. Sample programs:
Practice problems: get the program on pages 69-70 working as a
Java applet that can be executed from the web browser; programming
exercises: P2.1, P2.2, P2.4.
- Chapter 3 on Java classes: OO design, class definition, method
definition, constructors, JavaDoc comments.
is a Java class that describes the different parts that make up
a class. You should also review
Employee.java and the
These are the Java classes that I implemented in lecture and which
use most of the lessons we learned about in chapter 3.
- Chapter 4 on Fundamental Data Types: numeric types, constants,
arithmetic operations, static methods, strings.
- Complete chapter 4: String class and char data type; reading input
and formatting output. Start chapter 5 on programs that make
program that I created during the lecture.
- Continue chapter 5 on conditional statements. if statements,
if-else form, and if-else-if-else-if-else form.
is the if-else-if version of the the BMI program. Comparing Strings.
Comparing objects. Boolean expressions (conjunction and disjunction).
- [Oct 19 and 21] Complete chapter 5: switch statement, De Morgan's
Law. Start on chapter 6 on iterations. Review solution to
Homework #1 and discuss homework #2. The
program that uses loops to solve a summation, do a count down,
and also demonstrate the switch statement.
- [Oct 26 and 28] Monday: continue chapter 6 on
loops and review for the midterm. Wednesday Oct 28: Midterm.
- [Nov 4th only]: Continue chapter 6 on loops:
for loops, and nested loops. Random numbers and simulations --
this last topic is postponed until later in the semester if we
have time. The multimedia
Eclipse project to download, we will use this for some
of the assignments on loops and arrays
(updated on Monday Nov. 9).
- [Nov 9th only]: Start chapter 7 on arrays and array lists.
Campus closed on Wed. Nov. 11th due to observance of Veteran's Day.
- [Nov 16th and 18th]: Continue chapter 7: arrays,
array lists, wrappers and auto-boxing, for-each loop,
two dimensional arrays. The Bank.java file has
some modifications I explained in lecture on Nov. 18th regarding
use of for-each loop and while loop with arrays and also implements
the deposit method as required by programming exercise
7.1 on page 327.
- [Nov 23 only]: Complete chapter 7: use of multiple arrays.
Note: I will not be available on Tuesday Nov. 24th due to a personal
furlough day and campus will be closed on Wed. Nov. 25th for Fall break.
- [Nov 30, Dec 2]: Wrap up arrays (if needed). Introduction to
SciLab. You may want to
download and install SciLab on
your own computer.
Read and follow the SciLab tutorial.
- [Dec 7 and 9]: Complete MATLAB/SciLab. Final lecture on problem
solving and writing programs to implement solutions to problems,
- [Dec 14-19: Final exams]: Our final exam is scheduled for
Monday December 14 from 8am to 10am.
|Monday Dec. 14, 8am to 10am
||Comprehensive Final Exam
||Use BeachBoard discussion board to ask questions about material in final exam.
|Week #15 (12/07 and 12/09)
||Quiz #5 on 12/09 to cover chapter 7 on arrays
||Last week of classes
|Week #14 (11/30 and 12/02)
||Lab #10 due 12/7: JavaBat problem linearIn from category Array-3.
Lab Midterm on 12/02 (additional information)
||HW #5 due
|List of previous assignments,
along with solutions to some of them.
CECS 174 Getting Started Guide. The guide provides information
about how to configure your CECS account in the CECS Windows
Lab computers. Information is now available on how to configure a personal computer.
- Java Errors Explained!:
This document provides good quality explanations to Java errors. It is written
by Mordechai (Moti) Ben-Ari
and it has a licensed under the
Creative Commons Attribution-Noncommercial-No Derivative Works 2.5 License.
- Using Eclipse. This web page describes
how to use Eclipse in the CECS labs
- A collection of photos:
- Instructions on how to submit assignments