1 ASP-Code Examples if....then....else...... end if for..............................next do while.................... loop database response.write “ “

Slides:



Advertisements
Similar presentations
5.4 Complex Numbers (p. 272).
Advertisements

Scientific Notation Chemistry.
Rational Numbers and Opposites Enter the fraction,, as a quotient, and choose to have your answer displayed as a fraction by selecting ► FRAC, option 1,
INTEGERS Integers include: the counting numbers….
Unit one Adding & Subtracting Integers. 1 st ) Adding two positive integers Find the result then represent it on the number line = *
HIGH SCHOOL MATH FACTORING. Ask Yourself the following questions… FACTORINGFACTORING 1Is there a common factor? Example: 6x 2 + 8x = 2x 1. What is the.
Purpose: To Solve Word Problems using two variables instead of one. Homework: p ALL.
1 Today: Introduction to ASP- Part 1 Explain the client/server architecture Explain Web-based client/server applications Understand the essentials of Active.
1 Active Server Pages Active Server Pages (ASPs) are Web pages ASP = server-side scripts + HTML The appearance of an Active Server Page depends on who.
POSITIVE AND NEGATIVE NUMBERS
Adding Integers. Adding Integers with the Same Sign Add the absolute values. The sum will have the same sign as the addends. Example 1 Find –2 + (-3)
Positive and Negative Numbers
Adding and Subtracting Decimals. Essential Question: How do I add and subtract decimals? Always line up decimals Add and subtract like you always do Bring.
ALGEBRA 1 Operations with Integers
ADDING INTEGERS Positive + Positive = Positive Positive + Positive = Positive ( +3) + (+2) = +5 ( +3) + (+2) = +5 When a number is positive, you do not.
Rules of Integers. Positive numbers are numbers that are above zero. Negative numbers are numbers below zero.
Addition and Subtraction of Integers
Drill #22* Find each sum or difference:
Chapter 4 Negative Numbers. Learning Objectives Order numbers Subtracting a larger number from a smaller number Adding negative numbers Subtracting negative.
Objective How to solve Integer problems
7-1 Chapter 7.  Basic Arithmetic Verbs  Options Available with Arithmetic Verbs  COMPUTE Statement  Signed Numbers in Arithmetic Operations  Intrinsic.
Expressions So far, we have seen fairly simple expressions. For example, x = 4; z = z - y; if(x%4 == 0) However, expressions can be much more complex.
 Lets Review Integers (you do not need to write this part down)
