Chapter 10 Object-Oriented Programming: Polymorphism.

Slides:



Advertisements
Similar presentations
What is the major reason people work? Love of your job? To sharpen your soft skills? To meet new and exciting people? NO – to make money!!! Focus: How.
Advertisements

Calculations In Everyday Contexts.
7–1 McQuaig Bille 1 College Accounting 10 th Edition McQuaig Bille Nobles © 2011 Cengage Learning PowerPoint presented by Douglas Cloud Professor Emeritus.
Wage Calculations.
Chapter 2. Multiplication Factor times Factor equals Product F x F = P 10 x 0.03 =.30 Division is the opposite process and can be used to check your answer.
Payroll Accounting Making Accounting Relevant Businesses issue payroll checks to their employees to compensate them for work performed. Making Accounting.
Calculations In Everyday Contexts.. Wage Rises Example 1. (a) The new annual wage. (b) The new monthly wage. Solution (a)The new annual wage = old wage.
Gross Earnings: Piecework and Commissions
Tax Vocabulary. Gross Pay The amount of money you earn each pay period.
Chapter 6 Payroll Section 2 Gross Earnings: Piecework and Commissions © 2012 Pearson Education, Inc. All rights reserved.
X © 2010 The McGraw-Hill Companies, Inc. All rights reserved.
 Love of your job? To sharpen your soft skills? To meet new and exciting people?  NO – to make money!!!  Focus: How to calculate different types of.
Calculating Gross Earnings with Differing Methods of Compensation.
Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Chapter 10 Employer Payroll Tax Reporting.
Payroll Computations, Records, and Payment
The Office Procedures and Technology Chapter 6 Processing and Understanding Financial Information Copyright 2003 by South-Western, a division of Thomson.
Percent and Problem Solving: Sales Tax, Commission, and Discount
1 Abstract Class There are some situations in which it is useful to define base classes that are never instantiated. Such classes are called abstract classes.
Gross Pay Chapter Hourly Pay Employees – People who work for others Employer – The person or company and employee works for. Hourly Rate - a certain.
Annual Wage / Salary How much a person is paid in a year Wages & Salaries 12 months in a year 52 weeks in a year.
Annual Wage / Salary How much a person is paid in a year Wages & Salaries 12 months in a year 52 weeks in a year.
Sample Problem Chapter 10 Determining social security withholding. The monthly salaries for December and the year-to-date earnings of the employees of.
Copyright 2014 © W. Seth Hunter ConsumerMath.org L4.7 Commission From wages to salary to commission; earning money comes in many different ways. The more.
Gross Earnings, Wages and Salaries Chapter 6: Payroll Section 6.1.
Unit 4 Determining Gross Earnings McGraw-Hill/Irwin Copyright © 2006 The McGraw-Hill Companies, Inc. All rights reserved.
Outline 1 Bilişim Enstitüsü ++ Bilişim Enstitüsü ++ Bilişim Enstitüsü ++ Bilişim Enstitüsü ++ Bilişim Enstitüsü ++ Bilişim Enstitüsü ++ Bilişim Enstitüsü.
GOALS BUSINESS MATH© Thomson/South-WesternLesson 1.1Slide 1 1.1Hourly Pay and Salary Calculate gross pay for hourly-rate employees Calculate gross pay.
Paying Bills Warm Up: What are some bills your parents pay monthly? What must a producer consider when setting a price for the product being sold?
Pay Periods and Hourly Rates
Payroll Accounting Making Accounting Relevant Businesses issue payroll checks to their employees to compensate them for work performed. Making Accounting.
Chapter 12 Payroll Accounting
Commission pp SECTION 1-6. SECTION MBA, Section 1- 6, Slide 2 of Section Objective Calculate: straight commission Determine: gross pay.
1 Earning Money - Contents 1.SalarySalary 2.WagesWages 3.CommissionCommission 4.RoyaltiesRoyalties 5.PieceworkPiecework 6.OvertimeOvertime 7.Addition &
M May 100% %0.50 1/21/ / 3 % /41/4 25% /31/ /51/5 20% 10% / 10 1% / 100 ÷2 ÷3 ÷4 ÷5 ÷10 ÷100.
Chapter 1 Gross Pay.
Ch 12: Payroll Accounting Ms. Alltucker Accounting II.
O O P Polymorphism Object Oriented Programming Prepared & Presented by: dr.Ismail Farahat Chapter 4.
Using Math in Consumer Credit and Payroll
WAGES AND SALARIES lc/pm1. 2 WAGES AND SALARIES It is important that employees are properly rewarded for the work they do. Employers’ ObjectivesEmployees’
Chapter 1 Gross Pay.
Jeopardy Q $100 Q $100 Q $100 Q $100 Q $100 Q $200 Q $200 Q $200
Commission pp SECTION. Copyright © Glencoe/McGraw-Hill MBA, Section 1- 6, Slide 2 of Section Objective Calculate: straight commission.
Getting Paid For Your Work
 How many work hours are in a week?  How many work weeks are in a year?  How many months are in a year? gross  What does gross mean in the business.
