cis 100 test #3 review - reach

44
CIS 100 Test #3 Review REACH Computer Resource Center

Upload: truongque

Post on 21-Dec-2016

223 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: CIS 100 Test #3 Review - Reach

CIS 100 Test #3 Review

REACH Computer Resource Center

Page 2: CIS 100 Test #3 Review - Reach

PowerPoint

Will be available at 12:00 (Noon) on Tuesday 3/22

http://reach.louisville.edu/tutoring/computer/cistestreviews.html

Page 3: CIS 100 Test #3 Review - Reach

The AND function

Microsoft® Excel® Logical Functions

Syntax:=AND(logical1, [logical2], ...)

Arguments:•logical1 Required

The first condition that you want to test that can evaluate to either TRUE or FALSE.

•logical2, ... Optional Additional conditions that you want to test that can evaluate to

either TRUE or FALSE, up to a maximum of 255 conditions.

Page 4: CIS 100 Test #3 Review - Reach

The AND function

Microsoft® Excel® Logical Functions

Description:• Returns FALSE if one or more arguments is FALSE• Otherwise, all arguments must evaluate TRUE

Remarks:• Arguments must evaluate to logical values• Arguments must be arrays or references that contain logical

values• Text and empty cells are ignored in arrays or references

Errors:#VALUE – If no logical values exist in a specified range

Page 5: CIS 100 Test #3 Review - Reach

The AND function – EXAMPLE 1

Microsoft® Excel® Logical Functions

Page 6: CIS 100 Test #3 Review - Reach

The AND function – EXAMPLE 2

Microsoft® Excel® Logical Functions

Page 7: CIS 100 Test #3 Review - Reach

The OR function

Microsoft® Excel® Logical Functions

Syntax:=OR(logical1, [logical2], ...)

Arguments:•logical1 Required

The first condition that you want to test that can evaluate to either TRUE or FALSE.

•logical2, ... Optional Additional conditions that you want to test that can evaluate to

either TRUE or FALSE, up to a maximum of 255 conditions.

Page 8: CIS 100 Test #3 Review - Reach

The OR function

Microsoft® Excel® Logical Functions

Description:• Returns TRUE if one or more arguments is TRUE• Otherwise, all arguments must evaluate FALSE

Remarks:• Arguments must evaluate to logical values• Arguments must be arrays or references that contain logical

values• Text and empty cells are ignored in arrays or references

Errors:#VALUE – If no logical values exist in a specified range

Page 9: CIS 100 Test #3 Review - Reach

The OR function

Microsoft® Excel® Logical Functions

Page 10: CIS 100 Test #3 Review - Reach

The NOT function

Microsoft® Excel® Logical Functions

Syntax:=NOT(logical)

Arguments:•logical Required

A value or expression that can be evaluated to TRUE or FALSE.

Page 11: CIS 100 Test #3 Review - Reach

The NOT function

Microsoft® Excel® Logical Functions

Description:• Reverses the value of its argument.

Remarks:• If logical is FALSE, NOT returns TRUE• if logical is TRUE, NOT returns FALSE

Errors:None

Page 12: CIS 100 Test #3 Review - Reach

The NOT function

Microsoft® Excel® Logical Functions

Page 13: CIS 100 Test #3 Review - Reach

AND/OR/NOT

Follow the Parentheses as a Guide! If several nested functions exist, try starting

in the middle, working your way out, then read from left to right.

(Assume A4=50) NOT(AND(A4>50, A4<70)) =True

Page 14: CIS 100 Test #3 Review - Reach

The IF function

Microsoft® Excel® Logical Functions

Syntax:=IF(logical_test, [value_if_true], [value_if_false])

Arguments:•logical_test Required

Any value or expression that can be evaluated to TRUE or FALSE.•value_if_true Optional• The value that you want to be returned if the logical_test

argument evaluates to TRUE. • If logical_test evaluates to TRUE and the value_if_true argument

is omitted (that is, there is only a comma following the logical_test argument), the IF function returns 0 (zero).

• To display the word TRUE, use the logical value TRUE for the value_if_true argument.

Page 15: CIS 100 Test #3 Review - Reach

The IF function

Microsoft® Excel® Logical Functions

Syntax:=IF(logical_test, [value_if_true], [value_if_false])

Arguments:•logical_test Required

Any value or expression that can be evaluated to TRUE or FALSE.•value_if_true Optional• The value that you want to be returned if the logical_test

argument evaluates to TRUE. • If logical_test evaluates to TRUE and the value_if_true argument

