Spring 2006
CIS101 Computer Programming & Problem Solving
Lab Materials for Section 010 and 012
Lecture Instructor:
Professor Michael A. Baltrush
email: Baltrush@adm.njit.edu
website:http://web.njit.edu/~baltrush/cis101_course_page.htm
Lab Instructor:
Yu Wangemail: yw6@njit.edu
Materials:
Materials for 1st week: Introduction , example_01.m
Materials for 2nd & 3rd week: Matlab_Arrays , solution
Materials for 4th week: Matlab_File I/O & Values Input/Display , example, solution
Materials for 5th week: Matlab_2D Plot , solution
Materials for 6th week: Matlab_Function , solution
Materials for 7th week: Matlab_Decisions & Repetition
1st Midterm Review: Sample Questions for Matlab
Materials for 8th week: Introduction of C++
Materials for 10th week: Variables & Data types in C++
Materials for 11th week: Decisions & Repetition in C++
An example of using " for " loop to calculate "Factorial": Factorial_for_loop.cpp
An example of using "while" loop to calculate "Powers of Two" can be found at Lecture note, end of slide 2.
Materials for 12th week: Repetition in C++
Materials for 13th week: Arrays in C++
2nd Midterm Review: Sample Questions for C++
Materials for 14th week: Files & Functions in C++
Materials for 15th week: Class in C++ (click to open or download)
Final Review: Sample Questions
Solution: Solution for Final Review
Sample Solutions:
Assignment_01, Assignment_02, Assignment_03, Assignment_04 (script file), fgrade (function file), Sample data file (.xls)
Assignment 05, Assignment_06, Assignment_07, Assignment_08: using sentinel or number of input
Grade posted: please log in to webct.njit.edu with your UCID
Assignment_01, Assignment_02, Assignment_03, Assignment_04, Assignment_05, Assignment_06, Assignment_07, Assignment_08, Assignment_09
Useful Web Site: