This preview shows page 1. Sign up to view the full content.
Unformatted text preview: b. W = ++X / y++ * ++a ; (Break down the problem) ++X 4 ++a 3.5 W = X / y * a W = 4/4 * 3.5 W = 1 * 3.5 W = 3.5 y++ 5 W = 3.5, y = 5, a = 3.5, X = 4 ; c. a += ++X * y --; X = 4, a = 18.5, y = 3 d. X /= y++ % ++X ; X++ 4 X = X / y % X X = X / (4 % 4 ) X = X / 0 Error division by 0 4) Write an algorithm and a C++ program. Including functions and classes. (Similar to the ones done at home or in the lab) (Sample program posted on BB) 5) Write a function. (Sample program posted on BB) 6) Know the following definitions: o Algorithm o Software Engineering o Software Life cycle (Development cycle) (Analysis, Design, Implementation,) o Purpose of Comments in a program o Identifiers (variables,. .) o Pass by value (in functions) o Prototypes (what are they, and why use them) o Classes (what are they, why use them) o Objects (what are they, difference with simple variables)...
View Full Document
- Spring '07
- Computer Programming