Fall 2013, Lab 3

- first, the program from Lab 2 asked a student for a full name; the new program should ask for the first name and for the last name, and then use concatenation to form the full name;
- second, after computing the overall grade, the program should give you 2.5 points of extra credit for being such a great class; use augmented assignment to add this extra credit;
- third, print not only the number of points for each of the assignments, but the number of resulting points in the overall grade (see example below);
- fourth, instead of keeping only the integer part of the resulting final grade, please also print the first digit after the decimal point (the book explains how to do it on p. 57, we will go over this example in class);
- for extra credit, use dialog boxes for input (as described in Section 2.19 of the book).

- 26% comes from lab assignments
- 10% come from lab attendance and participation
- 3% come from research tasks
- 10% comes from quizzes
- 36% comes from exams, and
- 15% comes from the final exam.

- declare extra points amount as a constant;
- ask for a student's first name and last name, for a student's average grades on the labs, on lab attendance, on quizzes, on exams, and on the final exam (all on a scale form 0 to 100);
- use concatenation to combine first name and last name into the full name;
- combine all these grades, with appropriate weights, into an overall grade;
- use augmented assignment to add extra credit to this overall grade;
- print all intermediate grades and the final grade; all the grades should be printed with one digit after the decimal point (so that, e.g., 86.95 is printed as 86.9).

**Example.** Suppose that for a hypothetical student:

- his first name is Luc, and
- his last name is Kay-Vladik.

- 90 average on the labs,
- 100 average on lab participation,
- 50 on research assignments (turned in only one instead of two),
- 86 average on the quizzes,
- 80 average on the tests, and
- 81 on the final exam.

0.26 * 90 + 0.10 * 100 + 0.03 * 50 + 0.10 * 86 + 0.36 * 80 + 0.15 * 81 =

23.4 + 10.0 + 1.5 + 8.6 + 28.8 + 12.15 = 84.45

The final grade is then 84.45 + 2.5 = 86.95.

Your program should then print the following text:

Semester: Fall 2013 Class: CS 1401 Introduction to Computer Science Student name: Luc Kay-Vladik Grades for: lab assignments (26%) 90 23.4 lab attendance (10%) 100 10.0 research assignments (3%) 50 1.5 quizzes (10%) 86 8.6 exams (36%) 80 28.8 final exam (15%) 81 12.1 Overall 84.4 Extra credit 2.5 Final grade for the class: 86.9

**When it is due.** The program is due at the beginning of the
first lab section on the week of September 23, i.e.:

- on Monday September 23 for those who attend Monday-Wednesday labs, and
- on Tuesday September 24 for those who attend Tuesday-Thursday labs.