PHP-language, loops Teppo Räisänen Principal Lecturer Oulu University of Applied Sciences School of Business and Information Management

Slides:



Advertisements
Similar presentations
Write a function to calculate the cubic function: y = 4x 3 + 2x 2 –5x – 4 The function should return y for any given value of x. Question One #include.
Advertisements

Case study 1: Calculate the approximation of Pi
Development of Web Applications - Contents Teppo Räisänen Principal Lecturer Oulu University of Applied Sciences School of Business and Information Management.
Simple and Compound Interest
Compound Interest.
CONTINUOUSLY COMPOUNDED INTEREST FORMULA amount at the end Principal (amount at start) annual interest rate (as a decimal) time (in years)
PHP-language, files Teppo Räisänen Principal Lecturer Oulu University of Applied Sciences School of Business and Information Management
Thinking Mathematically Consumer Mathematics and Financial Management 8.2 Simple Interest.
Facebook apps Teppo Räisänen. Basic info screen View App Profile Page Submit to Search.
Facebook Applications and Marketing Teppo Räisänen
General Computer Science for Engineers CISC 106 Lecture 19 Dr. John Cavazos Computer and Information Sciences 04/06/2009.
Contemporary Engineering Economics, 4 th edition, © 2007 Debt Management Lecture No.13 Chapter 4 Contemporary Engineering Economics Copyright © 2006.
Colors – part 3 K1066BI – Graphical Design Teppo Räisänen
7-8 simple and compound interest
Slide 1 Copyright © 2015, 2011, 2008 Pearson Education, Inc. Percent and Problem Solving: Interest Section7.6.
OULU ADVANCED RESEARCH ON SOFTWARE AND INFORMATION SYSTEMS Teppo Räisänen | Oulu University of Applied Sciences Facebook programming Teppo Räisänen
Development of Web Applications - Introduction Teppo Räisänen Principal Lecturer Oulu University of Applied Sciences School of Business and Information.
User Interface design – Course Info Teppo Räisänen
Interest on Loans Section 6.8. Objectives Calculate simple interest Calculate compound interest Solve applications related to credit card payments.
20.4 Reducing Balance Loans. Reducing balance loans A reducing balance loan is a loan that attracts compound interest, but where regular payments are.
Interest and Discounts
Simple Interest Compound Interest. When we open a savings account, we are actually lending money to the bank or credit union. The bank or credit union.
CTC 475 Review Gradient Series –Find P given G –Find A given G Rules: 1.P occurs two periods before the first G 2.n equals the number of cash flows + 1.
Compound Interest. The interest is added to the principal and that amount becomes the principal for the next calculation of interest. OR.
Mathematical Studies for the IB Diploma Second Edition © Hodder & Stoughton Compound interest.
Teppo Räisänen School of Business and Information Management Oulu University of Applied Sciences.
Unit 8 – Personal Finance Compound Interest Formula.
Journal: Write an exponential growth equation using the natural base with a horizontal asymptote of y=-2.
Percent and Problem Solving: Interest Section 7.6.
Chapter 10: Compound Interest, Future Value, and Present Value  Find the future value and compound interest by compounding manually.  Find the future.
General info about the BelleViews usability testing Teppo Räisänen School of Business and Information Management.
PHP-language, conditional statements Teppo Räisänen Principal Lecturer Oulu University of Applied Sciences School of Business and Information Management.
PHP Teppo Räisänen LIIKE/OAMK PHP PHP is a programming language for making dynamic and interactive Web pages.
Compound Interest. What is Compound Interest? Interest is money paid for the use of money. It’s generally money that you get for putting your funds in.
Notes Over 3.5Interest Simple interest is found by multiplying the principal, the rate, and the time. Compound interest is the total amount earned each.
PHP-language Variables, assingment and arithmetic operations Teppo Räisänen Principal Lecturer Oulu University of Applied Sciences School of Business and.
PHP-language, sessions Teppo Räisänen Principal Lecturer Oulu University of Applied Sciences School of Business and Information Management
Find the amount after 7 years if $100 is invested at an interest rate of 13% per year if it is a. compounded annually b. compounded quarterly.
Bellringer Calculate the Simple Interest for #s 1 and 3 and the Total cost for #2. 1.$1800 at 3.2% for 4 years. 2. $17250 at 7.5% for 6 years. 3. $3,650.
What is Interest? Discuss with a partner for 2 minutes!
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. 7.6 Percent and Problem Solving: Interest.
For loop. Exercise 1 Write a program to have the user input three (3) numbers: (f)rom, (t)o, and (i)ncrement. Count from f to t in increments of i, inclusive.
Young kyung Lee.  Simple interest is calculated only on the principal amount, or on that portion of the principal amount that remains unpaid.
Interest Applications - To solve problems involving interest.
INTEREST & RISK OF RETURN Notes. WHAT IS INTEREST?  Interest is money earned on an investment OR the money you pay for borrowing someone else’s money.
PHP-language, database- programming Teppo Räisänen Oulu University of Applied Sciences School of Business and Information Management.
Simple and Compound Interest
Business Finance (MGT 232)
Chapter 5, section 2 Calculating interest.
PHP-language, loops Jouni Juntunen Oulu University of Applied Sciences
Topics discussed in this section:
Percent and Problem Solving: Interest
Introduction to Programming
©G Dear2008 – Not to be sold/Free to use
©G Dear2008 – Not to be sold/Free to use
CHAPTER TEN COMPOUND INTEREST.
Compound Interest.
Style guidelines Teppo Räisänen School of Information and Management
Future Value of an Investment
Some Common Issues: Iteration
Simple and Compound Interest Formulas and Problems
Chapter 5.2 Vocab.
Unit 3 Review (Calculator)
Introduction to Computer Science
Time Value of Money Magic! “Active Learning Tool”
Compounded and Continuous Interest
Compound Interest.
Calculate 9 x 81 = x 3 3 x 3 x 3 x 3 3 x 3 x 3 x 3 x 3 x 3 x =
CTC 475 Review Gradient Series Find P given G Find A given G Rules:
Presentation transcript:

PHP-language, loops Teppo Räisänen Principal Lecturer Oulu University of Applied Sciences School of Business and Information Management

Loops While For …

Example Print HTML-table using for

While initialization while (condition) { //one or more statemens incrementation }

Example Calculating compound interest using while <? $loan=100; $interest=10; $years=3; $i=0; while ($i < $years) { $loan=$loan+ ($loan / 100) * $interest; $i++; } print ”Total amount of loan is $loan”; ?>

For For (initialization;condition;increment) { //one or more statemens }

Example Calculating compound interest using for <? $loan=100; $interest=10; $years=3; for ($i=0;$i<$years;$i++); { $loan=$loan + ($loan / 100) * $interest; } print ”Total amount of loan is $loan”; ?>