IF Function Decision: Action based on condition. Examples SF State Tuition calculation: –http://www.sfsu.edu/~bulletin/current/fee.htmhttp://www.sfsu.edu/~bulletin/current/fee.htm.

Slides:



Advertisements
Similar presentations
Earning an Income PF-L1 Objectives: Perform basic calculations relating to income Learning Outcome B-1.
Advertisements

If Function Determine action based on condition. Examples Simple condition: –If total sales exceeds $300 then applies 5% discount; otherwise, no discount.
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.
Imperative Payroll Calculations David Diaz 6/19/2014.
Chapter Seven PAYROLL AND INCOME TAX Copyright © 2014 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill/Irwin.
Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
Chapter 8 Income and Taxes.
Copyright © 2008 Pearson Education Canada 1-1 Chapter 1 Review of Arithmetic Contemporary Business Mathematics with Canadian Applications Eighth Edition.
Tax Preparation. Federal Income Tax Structure  Federal and State income taxes are progressive tax  The higher your income, the greater percentage is.
Paying/Filing Income Tax. Two Things You Must Do In Life Die and pay taxes Tax system relies on voluntary compliance IRS (Internal Revenue Service)
Nested IF and Complex Condition. Nested IF Example: –Rules to determine bonus: JobCode = 1, Bonus=500 JobCode = 2, Bonus = 700 JobCode = 3, Bonus = 1000.
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.
©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Chapter 1 Introduction to Taxation, the Income Tax Formula, and Form 1040EZ “Taxes, after all, are.
Tax Preparation Financial Literacy.
Chapter 29 Price Planning. What is Price? Price – is the value of money placed on a good or a service. The seller’s objective is to set a price high enough.
Business Math Assignment Press F5 to begin to playing this slide show.
Business Accounting Chapter 12. Importance of Payroll Records Required by law – keep accurate payroll records – report employee earnings – pay payroll.
CHAPTER TWENTY SIX PAYROLL PROCEDURES McGraw-Hill/Irwin Accounting Fundamentals, 7/e © 2006 The McGraw-Hill Companies, Inc., All Rights Reserved
CENTURY 21 ACCOUNTING © 2009 South-Western, Cengage Learning LESSON 12-1 Preparing Payroll Time Cards.
TAXES AND SPENDING Obj. 4.01: Explain taxes on income.
Chapter 5 Spend Wisely.
Earning an Income Review. Hours worked Joe starts work at 2:15 PM, and he gets off work at 6:20 PM. He has no break. How long did he work? – 2:15 to 6:15.
Work with Data and Decision Structure. Slide 2 Note: String and Date are classes.
Chapter 8 Income and Taxes  Objectives:  Types of income  Regulations affecting pay  Examples of benefits  Employment classifications and effect on.
ISA-B.  Open chap2_ho1_payroll.xlsx and save it as chap2_ho1_payroll_solution.xlsx  Drag the border between two column headings.  Double-click on the.
Payroll Accounting Making Accounting Relevant Businesses issue payroll checks to their employees to compensate them for work performed. Making Accounting.
Capital Budgeting Decisions
Entrepreneurship.  A summary of a company’s profit/loss over a specific time period.  It shows the income earned and expenses paid for a business.
Spreadsheets Spreadsheets. What is a spreadsheet? A spreadsheet is a program used for performing calculations on tables of numbers. It can also often.
Decision Structure - 1 ISYS 350. Decision: Action based on condition Examples Simple condition: – If total sales exceeds $300 then applies 5% discount;
Sales Tax and Discount. Sales tax is an additional amount of money charged on items that people buy. The total cost of an item is the regular price plus.
BUS250 Business Mathematics Seminar 5. Try these examples Find the gross earnings for: Carolyn, who earns $15,000 a year and is paid weekly. $ Martha,
Expression and Decision Structure ISYS 350. Performing Calculations Basic calculations such as arithmetic calculation can be performed by math operators.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 2 I Am Not a Control Freak!
Payroll Accounting Making Accounting Relevant Businesses issue payroll checks to their employees to compensate them for work performed. Making Accounting.
Payroll Accounting Making Accounting Relevant Businesses issue payroll checks to their employees to compensate them for work performed. Making Accounting.
Using Math in Consumer Credit and Payroll
Decisions Action based on condition. Examples Simple condition: –If total sales exceeds $300 then applies 5% discount; otherwise, no discount. More than.
Financial Terms Important Terms for Life and for Spreadsheets.
Basic Goals of Payroll System  Prepare and issue payroll checks  Produce records for accounting purposes and reporting to government and management.
In your notebook…  Imagine you have taken a job at the mall earning $9.00 per hour. Over the course of two weeks you work a total of 20 hours. Estimate.
Tax Unit Study Guide for YTP 12 Semester 2 Final Exam.
Income Tax Arithmetic. Income Tax The table shows the tax rates in force at the present time. Rate of TaxTaxable Income Lower rate 20%£1  £2 500 Basic.
CHAPTER 12 FINANCIAL MANAGEMENT Financial Planning FINANCIAL PLANNING Ongoing Operations Revenue – all income that a business receives over a period.
Decision Structure - 1 ISYS 350. Decision: Action based on condition Examples Simple condition: – If total sales exceeds $300 then applies 5% discount;
Functions BUS 782. What are functions? Functions are prewritten formulas. We use functions to perform calculations. Enclose arguments within parentheses.
Chapter 2 Net Income (page 114)
1 Earning money Cambridge Preliminary General Mathematics.
Figuring Your Paycheck Life Choices _____. Introduction Main reason most of us work is to _____ Paychecks are used to pay for _____ Important to know.
SHOW ME The MONEY Just how much do you know about how people get paid? UNIT 3 TAXES AND BANKING.
Java Project 3 In Class Practice. IF Statements Create a simple program that allows the user to enter a test score as an integer. If the test score is.
IF Function Decision: Action based on condition. Examples SF State Tuition calculation: –
CIS 115 All Exercises Devry University (Devry) FOR MORE CLASSES VISIT CIS 115 All Exercises Devry University.
ANALYSIS AND ALGORITHM DESIGN - III
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.
Decision Structure - 1 ISYS 350.
CIS 115 Possible Is Everything/snaptutorial.com
Decision Structure - 1 ISYS 350.
Work with Data and Decision Structure
Decision Structures ISYS 350.
Spreadsheet Review.
Decision Structure - 1 ISYS 350.
Decision: Action based on condition
Functions BUS 782.
Decision Structure - 1 ISYS 350.
Logical tests.
Logical tests.
Fiscal Literacy.
Presentation transcript:

