If Function Determine action based on condition. Examples Simple condition: –If total sales exceeds $300 then applies 5% discount; otherwise, no discount.

Slides:



Advertisements
Similar presentations
1 Representing Small Business Owners W hen Chapter 11 is not an Option It Aint No Day at the Beach!! © 2009 All rights reserved including movie rights.
Advertisements

Work with Data and Decision Structure. Murach’s Java SE 6, C3© 2007, Mike Murach & Associates, Inc. Slide 2.
IF Function Decision: Action based on condition. Examples SF State Tuition calculation: – Fees_and_Expenses.
©Brooks/Cole, 2001 Chapter 5 Selection-- Making Decision.
Press Ctrl-A ©G Dear 2009 – Not to be sold/Free to use Calculating Tax Stage 6 - Year 11 General Mathematics Preliminary.
VB.Net Introduction - 2. Counter Example: Keep track the number of times a user clicks a button Need to declare a variable: Dim Counter As Integer Need.
IF Function Decision: Action based on condition. Examples SF State Tuition calculation: –
8/22/2015NJ Training TY State Income Tax Refund & Alimony Module NJ
Chapter 36 Employee Benefit & Retirement Planning Incentive Stock Options (ISOs) Copyright 2011, The National Underwriter Company1 A tax-favored plan for.
Work with Data and Decision Structure. Slide 2 Note: String and Date are classes.
© 2012 McGrawHill Ryerson Ltd.Chapter 9 -1  In Canada, taxable income is based on a deduction called Capital Cost Allowance (CCA): Taxable Income = Revenues.
Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Reporting and Interpreting Cost of Goods Sold and Inventory Chapter 7.
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
Sales Tax, Discounts, and Commissions Section 6.7.
3-7 Percent of Change Objective: Students find percents of increase and decrease and solve problems involving percents of change. S. Calahan 2008.
Selection Structure If... Then.. Else Case. Selection Structure Use to make a decision or comparison and then, based on the result of that decision or.
Chapter 21 Variable Costing
2 pt 3 pt 4 pt 5pt 1 pt 2pt 3 pt 4pt 5 pt 1 pt 2 pt 3 pt 4pt 5 pt 1pt Sale Price? What is the % of the number? Sale Price + tax?
Decision Structure - 1 ISYS 350. Decision: Action based on condition Examples Simple condition: – If total sales exceeds $300 then applies 5% discount;
Expression and Decision Structure ISYS 350. Performing Calculations Basic calculations such as arithmetic calculation can be performed by math operators.
KARNES COUNTY 2014 TAX RATE PUBLIC HEARING WILL WE INVEST IN OUR COUNTY?
1 Income Statement. 1.Buying a horse (for me!) 2.How much did I pay? 3.What do I have invested in it? 4.What to sell it for? Simple Transaction.
Programming Fundamentals1 Chapter 4 SELECTION STRUCTURES.
Decisions Action based on condition. Examples Simple condition: –If total sales exceeds $300 then applies 5% discount; otherwise, no discount. More than.
Mr. Sands 6.3.  1.Price x sales tax rate = sales tax --Instead of subtracting like discount you add to the price. 2.Price + sales tax = total cost 3.Discount.
Lesson 3-7 Percent of Change. Definitions Percent of change- When an increase or decrease is expressed as a percent, the percent is a percent of change.
Decision Structure - 1 ISYS 350. Decision: Action based on condition Examples Simple condition: – If total sales exceeds $300 then applies 5% discount;
State Income Tax Refund & Alimony LEVEL 2 TOPIC C Income - State Income Tax Refund and Alimony v1.0 VO.ppt 11/30/20101NJ Training TY2010 v1.0.
Functions BUS 782. What are functions? Functions are prewritten formulas. We use functions to perform calculations. Enclose arguments within parentheses.
IF Function Decision: Action based on condition. Examples SF State Tuition calculation: –
SELECTION CONTROL STRUCTURE Prepared by: Careene McCallum-Rodney.
Income Taxes and the Net Present Value Method
Decision Structure - 2 ISYS 350.
Decision Structure ISYS 350.
Exercise : Write a program that print the final price of purchase at a store where everything costs exactly one dollar. Ask for the number of items purchased.
Generic Note Receivable Entries in T Accounts
8th Grade Math Chapter 6 Review
Comparison Operators Relational Operators.
How tax is calculated on your Taxable income Example Your gross income = $126,000 Your deduction = $ 6,000 Taxable income = $120,000.
About the Author. Creating an Apartment Feasibility Model For Park Cities By Terry Asante.
How I Learned to Stop Worrying and Love the US Government
Tax Shelter & Cash Flow Benefits: 5-Year 200% Declining Balance Depreciation for a $100 million “wind farm” Deduction from Otherwise Taxable Income Reduction.
Brookings Institution and The International Tax Policy Forum
Decision Structure - 2 ISYS 350.
Decision Structure - 1 ISYS 350.
2-7 Notes for Algebra 1 Percent of Change.
Marriage Tax or Subsidy
Selection-- Making Decision
Work with Data and Decision Structure
Counting & Comparing Money 2 $ $ $ $.
Counting & Comparing Money $ $ $ $.
State Income Tax Refund & Alimony
Decision Structures ISYS 350.
Spreadsheet Review.
The word percent means:
Сэдэв: Нэмэгдсэн өртгийн албан татвар
Decision: Action based on condition
Taxes and Fiscal Policy
Functions BUS 782.
Notes Over 1.7 Solving Inequalities
SIMPLE INEQUALITIES.
Every number has its place!
Notes Over 1.7 Solving Inequalities
НЭМЭГДСЭН ӨРТГИЙН АЛБАН ТАТВАР БА ТҮҮНИЙ ТӨРЛҮҮД
7.5 Write and Graph Inequalities
Do Now Write out the three branches of Minnesota state government.
Tax Lesson 15 YOURLOGO Start Lecture
Don't say you don't know- think about it
Inequalities x > a Means x is greater than a
This is your total income tax payable. Write this down.
Presentation transcript:

