afb pg12 -14 session 56

Upload: kanchi-dhingra

Post on 03-Apr-2018

216 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/28/2019 AFB PG12 -14 Session 56

    1/12

    argument 1

    argument 2

    argument 3

    Exercise 1

    Employee name

    Sales per

    month

    Do You Get

    Bonus?

    Your Bonus

    Amount?

    Amby $54,000.00 yes 400 yes

    Betsy $51,890.00 yes 400 yesChris $49,999.00 no no

    David $45,000.00 no no

    Emphy $50,000.00 no no

    Feebie $54,000.00 yes 400 yes

    Goldie $51,490.00 yes 400 yes

    Henry $57,000.00 yes 400 yes

    Exercise 2

    Debit NumbersCreditNumbers

    $58 $58

    $30 $30$43 $43

    $21 $21

    $5

    $152 $157

    Is the Debit and Credit amount inbalance? FALSE false

    Exercise 3

    Q.Is it a net income or net loss or break even?

    Sales $5,500.00

    Expenses $3,450.00

    net income profit

    Sales 5,500.00

    Expenses 5,500.00

    Breakeven be

    Q. According to a policy of XYZ Co., a salesperson will get a bonus of $400.00 if his sales ex

    per month. Following is the monthly sales figure of each employee. Calculate their bon

    IF functionDelivers 1 of 2 things to a cell or formula

    You can deliver: Words, Numbers, or Formulas to a cell or formula

    This is a TRUE/FALSE test. The test either evaluates to TRUE,

    What to put in the cell if the test evaluates to TRUE

    What to put in the cell if the test evaluates to FALSE

  • 7/28/2019 AFB PG12 -14 Session 56

    2/12

    YES NO YES

    YES YES 5 NO OF SALES PERSON ELIGLIBLE FOR BONUSFALSE NO TOTAL BONUS DISBURSED

    FALSE NO

    FALSE NO

    YES YES

    YES YES

    YES YES

    eed $50, 000.00

    s amount.

    or FALSE

  • 7/28/2019 AFB PG12 -14 Session 56

    3/12

    IF Function: Put 1 of 2 things into a cell based on a logical test

    AND Function: When all logical tests are passed, AND delivers a TRUE

    If any one of the tests come out FALSE, AND delivers a FALSE

    OR Function: When at least 1 logical tests is passed, OR delivers a TRUE

    If any one of the tests come out TRUE, OR delivers a TRUE

    Exercise 1: IF functionExercise 2: AND function with 2 logical tests inside IF function

    Exercise 3: OR function with 2 logical tests inside IF function

    Exercise 4: AND function with 3 logical tests inside IF function

    Exercise 5: AND and OR Functions to create a "None" Logical Test

    Exercise 6: AND and OR Functions to create a complex Logical Test

    Exercise 1

    IF Function when there is only 1 Logical Test

    Hurdle to Extend Credit:

    Credit Rating 6 out of 10

    1 Condition Must Be Met To Extend Credit

    Customer Credit Rating Logical Test/Formula Extend Credit?

    Customer 1 4.0 FALSE

    Customer 2 5.5 yes

    Customer 3 6.0 yes

    Customer 4 3.0 FALSE

    Customer 5 6.2 yes

    Exercise 2

    IF Function with AND Function when there are 2 Logical TestsHurdle to Extend Credit:

    Credit Rating 6

    Sales $500,000.00

    2 Conditions/Criteria Must Be Met To Extend Credit

    Customer Credit Rating Last Years Sales Extend Credit?

    Customer 1 4.0 $1,043,462.00 NO CREDIT

    Customer 2 5.5 $792,157.00 NO CREDIT

    Customer 3 6.0 $831,594.00 EXTEND CREDIT

    Customer 4 3.0 $335,410.00 NO CREDIT

    Customer 5 6.2 $490,000.00 NO CREDIT

    Exercise 3

    IF Function with OR Function when there are 2 Logical Tests, but only 1 must be true

    Hurdle to Extend Credit:

    Credit Rating 6

    Sales $500,000.00

    1 Condition or the other or both ("At Least 1") Must Be Met To Extend Credit

  • 7/28/2019 AFB PG12 -14 Session 56

    4/12

    Customer Credit Rating Last Years Sales Extend Credit?

    Customer 1 4.0 $1,043,462.00 EXTEND CREDIT

    Customer 2 5.5 $792,157.00 EXTEND CREDIT

    Customer 3 6.0 $831,594.00 EXTEND CREDIT

    Customer 4 3.0 $335,410.00 NO CREDIT

    Customer 5 6.2 $490,000.00 EXTEND CREDIT

    Exercise 4

    IF Function with AND Function when there are 3 Logical Tests

    Hurdle to Extend Credit:

    Credit Rating 1 6 out of 10

    Sales $500,000.00 AND

    Credit Rating 2 2.5 out of 5 AND

    3 Conditions/Criteria Must Be Met To Extend Credit

    Customer Credit Rating 1 Credit Rating 2 Last Years Sales

    Customer 1 4.0 1.3 $1,043,462.00

    Customer 2 6.0 2.7 $792,157.00

    Customer 3 7.0 2.6 $831,594.00

    Customer 4 3.0 1.4 $335,410.00

    Customer 5 6.2 3.2 $490,000.00

    Exercise 5

    AND and OR Functions together to create "None" Logical Test

    Hurdle to Extend Credit:

    Credit Rating 1 6 out of 10

    Sales $500,000.00 AND

    Credit Rating 2 2.5 out of 5 AND

    3 Conditions/Criteria Must Be Met To Extend Credit

    Customer Credit Rating 1 Credit Rating 2 Last Years Sales

    Customer 1 4.0 1.3 $1,043,462.00

    Customer 2 6.0 2.7 $792,157.00

    Customer 3 7.0 2.6 $831,594.00

    Customer 4 3.0 1.4 $335,410.00

    Customer 5 6.2 3.2 $490,000.00

    Exercise 6

    IF Function with AND and OR FunctionHurdle to Extend Credit:

    Credit Rating 1 6 out of 10

    Sales $500,000.00

    Credit Rating 2 2.5 out of 5

    1 Conditions Must Be Met and at Least One Of The Other Two Tests Must B

    Customer Credit Rating 1 Credit Rating 2 Last Years Sales

  • 7/28/2019 AFB PG12 -14 Session 56

    5/12

    Customer 1 4.0 1.3 $1,043,462.00

    Customer 2 6.0 2.7 $792,157.00

    Customer 3 7.0 2.6 $831,594.00

    Customer 4 3.0 1.4 $335,410.00

    Customer 5 6.2 3.2 $490,000.00

  • 7/28/2019 AFB PG12 -14 Session 56

    6/12

    Test:

    Credit Rating >= 6

    Test:

    Credit Rating >= 6

    no AND

    no Sales >= 500000

    yes

    no

    no

    Test:

  • 7/28/2019 AFB PG12 -14 Session 56

    7/12

    Credit Rating >= 6

    OR

    Sales >= 500000

    Test:

    Credit Rating 1 >= 6

    Sales >= 500000

    Credit Rating 2 > 2.5

    Extend Credit?

    NO CREDIT

    EXTEND CREDIT

    EXTEND CREDIT

    NO CREDIT

    NO CREDIT

    Test:

    Credit Rating 1 >= 6

    Sales >= 500000

    Credit Rating 2 > 2.5

    No Test Passed

    Test:

    Credit Rating 1 >= 6

    AND

    Sales >= 500000

    OR

    Credit Rating 2 > 2.5

    Extend Credit?

  • 7/28/2019 AFB PG12 -14 Session 56

    8/12

    NO CREDIT

    EXTEND CREDIT

    EXTEND CREDIT

    NO CREDIT

    EXTEND CREDIT

  • 7/28/2019 AFB PG12 -14 Session 56

    9/12

    Exercise 1

    Lab A Lab B Which is Larger ?

    Sample 1 2 3 LAB B

    Sample 2 9 7 Lab A

    Sample 3 3 5 LAB BSample 4 7 4 Lab A

    Sample 5 8 8 EQUAL

    Sample 6 3 4 LAB B

    Sample 7 5 7 LAB B

    Sample 8 4 6 LAB B

    Sample 9 7 7 EQUAL

    Sample 10 0 2 LAB B

    Exercise 2

    Q.Publish the result of the students based on the following criterion

    Criterion:A student passes an examination if he scores greater than or equal to 70 else he is fail.

    Students Test Score Result

    Student 1 35 fail F F

    Student 2 67 fail D D

    Student 3 88 pass B B

    Student 4 70 pass C D

    Student 5 95 pass A A

    Exercise 3

    Q. Calculate the Grade of the above students based on the following criteria

    Test score GradeGreater than 89 A

    From 80 to 89 B

    From 70 to 79 C

    From 60 to 69 D

    Less than 60 F

    Exercise 4

    Invoice Total Due 7,123.26

    Invoice Due Date 5/19/2012

    Today 4/8/2013

    Days Invoice Over

    Due 324

    Late Fee 498.63

    Mr. Arvind purchased cement of value Rs. 7,123.26 from XYZ Co. on 19th Feb 2012. According

    to company's policy the payment should be made in 3 months time. If the client fails to do so,

    he is charged with interest based on the following interest rate chart. Calculate the total

    outstanding amount of Mr. Arvind as on today.

  • 7/28/2019 AFB PG12 -14 Session 56

    10/12

    Days Invoice

    Overdue Description

    nterest

    Rate Late

    Fee

    0 Over 0 0.00% 498.63

    10 Over 10 but less than 20 1.00%

    20 Over 20 but less than 30 2.00%

    30 Over 30 but less than 40 3.00%

    40 Over 40 but less than 50 4.00%

    50 Over 50 but less than 90 5.00%

    90 Over 90 but less than 120 6.00%

    120 Over 120 but less than 7.00%

  • 7/28/2019 AFB PG12 -14 Session 56

    11/12

  • 7/28/2019 AFB PG12 -14 Session 56

    12/12

    Name DOB

    Apurva Khurana Monday, October 02, 1989

    Tanvi Khurana Wednesday, September 18, 1985

    Supriya Batra Wednesday, July 20, 1983

    Ritika Raina Thursday, December 21, 1989