IF Function Decision: Action based on condition

Examples SF State Tuition calculation: – –Simple condition PG&E electric charges: – ges/ ges/ –More than one 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 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.

IF Function =IF(condition, ValueIfTrue,ValueIfFalse) Example: –Tuition: If total units <= 12, then tuition = 1200 »Otherwise, tuition = per additional unit In Cell C2: IF(B2<=12, 1200, *(b2-12))

Example: Compute weekly wage. Overtime hours are paid 50% more than the regular pay. In Cell D2: If(C2<=40, B2*C2, B2* *B2*(C2-40))

Example: Tax rate is based on married status: –Single: 15% –Married: 10% –In D5: If(B5=“S”,$C$1*C5, $C$2*C5)

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

Exercises 1. The average of two exams is calculated by this rule: 60% * higher score + 40% * lower score. 2. An Internet service provider offers a service plan that charges customer based on the following rules: 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), 25 cents per KH –All KH over 300, 30 cents per KH In C2: If(B2<=100,.2*B2,If(B2<=300,.2* *(B2- 100),.2* *200+.3*(B2-300))

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

Multiple Spreadsheets: How to reference a cell/range in another spreadsheet? SpreadsheetName!Cell –Example: Reference cell C5 in a spreadsheet named Revenue: Revenue!C5 SpreadsheetName!Range –Example: Reference range C5:C10 in a spreadsheet named Revenue: Revenue!C5:C10