Chapter 1 Homework: due on 7-4-01 (note that if a problem has several parts which are not specifically chosen, you must do the entire problem)Chapter 1 Programming projects: due on 7-4-01Chapter 2 Homework: due on 7-12-01Chapter 2 Programming projects: due on 7-12-01Chapter 3 Homework: due on 7-17-01Chapter 3 Programming projects: due on 7-17-01Chapter 4 Homework: due on 7-24-01Ex 4.1: 1a, c, e, g, i; 2a, c; 3a, c, e, g, i; 4a, cChapter 4 Programming projects: due on 7-24-01Chapter 5 Homework: due on 7-30-01Chapter 5 programming projects: due on 7-30-01Chapter 6 Homework: due on 8-2-01Chapter 6 programming projects: due on 8-2-01Chapter 7 Homework: due on 8-8-01Chapter 7 programming projects: due on 8-8-01A Simple C++ Program Illustrating Documentation StyleCS230 Computer Science IMay 21 – June 27Summer I, 2001 AssignmentsReading: Always stay ahead of the classroom lectures by at least a full chapter. Mark down places where you have questions.Chapter 1 Homework: due on 7-4-01 (note that if a problem has several parts which are not specifically chosen, you must do the entire problem)- Ex 1.1: 2a, c; 4; 6a; 8- Ex 1.2: 2; 4a, c, e; 5- Ex 1.4: 2b, d; 3; 4 Chapter 1 Programming projects: due on 7-4-01- Ex 1.3: 2a, b; 3b, cChapter 2 Homework: due on 7-12-01- Ex 2.1: 2; 3; 9a, c, e, g- Ex 2.2: 1; 2; 4a, c, e, g; 5a, c, e, g; 6a, c, e, g- Ex 2.3: 1; 2; 5a, c, e; 7a, c, e; 8- Ex 2.4: 1; 3a, c; 4a, c; 5a, c; 6a, c; 7; 15Chapter 2 Programming projects: due on 7-12-01- Ex 2.3: 3; 4- Ex 2.4: 9; 12; - Ex 2.5: 1; 4aChapter 3 Homework: due on 7-17-01- Ex 3.1: 1- Ex 3.2: 1, 2a, c, e, g, i, k; 3; 7a, c, e, g; 8- Ex 3.3: 1a, c, e, g, iChapter 3 Programming projects: due on 7-17-01- Ex 3.1: 6, 7, 10- Ex 3.2: 5, 6, - Ex 3.3: 5, 7, 8- Ex 3.4: 3Chapter 4 Homework: due on 7-24-01- Ex 4.1: 1a, c, e, g, i; 2a, c; 3a, c, e, g, i; 4a, c- Ex 4.3: 5- Ex 4.4: 1; 4Chapter 4 Programming projects: due on 7-24-01- Ex 4.2: 5; 11; 14- Ex 4.3: 2; 3- Ex 4.4: 7Chapter 5 Homework: due on 7-30-01 Ex 5.1: 3a Ex 5.2: 7 Ex 5.3: 1; 3; 10Chapter 5 programming projects: due on 7-30-01 Ex 5.1: 6; 7 Ex 5.2: 3; 9; 10 Ex 5.3: 7; 15; 19 Ex 5.4: 3Chapter 6 Homework: due on 8-2-01 Ex 6.1: 1a, c, e, g; 4a; 6a; 7a Ex 6.2: 2a, c, e, g; 3a, c, f; 4a; 7; 9a; 11a; 13a Ex 6.3: 1a, c, e; 4; 5; 7 Ex 6.4: 1a, b, c; 3, 4 Ex 6.5: 2; 4; 6a, c, e, gChapter 6 programming projects: due on 8-2-01 Ex 6.1: 4b; 6b; 7b Ex 6.2: 10a, b; 12a, b; 13c, d Ex 6.3: 4; 5; 7; 8Chapter 7 Homework: due on 8-8-01 Ex 7.1: 1a, c, e, g; 2a, c, e; 5a, c, e; Ex 7.2: 1; 2; 5 Ex 7.3: 1; 2 3Chapter 7 programming projects: due on 8-8-01 Ex 7.1: 6a, b; 9a, b Ex 7.2: 4; 7 Ex 7.3: 4; 7; 8Programming/Documentation Style Guidelines1. Choose meaningful/suggestive variable and function names.2. Indent lines properly as illustrated in the below example.3. A binary operator is preceded and followed by a space. 4. A left parenthesis is followed by a space and a right parenthesis is preceded by a space.5. Use comment statements judiciously: do not under or over comment the program.6. Every function prototype must be followed by comments, which clearly specify the pre- andpost-conditions of the function.7. On top of the main function, you must use comment statements to specify the course number andtitle, programmer's name, assignment (Ex #, Prob #) date assigned, date submitted, and remark (aconcise description of the program).8. Separate different groups (e.g., functions and functions prototypes) with a blank line.9. You must hand in the sources code and the output on separate pages. Remember that you cannotearn more than 50% of the credits without handing in the correct output! Do not use a wordprocessor to fake an output, which will results in "negative" points.A Simple C++ Program Illustrating Documentation Style// Course: CS230-01 Computer Science I, Summer I, 2001// Name: Doe, John// Assignment: Exercise 1.3 Problem 2// Date assigned: May 21, 2001// Date submitted: May 24, 2001// Remark: This program computes the sum of two integers entered by the user and // prints out the result.int sum ( int, int );// Pre-condition: the function accepts two integers through call-by-value mechanism// Post-condition: the function computes and returns the sum of two integer valuesint main ( ){int num1, num2, total;cout << "Please enter two integer values separated by a space then press enter key: ";cin >> num1 >> num2;total = sum ( n1, n2);cout << "\nThe sum of " << num1 << " and " << num2 << " is " << total << endl;return 0;}int sum ( int m, int n){ return ( m + n
View Full Document