is omitted (that is, there is only a comma following the logical_test argument), the IF function returns 0 (zero).

• To display the word TRUE, use the logical value TRUE for the value_if_true argument.

Page 16: CIS 100 Test #3 Review - Reach

The IF function

Microsoft® Excel® Logical Functions

Syntax:=IF(logical_test, [value_if_true], [value_if_false])

Arguments:•value_if_false Optional

The value that you want to be returned if the logical_test argument evaluates to FALSE.

If logical_test evaluates to FALSE and the value_if_false argument is omitted, (that is, there is no comma following the value_if_true argument), the IF function returns the logical value FALSE.

If logical_test evaluates to FALSE and the value of the value_if_false argument is omitted (that is, in the IF function, there is a comma following the value_if_true argument), the IF function returns the value 0 (zero).

Page 17: CIS 100 Test #3 Review - Reach

The LARGE function

Microsoft® Excel® Statistical Functions

Syntax:=LARGE(array,k)

Arguments:•array Required

The array or range of data for which you want to determine the k-th largest value.

k Required The position (from the largest) in the array or cell range of data

to return.

Page 18: CIS 100 Test #3 Review - Reach

The LARGE function

Microsoft® Excel® Statistical Functions

Description:• Returns the k-th largest value in a data set.

Remarks:• If n is the number of data points in a range, then LARGE(array,1) returns

the largest value.• If n is the number of data points in a range, then LARGE(array,n) returns

the smallest value.

Errors:#NUM! – If array is empty#NUM! – If k ≤ 0#NUM! – If k is greater than the number of data points

Page 19: CIS 100 Test #3 Review - Reach

=LARGE(array,k)

3rd largest number in the numbers in columns A and B

Page 20: CIS 100 Test #3 Review - Reach

