Website Development - PowerPoint PPT Presentation

1 / 9
About This Presentation
Title:

Website Development

Description:

Incorporate looping into scripts by using the while construct. Some ... Control structures implement logic and are what make computers automated processors ... – PowerPoint PPT presentation

Number of Views:37
Avg rating:3.0/5.0
Slides: 10
Provided by: Econ82
Category:

less

Transcript and Presenter's Notes

Title: Website Development


1
Website Development Management
MIS 3353 -- Fall 2003
  • JavaScript Applying the Concepts

Instructor John Seydel, Ph.D.
2
Student Objectives
  • List the three types of programming control
    structures
  • Use the if and if / else constructs to build
    control logic into scripts
  • Incorporate looping into scripts by using the
    while construct

3
Some Administrative Things
  • Problems with exercises . . . ?
  • Guestbook
  • Calculator
  • Projects from Chapter 3
  • Other . . . ?
  • Website grading . . .

4
Control Structures
  • Take us beyond simple sequential processing
  • Control structures implement logic and are what
    make computers automated processors
  • Types of control structures
  • Selection
  • if
  • if / else
  • if / else if
  • switch / case
  • Looping
  • while
  • do while
  • For
  • Also jumping (i.e., calling subprograms)

5
Working with the Basic if Construct
  • Syntax
  • if (condition)
  • statement 1
  • statement 2
  • . . .
  • Demonstration Calc1d

6
A Slight Enhancement else
  • Syntax for the if / else construct
  • if (condition)
  • statement 1
  • . . .
  • else
  • other statement 1
  • . . .
  • Demonstration Calc1e

7
Another Enhancement else if
  • Syntax for the if / else if / else construct
  • if (condition1)
  • statement 1
  • . . .
  • else if (condition2)
  • other statement 1
  • . . .
  • else
  • another statement 1
  • . . .
  • Demonstration Calc1x

8
Repetition Using while Loops
  • Syntax for while loops
  • while (condition)
  • statement 1
  • statement 2
  • . . .
  • (incorporate something that will eventually
    modify the condition)
  • Demonstration exam1proc_1.htm

9
Summary of Objectives
  • List the three types of programming control
    structures
  • Use the if and if / else constructs to build
    control logic into scripts
  • Incorporate looping into scripts by using the
    while construct
Write a Comment
User Comments (0)
About PowerShow.com