Microsoft Excel
This practice lab will demonstrate the use of a spreadsheet to solve a simple, real problem.
(As described in class)
You are a teaching assisant for CS115 and the professor has asked you to devise a spreadsheet to calculate the final grade for each student in the class.
The make up of the grade is as follows:
Column headings should appear in row 3 and the data for the first student should appear in row 4.
The formula for calculating the final numerical grade is very long. Notice that your formula has to be able to determine the average of your projects and homework and the largest, smallest, and median of your exams. The formulas for calculating average, minimum, and maximum appear below.
Median is calculated by: =median(first_cell_in_range:last_cell_in_range)
For the first student, you will need these partial formulas in your formula that appears in Column M:
You will build a formula on column J that contains each of the partial formulas listed above added together and added to 20 percent of the final exam which appears in column I.
Before you start grumbling about the long tedious formula for each of the students, Remember, you only have to enter it once. You can then just drag it through the other students and excel will appropriately adjust the the row part of the address. What type of addressing is this an example of?
Save your spreadsheet. Instructions are given later on how to print it.
You are going to add a lookup table to compute your final grade.
Per the course outline, grades are distributed on the following scale:
Your course grade is going to appear in column K. Add a column heading for the course grade.
You must define an array (table) in your spreadsheet in which excel will look up the final numerical grade to determine the letter grade. The table is to be defined in columns L and M beginning in row 4.
To define the table, Column L should contain the following entries: 0, 57, 63, 69, 75, 81, 87, 93. This data represents the first grade in each course-grade range.
Column M should contain the following entries: 0.0, 1.0, 1.5, 2.0, 2.5, 3.0, 3.5, 4.0.
The final numerical grade for the first student appears in Row 4 Column J. The entry in Row 4 Column K (the entry that will assign to this cell the course grade) should be : =VLOOKUP(J4,L$4:M$11,2) . Once this entry is made for the first student, it should be copied to the other students. In this function, we are using relative and absolute referencing. You should understand the concepts as well as the concepts of the table lookup. If you do not, NOW is the time to ask. These are very important concepts.
The syntax of the VLOOKUP function is as follows:
VLOOKUP(lookup_value,table_array,col_index_num,range_lookup) where
lookup_value is the value to be found in the first column of the array
table_array is the table information in which data is looked up
col_index_num is the column number in the table array from which the matching value must be returned.
Notice that we have omitted the fourth parameter: range_lookup. If this value is omitted, an approximate match is made rather than an exact match. So, if an exact match is not found (we want a range), the next largest value that is less than look_upvalue is returned. In other words, suppose 64 is the lookup value. 64 does not appear in the table. The next largest value that is less than lookup_value is 63, so the entry 1.5 is returned.
In the three rows following the last student (in the appropriate column), you should calculate the average, the minimum, and the maximum for each quiz, project, and final.
Average is calculated by: =average(first_cell_in_range:last_cell_in_range)
Minimum is calculated by: =min(first_cell_in_range:last_cell_in_range)
Maximum is calculated by: =max(first_cell_in_range:last_cell_in_range)
Save your spreadsheet under a different name than you saved part 1. Use save as to do this.
Fortunately for you, this is a very small class. There are only 9 students.
Their grades are as follows:
Name | Exam1 | Exam2 | Exam3 | Lab1 | Lab2 | Hw1 | Hw2 | Final |
---|---|---|---|---|---|---|---|---|
Jack Tripper | 90 | 88 | 76 | 100 | 98 | 87 | 73 | 89 |
Janet Wood | 93 | 86 | 76 | 95 | 94 | 100 | 92 | 82 |
Chrissy Snow | 78 | 82 | 90 | 100 | 84 | 100 | 95 | 90 |
Helen Roper | 100 | 54 | 78 | 88 | 82 | 94 | 85 | 92 |
Stanley Roper | 64 | 72 | 80 | 91 | 82 | 90 | 67 | 89 |
Submit the print out of your work. This will be graded on a pass/fail basis and the result averaged in with your homework assignments. This is to ensure that all students come to class prepared. If you have entered all of the data and attempted the formulas (they do not have to be right, you will receive 100. If you have not entered the data or attempted the formulas, you will receive a 0.
[CS 115 Home Page] [CS 115 Lab Page] Maintained by Barbara Bracken Last Modified 2:58 PM 1/18/04