CPS 150
Challenge Problem 1
Name (Print)_ Section _
Introduction to Approximation methods
By their very nature, certain problems do not admit of exact solutions. For example, we cannot calculate the value of 2 or
exactly (as a decimal fraction). In such
CPS 150/Fall 2016
Test 2
Name (Print)_KEY_ Section _
Write in part: For this part, write your answer in the spaces provided. Each question is worth 5 points unless indicated
otherwise in the question itself.
1. Show the output from the following program.
CPS 150/Fall 2016
Quiz 3
Full Name (Print) _KEY_ Section_
Directions (Please read carefully!)
This quiz is closed book and notes. Each question is worth 5 points. The entire quiz is worth 25 points.
Constant values of type int are written without a deci
CPS 150/Fall 2016
Test 1 Study Guide/Sample Problems (updated on October 3)
Instructor: Tamisra Sanyal.
The first test is on Tuesday, October 4.
Everything mentioned in the study guides for previous quizzes are included, except binary codes for numbers.
R
CPS 150/Fall 2016
Quiz 1 Study Guide/Sample Problems (with some solutions)
The first quiz is on Monday, September 12.
Topics: a) Digital coding, b) Basic Java programming.
Reading from the Lecture Notes posted (See under Resources)
Lecture Notes 01 05. Al
CPS 150/Fall 2016
Quiz 2 Study Guide/Sample Problems (solutions)
The second quiz is on Tuesday, September 27.
Topics: a) Decision making using if-else, b) Definite and indefinite loops using while. You should also review Basic Java
(lecture notes 5).
Read
CPS 150/Spring 2016
Test 2
Name (Print)_KEY_ Section _
Write in part: For this part, write your answer in the spaces provided. Each question is worth 5 points unless indicated
otherwise in the question itself.
1. Show the output from the following program
CPS 150/Spring 2016
Assigned: April 11
Tamisra H. Sanyal
Assignment 2
Due: April 15, 11 pm (on Isidore)
The Change Maker
Cut-off: April 18, 11 pm
Objectives:
a) arithmetic using integer and real (floating point) values,
b) use of integer division and inte
CPS 150/Spring 2016
Test 3
Name (Print)_KEY_ Section _
Write in part: For this part, write your answer in the spaces provided. Each question is worth 5 points unless indicated
otherwise in the question itself.
1. Assume the following declaration to create
CPS 150/Spring 2016
Test 3
Name (Print)_KEY_ Section _
Write in part: For this part, write your answer in the spaces provided. Each question is worth 5 points unless indicated
otherwise in the question itself.
1. Assume the following declaration to create
CPS 150/Fall 2016
Instructor: Tamisra Sanyal.
Test 3 Study Guide/Sample Problems (This document is now updated)
The third test is on Tuesday, December 6. It is a closed book test. It will contain any or all of: multiple-choice, true/false,
matching, short
CPS 150/Fall 2016
Assigned: October 31.
Instructor: Tamisra H. Sanyal
Assignment 3
Due: Nov 07, 11 pm (on Isidore)
A Cash Register Program
Cutoff: Nov 10, 11 pm
Objectives: a) Indefinite loops, b) Summing and counting, c) Named constant, d) data types int
CPS 150/Fall 2016 Lecture notes 01 - Algorithms and (computer) programming I What is it all about?
Instructor: Tamisra Sanyal.
Basic idea of Problem solving: Solve a complex problem by a number of simpler (primitive) steps that the problem solver
knows ho
CPS 150/Fall 2016
Test 3
Name (Print)_KEY_ Section _
Write in part: For this part, write your answer in the spaces provided. Each question is worth 5 points unless indicated
otherwise in the question itself.
1. a) Declare an array reference variable that