CIS200 SP04 KREEVES QUIZ#2 Instructions: You will have 40 minutes to complete this quiz. Put away all books, papers, and calculators. Turn off all beepers and cell phones. Read each question carefully and fill in the answer in the space provided. Answers must be legible or they will be marked incorrect. Be sure to determine the “best” answer. That is, if the worksheet cannot be updated with your answer and there is another answer that works that can be updated automatically, you will have points deducted. When time has run out you will be told to put all pens/pencils down. Failure to do so will result in point penalization. Put your answer on the line given. If multiple answers are on the line, no points will be given! DESCRIPTION: Several people are going to the movies (A10:A16); other input information is given for each person (B10:E16). The cost for tickets and the tax associated with each is defined B4:B7 and G3, respectively. The movie ratings (G5:J5) are designated along with the MINIMUM age a person has to be to see the movie (G6:J6). Notice that these cells are all in gray since they are considered input values. You can assume that the movie ratings in cells G9:J9 will always be the same as G5:J5. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 A B C D E F G H I MOVIE TICKETS AND RATINGS FOR CO-ED FILM FUNTASTICS CLASS children students seniors adults ticket $ $4.00 $4.00 $5.00 $7.00 tax ratings age J K 10% G 0 PG 5 PG-13 13 R 17 movie ratings allowed ticket types of price movies name status gender group age G PG PG-13 R jeffrey children M #2 10 $ 4.40 TRUE TRUE FALSE FALSE 2 katie seniors F #1 58 $ 5.50 TRUE TRUE TRUE TRUE 4 simone students F #2 16 $ 4.40 TRUE TRUE TRUE FALSE 3 linda adult F #3 25 $ 7.70 TRUE TRUE TRUE TRUE 4 dani adult F #2 22 $ 7.70 TRUE TRUE TRUE TRUE 4 jason children M #2 9 $ 4.40 TRUE TRUE FALSE FALSE 2 brian children M #3 4 $ 4.40 TRUE FALSE FALSE FALSE 1 can everyone see the movie --> TRUE FALSE FALSE FALSE do only the females get to see movie rating? FALSE FALSE TRUE TRUE Functions (required arguments shown bold) AVERAGE(number1,number2,…) COUNT (range) COUNTIF(range,criteria) MAX(number1,number2,…) MIN(number1,number2,…) ROUND(number, num_digits) SUM(number1,number2,…) SUMIF(range,criteria,sum_range) AND(logical1, logical2, …) OR(logical1, logical2, …) NOT(logical) IF(logical_test, value_if_true, value_if_false) L #1 $5.50 M N O group #2 #3 $20.90 $12.10 yes/no instead of true/false yes yes no no yes yes yes yes yes yes yes no yes yes yes yes yes yes yes yes yes yes no no yes no no no NAME _______________________________________________ Lab section (check one): _______ 9:30-11:18am SEAT# ____________ ________ 11:30-1:18pm 1) (8 pts) Write an Excel formula in cell F10, which can be copied down to F16, to determine the ticket price plus tax for Jeffrey. You will need to use the status (B10:B16) to determine the ticket price for each person; for instance, since Jeffrey has “children” status, his ticket is $4.00 plus tax (cell G3). Assume that “children” and “students” will always have the same ticket price! Use cell references whenever possible. A LOT OF DIFFERENT ANSWERS!!! Be careful grading! My answers determine the ticket price then update with the tax amount by doing *(1+G$3) at the end. Some students may, instead of just using the ticket price of B$4/B$5, B$6, and B$7, calculate the entire ticket cost with tax. I expect to see say instead of B$4 on the first answer below, to see B$4*(1+G$3) or B$4 + B$4*G$3. If the students have 3 IF’s instead of just 2, that’s okay. Of course, you still need to count off for incorrectness! the cells with the $ on them already, can have the column $ (no deduction) don’t count off for unmatched parenthesis if you understand what they are doing (but still mark them so they know this is a problem, just don’t deduct for it!) -1 for each non-cell reference used for a max of -3 pts -1 for each missing $ for a max of -3 pts -1 for each error; if making a group of the same error, don’t take off more than 3 pts =IF(OR(B10=A$4,B10=A$5),B$4,IF(B10=A$6,B$6,B$7))*(1+G$3) =IF(B10=A$7,B$7,IF(B10=A$6,B$6,B$5))*(1+G$3) =IF(B10=A$6,B$6,IF(B10=A$7,B$7,B$5))*(1+G$3) etc!!! 2) (5 pts) Write an Excel formula in cell G10, which can be copied down and across to J16, to determine, TRUE or FALSE, if the Jeffrey can see a G movie. Remember that in cells G6:J6 are the lowest age possible to allow a person to watch a movie with the respective ratings in cells G5:J5. -2 for each extra $ sign -1 for each other kind of error -1 if used an IF structure! =$E10>=G$6 3) (5 pts) Write an Excel formula in cell K10, which can be copied down to K16, to determine how many different types of movie ratings Jeffrey is allowed to see. Mark if put quotes around Boolean value (true) but don’t count off -3 if used incorrect function -1 for each different error =COUNTIF(G10:J10,TRUE) SCORE ______________/40 4) (5 pts) Write an Excel formula in cell L10, which can be copied down to O16, to determine, YES or NO, if Jeffrey can see a G movie (same as above #2 except the result in each cell is “yes” or “no” instead of TRUE or FALSE!). -3 for no IF function -1 for each other error (missing set of quotes should be counted off for here!) =IF($E10>=G$6,"yes","no") =IF(G10,"yes","no") 5) (3 pts) Write an Excel formula in cell G17, which can be copied across to J17, to determine if everyone can see a G movie. Can use E10:E16 for the count function range -2 for not using AND function -1 for each other error =AND(G10:G16) =COUNTIF(G10:G16,TRUE)=COUNT(F10:F16) 6) (5 pts) Write an Excel formula in cell G18, which can be copied across to J18, to determine if only the females get to see a G movie. Arguments can be in any order Mark if they put individual arguments for the OR(G11:G14) i.e. OR(G11,G12,G13,G14), but don’t count off -1 for each error =AND(OR(G11:G14),NOT(OR(G10,G15,G16))) =AND(OR(G11:G14),NOT(G10), NOT(G15),NOT(G16)) 7) (5 pts) Write an Excel formula in cell L5, which can be copied across to N5, to determine the total cost of tickets for group #1. Ok if added extra $ on row of D or F cell. -3 if incorrect function -1 for each other error =SUMIF($D10:$D16,L4,$F10:$F16) 8) (4 pts) I wrote the formula =round(L5,-1) in L6, and copied it across to N6, to determine how much money I would need to pay for group #1’s tickets. Determine the values for L6, M6 and N6. Is the formula correct (yes or no)?! Some students may just answer the question instead of writing the values (it says “determine” not “write”, so it may have gotten misunderstood!). If this is the case, grade the answer all or nothing on the Yes/No answer. -1 for each incorrect answer below; they don’t have to explain! L6=10 M6=20 N6=10 No SCORE ______________/40