Spread Knowledge

Virtual University of Pakistan Video Lectures, Handouts, PPT, Quizzes, Assignments & Papers

CS101 - Introduction to Computing - Lecture Handout 35

User Rating:  / 0

Related Content: CS101 - VU Lectures, Handouts, PPT Slides, Assignments, Quizzes, Papers & Books of Introduction to Computing

Mathematical Methods

(Web Development Lecture 12)

During the last lecture we discussed Event handling:

We looked at the concept of event-driven programs and event handlers
What are they?
What do they do?
How do we benefit from them?
We wrote simple programs to demonstrate the capabilities of a few event handlers
What is Event Handling?
Capturing events and responding to them
The system sends events to the program and the program responds to them as they arrive
Events can include things a user does - like clicking the mouse - or things that the system itself does - like updating the clock. Today we will exclusively focus on user-events.

Event Driven Programs:

Programs that can capture and respond to events are called ‘event-driven programs’ JavaScript was specifically designed for writing such programs

Read more: CS101 - Introduction to Computing - Lecture Handout 35

CS101 - Introduction to Computing - Lecture Handout 36

User Rating:  / 0

Related Content: CS101 - VU Lectures, Handouts, PPT Slides, Assignments, Quizzes, Papers & Books of Introduction to Computing

Data Management

During the last lecture …

(Intelligent Systems)

We looked at the distinguishing features of intelligent systems w.r.t. other software systems
We looked at the role of intelligent systems in scientific, business, consumer and other applications
We discussed several techniques for designing intelligent systems

Artificial) Intelligent Systems:

SW programs or SW/HW systems designed to perform complex tasks employing strategies that mimic some aspect of human thought

Not a Suitable Hammer for All Nails!

if the nature of computations required in a task is not well understood or there are too many exceptions to the rules
or known algorithms are too complex or inefficient then AI has the potential of offering an acceptable solution

Selected Applications:

Games: Chess, SimCity
Image recognition
Medical diagnosis
Robots
Business intelligence

Read more: CS101 - Introduction to Computing - Lecture Handout 36

CS101 - Introduction to Computing - Lecture Handout 37

User Rating:  / 0

Related Content: CS101 - VU Lectures, Handouts, PPT Slides, Assignments, Quizzes, Papers & Books of Introduction to Computing

Database Software

Focus of the last Lecture was on Data Management

  • First of a two-lecture sequence
  • We became familiar with the issues and problems related to data-intensive computing
  • We also found out about flat-file and tabular storage

Data Management

  • Keeping track of a few dozen data items is straight forward
  • However, dealing with situations that involve significant number of data items, requires more attention to the data handling process
  • Dealing with millions - even billions - of inter-related data items requires even more careful thought

Issues in Data Management

Data Entry

CS101 - Introduction to Computing - Lecture Handout 38

User Rating:  / 0

Related Content: CS101 - VU Lectures, Handouts, PPT Slides, Assignments, Quizzes, Papers & Books of Introduction to Computing

String Manipulations

(Web Development Lecture 13)

During the last lecture we discussed Mathematical Methods

  • We looked at the properties and methods of JavaScript’s Math object
  • We produced solutions for simple problems using several methods of the Math object

Problems & Solutions

  • JavaScript doesn’t support drawing of graphics
  • However, crude graphics can be put together with the help of various text characters or tables
  • One cannot write a character at a random location on the screen using JavaScript
  • Instead, the graph has to be drawn from top to bottom, one row at a time – just like when regular text is written to a document

Mathematical Functions in JavaScript

  • In addition to the simple arithmetic operations (e.g. +, *, etc.) JavaScript supports several advanced mathematical operations as well
  • Notationaly, these functions are accessed by referring to various methods of the Math object
  • Moreover, this object also contains several useful mathematical constants as its properties
  • This object has no use, but of a placeholder

  • Read more: CS101 - Introduction to Computing - Lecture Handout 38

Page 1 of 152