CMPT 128 Midterm: CMPT 128 Midterm Fall 2009

520 views7 pages

Document Summary

Last name exactly as it appears on your student card. First name exactly as it appears on your student card. It is closed book: no calculators, computers, notes, books, etc. are allowed. }else{ cout << no; int score1 = 10; int score2 = 4; if ((score1 + score2) / 2) > 6){ cout << yes; }else{ cout << no; vector v1(5); for (int i=0; i < v1. size(); i++){ v1[i] = i * 2; cout << v1[2]; vector v2; v2. push_back(10); v2. push_back(25); cout << v2[v2. size() 1]; Page 3 of 7 int w1 = 10; int h1 = 8 int w2 = 3. 4; int 2ndh = 15; #include using namespace std; int area (int length, int height); int main() int area (int length, int height){ Identify five compilation errors in the program above by circling or numbering them. Note the error and a brief description of how you would solve it in the space provided below.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents

Related Questions