Warm-Up Complete each statement with. 1. −9 −2 2.−80 −81 Find the value of each expression. 3.− −6 + (−8) 5.− −5 + (−15) + (−10)
Addition and Subtraction of Integers Lead by:, Chris Killeen, Gina Sanchez, Alicia Crowe.
Special Cases of Factoring Chapter 5.5 Perfect Square Trinomials a 2 + 2ab + b 2 (a + b) 2 = a 2 – 2ab + b 2 (a – b) 2 =
Regression Lines. Today’s Aim: To learn the method for calculating the most accurate Line of Best Fit for a set of data.
Adding and Subtracting Signed Integers
ASP-5-1 ASP Control Structures Colorado Technical University IT420 Tim Peterson.
Chapter 6.  Control Structures are statements that are used to perform repetitive tasks and to make decisions within a program. Loop repeats a sequence.
Programming, an introduction to Pascal
Adding, Subtracting, Multiplying, and Dividing Real Numbers.
Chapter 7 Low-Level Programming Languages. 2 Features in Pep/7 Figure 7.1 Pep/7’s architecture.
CSCI-100 Introduction to Computing
2.3 Adding Integers 1 Medina.  Negative number – a less than zero  Positive number – a greater than zero. 2Medina.
Square Roots/Addition
Special Cases of Factoring Chapter Check to see if there is a GCF. 2. Write each term as a square. 3. Write those values that are squared as the.
1-7 Adding and Subtracting Integers Miss Tilton. 1-7 Adding Integers zero  Adding zero does not change an integer :  Zero property  Examples:  – 12.
For…Next Loops, Checked List Boxes, and Combo Boxes Chapter 5.
int num = 22; if (num > 0) if (num % 5 == 0) System.out.println(num); else System.out.println(num + “ is negative”);
+ Subtracting Integers on a Number Line. + How to subtract integers on a number line This will be similar to adding integers on a number line, but instead.
CHAPTER 4 Negative Numbers. ADDITION AND SUBTRACTION USING NEGATIVE NUMBERS A number line is very useful when you have to do additions or subtractions.
Subtracting Integers I Love Numbers!!!. Quick Review of Adding Integers Adding Rule #1 – If the signs are the same, add as you normally do. – Keep the.
Reverse Subtraction Objectives:  do a subtract by adding  check your answer by adding.
Powerpoint in the Primary Maths Classroom … slides to attempt.
I. Adding Two Positive Integers (Regular Addition) 1.) = 2.) = 3.) = 4.) = 1-7 Adding Integers There are three parts to today's.
Chapter 10, Part 2 Diamond Problems Factoring 4/13/20101Medina.
1’S COMPLEMENT REPRESENTATION 1’s complement of a number (binary) is obtained by changing all 1’s to 0 and all 0’s to 1. If one of these numbers is positive.
Everyday Math Algorithms
How can I subtract by using addition? Isn’t addition the opposite of subtraction?
1.5 Adding Integers. Adding Integers! When adding two positive numbers, Start at 5 Move to the right 7 spaces Answer : 12.
Adding Integers. Using Two Coloured Counters We can model integer addition with tiles. Represent -2 with the fewest number of tiles Represent +5 with.
6 – 3 Adding, Subtracting and Multiplying Polynomials Day 1 Objective: Add, subtract, and multiply polynomials.
Subtracting Integers I Love Numbers!!!.
Compensation.
Consecutive Integers: Numbers are one apart
ALGORITHM BASICS- Part 3
Algebraic Expressions, Equations, and Symbols
Hundred Dollar Questions
Objective - To add and subtract decimals.
Subtracting Real Numbers
Algorithms for Integer Arithmetic
Word Problems Numerical Solutions
Lecture 2 מבוא מורחב.
Adding and Subtracting Integers
Lecture 2 מבוא מורחב.
FUN WITH BOOLEAN OPERATORS
Control Structures.
Presentation transcript:

1 ASP-Code Examples if....then....else end if for next do while loop database response.write “ “ & “ “ & i htmlIETuna Tuna Tuna Tuna response.write “ Tuna “ typeMismatch

2 response.write response.write “ Tuna “ Handling Error: 1 st way: Do not use “ “ in HTML! But;  face = lucida ? <% response.write %> ? 2 nd way: use ‘ ‘ instead of “ “ Examples: Example 1:Adding 2 numbers <% num1 = 40 num2 = 30 response.write num1 + num2 %>

3 response.write Example 2:finding y <% num1 = 10 num2 = 20 sq1 = num1 * num1 sq2 = num2 * num2 sum = num1 + num2 response.write sq2 &","& sq1 & "," & sum Example 3:finding the square of 2 numbers and the addition of their square

4 response.write & if..then..else..end if Example 4:VAT included Price 0 THEN response.write num &" "& "is a positive number.“ ELSE response.write num &" "& "is a negative number.“ END IF %> Example 5:positive or negative?

5 response.write & if..then..else..end if Example 6: If a number less than 10, output it's square otherwise the number only. 10 THEN sq = num * num response.write sq ELSE response.write num END IF %> num2 THEN num = num1 - num2 ELSE num = num2 - num1 END IF Response.Write num %> Example 7: Subtract the smaller from the larger

6 response.write & if..then..else..end if Example 8: SNG room 100$ others 150$> Example 9: PASS, FAIL = 50 THEN Response.Write "PASS“ ELSE Response.Write "FAIL“ END IF %>