[BCEE 231] - Final Exam Guide - Comprehensive Notes for the exam (43 pages long!)

703 views43 pages

Document Summary

Part 1 note: line numbers are added for reference purpose only. In relation to the described situation: the following assignment expressions. The syntax error may be due to: have a common syntax error: a variable name is too long f(x) = (a+b)*area*x; g(x, y, z) = a*sin(x*y)*exp(b*z); A+b*c = d: the following expression is supposed to compute. It has an error: a right-hand-side variable name has illegal character(s, the left-hand-side is not a (valid) name, the right-hand-side expression has illegal or missing operator(s, unbalanced parentheses. The error may be due to: a variable name is too long, the part a + 2 is badly implemented: the variable name in the left-hand-side has illegal character(s, the part sin is badly implemented y, unbalanced parentheses. 1: the following expression is supposed to compute. V = x * hypot(a,b) * sin y; V = x * hypot(a,b) * sin(y); print(a, b, x, y, v);