PAYROLL ACCOUNTING Chapter 12. Using a Payroll System  Payroll – list of the employees and the payments due to each for a pay period  Pay Period – the.
Visual Basic 2010 How to Program © by Pearson Education, Inc. All Rights Reserved.
Gross Earnings, Wages and Salaries Chapter 6: Payroll Section 6.1.
© 2014 Cengage Learning. All Rights Reserved. Learning Objectives © 2014 Cengage Learning. All Rights Reserved. LO1 Analyze a payroll transaction. LO2.
EARNED INCOME #1 WHERE DO PEOPLE RECEIVE MONEY?  Working  Investments  Government transfer payments.
Taxes & Spending Calculating Gross Earnings 4.01A – Explain taxes on income. “We make a living by what we get; we make a life by what we give.” Sir Winston.
Payroll Setup Chapter 6. PAGE REF #CHAPTER 6: Payroll Setup SLIDE # 2 2 Objectives Activate the payroll feature and configure payroll preferences Set.
Sales and Income Tax. Sales tax – a tax that is added to the cost of goods or services based on the percentage of the cost. Income – wages earned from.
CALCULATING GROSS EARNINGS WITH DIFFERING METHODS OF COMPENSATION.
Calculating & Preparing Payrolls. Federal and state laws require all businesses to keep accurate payroll records. Employers are expected to: Calculate.
Tax project Answer. 1 st Quarter BAS 1 July 2008 to 30 th September Determine which income Belongs to the quarter.
Payroll Computations, Records, and Payment Section 2: Calculating Earnings and Taxes Chapter 10 Section Objectives 2.Compute gross earnings of.
Payroll Accounting Appendix F Learning Objectives
Accounting for Payroll, Payroll Taxes and Journal Entries
Earning Income How Can I Get Paid?.
JOE WORKED 40 HOURS THIS WEEK. HE EARNS $15.75 PER HOUR
Payroll Accounting $ $ $ $ Making Accounting Relevant Chapter 12
Identify the steps of Selling.
Chapter 20 THE PAYROLL.
© 2014 Cengage Learning. All Rights Reserved.
© 2014 Cengage Learning. All Rights Reserved.
Furnishings/Fixtures (five required)
Payroll Accounting $ $ $ $ Making Accounting Relevant Chapter 12
Chapter 5 Payroll.
CHAPTER 12 ACCOUNTING FOR A PAYROLL SYSTEM
Presentation transcript:

Chapter 10 Object-Oriented Programming: Polymorphism

Problem Description An employee is either a salaried employee or a hourly employee or a commission employee A base-salaried commission employee is a commission employee with a base salary Every employee has a first name, a last name, and a social security number In addition to the info above –The salaried employee has a weekly salary –The hourly employee has a wage per hour and number of hours worked –The commission employee has a commission rate and gross weekly sales –The base-salaried commission employee has a base salary, a commission rate, and gross weekly sales Develop a method to calculate the earnings for all kinds of employees

Example of a Salaried Employee First name: John Last name: Smith SSN: Weekly salary: 800 USD  Earnings = 800 USD

Example of a Hourly Employee First name: Karen Last name: Price SSN: Wage per hour: USD If the number of hours worked is 40, the earnings will be  40 = 670 USD If the number of hours worked is 45, the earnings will be   (45 – 40)  1.5 = = USD

Example of a Commission Employee First name: Sue Last name: Jones SSN: Gross weekly sales: 10,000 USD Commission rate:.06  Earnings = 600 USD If the gross weekly sales is 500 USD and the commission rate is.1, the earnings will be 50 USD

Example of a Base Salaried Commission Employee First name: Bob Last name: Lewis SSN: Commission rate:.04 Base salary: 300 USD If the gross weekly sales is 5,000 USD, the earnings will be 500 USD

Case Study: Creating and Using Interfaces

Problem Description Develop a simple invoice that contains billing information for only one kind of part Billing information includes –The part number –The part description –The quantity –The price per item The invoice object should be able to calculate the amount of payment

Examples Example 1 –Part number: –Part description: Seat –Quantity: 2 –Price per item:  Payment amount = Example 2 –Part number: –Part description: Tire –Quantity: 4 –Price per item:  Payment amount = 319.8

Question Q: What both classes Invoice and Employee have in common? A: Classes Invoice and Employee both represent things for which the company must be able to calculate a payment amount –But the way of calculation is different  We can use an interface called Payable to combine the two designs into one