=LARGE(array,k)=LARGE(A2:B6

3rd largest number in the numbers in columns A and B

Page 21: CIS 100 Test #3 Review - Reach

=LARGE(array,k)=LARGE(A2:B6,3)

3rd largest number in the numbers in columns A and B

Page 22: CIS 100 Test #3 Review - Reach

=LARGE(array,k)=LARGE(A2:B6,3)

3rd largest number in the numbers in columns A and B

List the numbers in descending order:

7655444332

=5

Page 23: CIS 100 Test #3 Review - Reach

=LARGE(array,k)

7th largest number in the numbers in columns A and B

Page 24: CIS 100 Test #3 Review - Reach

=LARGE(array,k)=LARGE(A2:B6

7th largest number in the numbers in columns A and B

Page 25: CIS 100 Test #3 Review - Reach

=LARGE(array,k)=LARGE(A2:B6,7)

7th largest number in the numbers in columns A and B

Page 26: CIS 100 Test #3 Review - Reach

=LARGE(array,k)=LARGE(A2:B6,7)

7th largest number in the numbers in columns A and B

List the numbers in descending order:

7655444332

Page 27: CIS 100 Test #3 Review - Reach

=LARGE(array,k)=LARGE(A2:B6,7)

7th largest number in the numbers in columns A and B

List the numbers in descending order:

7655444332

=4

Page 28: CIS 100 Test #3 Review - Reach

The SMALL function

Microsoft® Excel® Statistical Functions

Syntax:=SMALL(array,k)

Arguments:•array Required

The array or range of data for which you want to determine the k-th smallest value.

k Required The position (from the smallest) in the array or cell range of data

to return.

Page 29: CIS 100 Test #3 Review - Reach

The SMALL function

Microsoft® Excel® Statistical Functions

Description:• Returns the k-th smallest value in a data set.

Remarks:• If n is the number of data points in a range, then SMALL(array,1) returns

the smallest value.• If n is the number of data points in a range, then SMALL(array,n) returns

the largest value.

Errors:#NUM! – If array is empty#NUM! – If k ≤ 0#NUM! – If k is greater than the number of data points

Page 30: CIS 100 Test #3 Review - Reach

=SMALL(array,k)

4th smallest number in first column

Page 31: CIS 100 Test #3 Review - Reach

=SMALL(array,k)=SMALL(A2:A10

4th smallest number in first column

Page 32: CIS 100 Test #3 Review - Reach

=SMALL(array,k)=SMALL(A2:A10,4)

4th smallest number in first column

List the numbers in ascending order:

233444567

Page 33: CIS 100 Test #3 Review - Reach

=SMALL(array,k)=SMALL(A2:A10,4)

4th smallest number in first column

List the numbers in ascending order:

233444567

=4

Page 34: CIS 100 Test #3 Review - Reach

=SMALL(array,k)=SMALL(B2:B10

2nd smallest number in second column

Page 35: CIS 100 Test #3 Review - Reach

=SMALL(array,k)=SMALL(B2:B10,2)

2nd smallest number in second column

List the numbers in ascending order:

134788122354

Page 36: CIS 100 Test #3 Review - Reach

=SMALL(array,k)=SMALL(B2:B10,2)

2nd smallest number in second column

=3

List the numbers in ascending order:

134788122354

Page 37: CIS 100 Test #3 Review - Reach

Things to Remember….

If the question asks for the 2nd, 3rd, 4th…. Biggest or smallest, what function?

Rounding to the nearest dollar? If a condition requires “Any” or “All”, what function will you most likely

use? If the questions says your answer “must be copied down” what is that

referring to? When nesting an IF statement with AND/OR/NOT, which goes first? Be careful: Is the questions asking for a formula or the actual answer?

Page 38: CIS 100 Test #3 Review - Reach

Sort and Filter

http://reach.louisville.edu/tutoring/computer/cistestreviews.html

Download “CIS 300 Excel Problems”

Page 39: CIS 100 Test #3 Review - Reach

Practice Question Question (Excel) A suburban gas company gives a discount on propane heating

fuel to residential customers based on the quantity purchased. Write a formula which calculates the correct price to charge a customer based on the following conditions:

· no discount (zero dollars off the total amount due) if the customer purchases less than 500 gallons of propane

· a five percent discount on all fuel purchased if the customer buys less than 2,000 gallons of propane

· a ten percent discount on all fuel purchased if the customer buys 2,000 gallons or more of propane

Assume that cell A1 shows the total quantity (in gallons) of propane purchased and cell B1 is the price per gallon. The formula should calculate the total amount that the customer should pay, after discount (if any) has been applied. Answer

=IF(A1<500,A1*B1,IF(A1<2000,A1*B1*.95,A1*B1*.90))=IF(A1<500, A1*B1, IF(A1<2000, A1*B1*.95, A1*B1*.90))=A1*IF(A1<500,B1,IF(A1<2000,B1*0.95,B1*0.90))

Page 40: CIS 100 Test #3 Review - Reach

Practice Question Question (Excel) Review the accompanying workheet image containing employee

information and then provide an answer in the blank space below. Salespeople who have been employed for more than six years and have annual sales of more

than $22,000 are to be assigned a job level code of 2. All other employees should be assigned a job level code of 1.

Without using a nested IF statement, create a formula in cell E2 that will assign an appropriate job level for Linda. The formula must then be copied down the entire column so that it will work for all of the other employees.Answer =IF(AND(C2>22000,D2>6),2,1)

Page 41: CIS 100 Test #3 Review - Reach

Practice Question Question (Excel) Carefully examine the accompanying worksheet image.

Airline passengers may have to pay a separate fee for checked bags at the time they obtain a boarding pass for their initial flight. If cell A1 contains the number of checked bags, provide a formula using only the cell references in the accompanying table that will correctly determine any baggage handling fee(s) that passengers must pay for their luggage. Note: The fee for the second bag is in addition to that charged for the first piece of checked luggage.

Answer =IF(A1=B4,C4,IF(A1=B5,C4+C5,C3))

Page 42: CIS 100 Test #3 Review - Reach

EXCEL PRACTICE

Question (Excel) What value is returned in a worksheet when the following formula is evaluated?

=OR(25 < 24, MIN(1, 10) < 2, 3 <=  2 + 1)Answer  

TRUE FALSE   numeric   error None of the answers provided are correct

Page 43: CIS 100 Test #3 Review - Reach

Question (Excel) Open the attached template file and examine the data closely. What would be the result of the following Excel formula?

=IF(LARGE(D5:D9, 2) < SMALL(C5:C9, 2), "D5", D7)

Answer   55   65   D5   D7   None of the answers provided is correct

Page 44: CIS 100 Test #3 Review - Reach

EXCEL Practice What is the result of evaluating the following formulas?

(a) =IF(AND(6>3,3>8,2>7),"Access","Excel") Excel

(b) =IF(OR(1>3,8>2),"yes",5) Yes

(c) =IF(OR(AND(4>2,2>3),OR(8>7,4>5)),7,9) 7

(d) =IF(AND(6>3,4>7),IF(5>2,8,7),IF(5>3,3,9)) 3