If Function Determine action based on condition

Examples Simple condition: –If total sales exceeds $300 then applies 5% discount; otherwise, no discount. More than one condition: Taxable Income < =3000 no tax 3000 < taxable income <= % tax < taxable income <= % tax Taxable income > % tax Complex condition: –If an applicant’s GPA > 3.0 and SAT > 1200: admitted

Comparison Less than: < Less than or equal: <= Greater than: > Greater than or equal: >= Equal: = Not equal: <> –At least: >= –At most: <= –No more than: <= –No less than: >= A comparison returns True/False. –Example:

IF Function =IF(condition, ValueIfTrue,ValueIfFalse) Example: –Tuition: If total units <= 12, then tuition = 1200 »Otherwise, tuition = per additional unit

Example: Tax rate is based on married status: –Single: 15% –Married: 10%

Example: Compute weekly wage. Overtime hours are paid 50% more than the regular pay.

Example: A restaurant charges service fee based on this rule: 15% of the check amount with a minimum of $2.

Exercises 1. How to determine an integer entered in a cell is an even number or an odd number? 2. The average of two exams is calculated by this rule: 60% * higher score + 40% * lower score. 3. An Internet service provider offers a service plan that charges customer based on this rule: The first 20 hours: $10 Each additional hour: $1.5

Nested IF

Example: –Rules to determine bonus: JobCode = 1, Bonus=500 JobCode = 2, Bonus = 700 JobCode = 3, Bonus = 1000 –In C2: If(B2=1, 500, If(B2=2, 700, 1000))

JobCode= 1 Or <> =1 JobCode=2 Or <>

Example Electric Company charges customers based on KiloWatt-Hour used. The rules are: –First 100 KH,20 cents per KH –Each of the next 200 KH (up to 300 KH), (100 < KH <= 300), 30 cents per KH –All KH over 300, 40 cents per KH

What if we have more than 3 conditions Example: Bonus –JobCode = 1, Bonus = 500 –JobCode = 2, Bonus = 600 –JobCode = 3, Bonus = 700 –JobCode = 4, Bonus = 800 –JobCode = 5, Bonus = 1000 –… Other functions: –Table lookup

Example State University calculates students tuition based on the following rules: –State residents: Total units taken <=12, tuition = 1200 Total units taken > 12, tuition = per additional unit. –Non residents: Total units taken <= 9, tuition = 3000 Total units taken > 9, tuition = per additional unit.

Resident or Not Units <= 12 or Not Units <= 9 or Not