CSE4194 Lab2 DATE GIVEN: DATE DUE: SUBMIT: Wednesday, January 21, 2015 Tuesday, January 27, 2015 11:59pm to Dropbox Lab 2 folder on Carmen OBJECTIVES Functions Multiple worksheets Operator Precedence Precision versus format Spreadsheet design DIRECTIONS 1. Create a workbook called CSE4194Lab2.xlsx 2. Name the first worksheet: calcPI 3. Calculate PI using an Infinite Series in two ways (http://www.wikihow.com/Calculate-Pi). Set up the worksheet as readable as possible (clearly designate the meaning of all data) and as updatable as possible. You cannot use any constants in any equation. Instead, be sure to put any constant values needed in a separate cell and reference it. Be sure to highlight all constants in an orange color. For each separate calculation, one that is copied, highlight the formula in green. Create between 12 and 15 iterations per infinite series. Be sure that your equations can easily be copied to create additional iterations; highlight the last set of equations, per series where the fill handle can be used to copy for additional iterations. Be sure it’s clear which set of equations represents the two individual series options. Increase the decimal to some point between 3 and 6 decimal places. A. Use the Gregory-Leibniz series. Mathematicians have found several different mathematical series that, if carried out infinitely, will accurately calculate pi to a great number of decimal places. Some of these are so complex they require supercomputers to process them. One of the simplest, however, is the Gregory-Leibniz series. Though not very efficient, it will get closer and closer to pi with every iteration, accurately producing pi to five decimal places with 500,000 iterations.[2] Here is the formula to apply. π = (4/1) - (4/3) + (4/5) - (4/7) + (4/9) - (4/11) + (4/13) - (4/15) ... Take 4 and subtract 4 divided by 3. Then add 4 divided by 5. Then subtract 4 divided by 7. Continue alternating between adding and subtracting fractions with a numerator of 4 and a denominator of each subsequent odd number. The more times you do this, the closer you will get to pi. B. Try the Nilakantha series. This is another infinite series to calculate pi that is fairly easy to understand. While somewhat more complicated, it converges on pi much quicker than the Leibniz formula. π = 3 + 4/(2*3*4) - 4/(4*5*6) + 4/(6*7*8) - 4/(8*9*10) + 4/(10*11*12) - (4/(12*13*14) ... For this formula, take three and start alternating between adding and subtracting fractions with numerators of 4 and denominators that are the product of three consecutive integers which increase with every new iteration. Each subsequent fraction begins its set of integers with the highest one used in the previous fraction. Carry this out even a few times and the results get fairly close to pi. C. Calculate the Error and the Percentage Error for each value in each series. 1. Error is calculated as: EstimatedValue – ExactValue, ignoring any minus sign. 2. Percentage Error is calculated as: Error/ExactValue D. Calculate each of the Percentage Error values rounded to the nearest whole percent by using the ROUND function. 4. Create a worksheet, for each of 5 terms (AU13, SP14, SU14, AU14, SP15) using the following directions for each worksheet: A. What if you didn’t take any classes – ignore this scenario for now B. Assume the maximum number of course allowed in a term is 12 Added Assume the minimum number of credit hours is 12 C. Assume all classes are graded classes D. Assume you pass all of your classes. E. In cell A1, put a label to designate the “Term GPA” F. In cell A2, put a label to designate the “Total Graded Credit Hours” for the term G. In cell A3, put a label to designate the “Number of classes taken” for the term H. In cells A5:E5, respectively, put the following labels: “Course”, “Grade”, “Credit Hour”, “Grade Points” and “Course Points” NOTE: Hopefully, you remembered that you can press the CTRL key and highlight multiple worksheet names and put in the information from E to H all at one time for each of the five worksheets. You can also highlight worksheet names that are in a row by holding down the SHIFT key and clicking the first and last worksheets. I. Create course names with a department designation followed by a number, such as, CSE4194 J. Credit hour should be between 0 and 10 K. Grade should be one of the following with the associated grade points: A 4.0, A- 3.7, B+ 3.3, B 3.0, B- 2.7, C+ 2.3, C 2.0, C- 1.7, D+ 1.3, D 1.0 L. Fill in data under each of the first 4 columns and calculate the course points as: “Credit Hour” times “Grade Points” M. Calculate the average, min and max for the credit hours, grade points, and course points putting the labels for this data in cells B16:B18, respectively. N. Calculate the total number of classes taken in cell B3 O. Calculate the total number of graded credit hours in cell B2 P. Calculate the term GPA in cell B1 *** Addendum for Friday’s class Q. Determine the rank for the grade points and the course points starting in column F where the higher value is the better value i.e. rank 1 should go to the highest value. NOTE: use one formula and copy down and across. NOTE: Remember that your worksheets should always be updatable. What if you forgot a course and need to go back and add it; or you need to delete a course – or two? HINT example: When you count the number of classes, since you are told that the maximum number of classes is 10, you should count the range of 10 rows i.e rows 6 to 15, so that your formulas will update if a change in data is made. 5. Create another worksheet called “Summary” formatted exactly as seen below where the X is the value or data designated based on the labels given based on the summary or cumulative effort from ALL 5 worksheets. 6. Add another worksheet to the workbook called “Extra” and do the following: Prove the difference between ROUND and TRUNC. Be sure to show that sometimes they are the same and sometimes they are not. Explain the differences between the two functions and give an example of when you should use ROUND instead of TRUNC and when you should use TRUNC instead of ROUND. 7. Add a new worksheet to the workbook and move it to the front of the line of worksheets making it the first one listed. Name this worksheet StudentInfo and include the following information on this worksheet: A. The name(s) of student(s) working on this lab B. What was the most interesting thing you learned doing this lab? C. On a scale of 1 to 10, how easy was the lab with 1 being super boring easy and 10 being way too hard. D. The course/GPA subject is well known but not very exciting. Give two other subject problems that would have been fun and would easily cover the same material.
© Copyright 2026 Paperzz