Thursday 13 October 2016

Chapter 9 Networks and Communications 
September 20,2016. Tuesday

All chapters are now completed

Comunications 

Digital communication is the process in which two or more computers  or devices transfer data, instructions and information.

•Computer communications describes a process in which two or more  computers or devices transfer data, instructions, and information 
 -Sending device 
 -Communications channel 
 -Receiving device 

Uses of Computer Communications
Types of Uses of Computer Communications
-Blogs, Chat rooms, E-mail, Fax, FTP, Instant messaging, Internet 
  , Newsgroups, RSS, Video conferencing, VolP, Web, Web 2.0, Web         folders and Wikis 
Text messaging (SMS) allows users to send and receive short text  messages on a phone or other mobile device or computer.
Picture messaging allows users to send pictures and sound files.
Video messaging allows users to send short video clips.
Wireless instant messaging allows wireless users to exchange real-  time messages with one or more other users.
Wireless internet access point allow people to connect wirelessly to  the Internet from home, work, school and in many public locations.

Users can send and receive wireless messages using wireless  messaging  services 

Text messaging(SMS) allows users to send and receive short text  messages on a phone or other mobile device or computer 
Picture messaging allows users to send pictures and sound files 
Video messaging allows users to send short video clips 
•Wireless instant messaging allows wireless users to exchange real-time  messages with one or more other users
Wireless Internet access points allow people to connect wirelessly to  the Internet from home, work, school, and in many public locations

A cybercafé is a coffeehouse, restaurant, or other location that  provides personal computers with Internet access to its customers 

•A global positioning system (GPS) is a navigation system that consists  of  one or more earth-based receivers that accept and analyze signals  sent by satellites in order to determine the GPS receiver's geographic  location 
•GPS receivers are:
 -Built into many mobile devices 
 -Available as a handheld device 
 -Available with new vehicles 
•How a GPS Works 

•Groupware
 -Helps groups of people work together on projects and share on           projects and share information over a network 
 -Component of workgroup computing
 - Major feature is group scheduling 
•Voice mail
 -Allows someone to leave a voice message for one or more people 
 -Computer in voice mail system converts an analog voice message        into  digital form 
 -A voice mailbox is a storage location on a hard disk in the voice mail  system 
•Many programs provide a means to collaborate, or work online, with  other users connected to a server 
•Collaboration software includes tools that enable users to share  documents via online meetings and communicate with other  connected  users 
 -Online meetings
 -Web conferences 
 -Document management systems

Web services enable programmers to create applications that  communicate with other remote computers over the Internet or on  an internal business network
A mashup is a Web application that combines services from two or  more sources 

Networks 
•A network is a collection of computers and devices connected  together via communications devices and transmission media 
•Advantages of a network include:
 -Facilitating communications 
 -Sharing hardware 
 -Sharing data and information 
 -Sharing software 
 -Transferring funds 

A local area network (LAN) is a network that connects computers  and devices in a limited geographical area
A wireless LAN (WLAN) is a LAN that uses no physical wires 

A metropolitan area network (MAN) connects LANs in a metropolitan  area
A wide area network (WAN) is a network that covers a large  geographical area 

The design of computers, devices, and media on a network is  sometimes called the network architecture 

P2P describes an Internet network on which users access each other’s  hard disks and exchange files directly over the Internet 

A network topology refers to the layout of the computers and devices  in a communications network 

•An intranet is an internal network that uses Internet technologies 
•An extranet allows customers or suppliers to access part of its  intranet 

Network Communications Standards
 Ethernet
   -Ethernet is a network standard that specifies no central computer      or device on the network should control when data can be                transmitted.
 Token ring 
   -Token ring standard specifies that computers and devices on the          network share or pass a special signal, called a token, in an                unidirectional manner and in a preset order.
 TCP/IP
   -Transmission control protocol/Internet protocol (TCP/IP) is a              network protocol that defines how messages are routed from one        end of a network to the other, ensuring the data arrives correctly.
 Wi-Fi
   -Wireless fidelity (Wi-Fi) identifies any network based on the                802.11 standards.

   -802.11 is a series of network standards that specifies how two          wireless devices communicate over the air with each other.
 Bluetooth 
   -Bluetooth is a network protocol that defines how two Bluetooth          devices use short-range radio waves to transmit data.
 UWB
   -Ultra-wideband (UWB) is a network standard that specifies how        two UWB devices use short-range radio waves to communicate at      high speeds with each other.
 IrDA
  -Infrared data association (IrDA) is used to transmit data wirelessly       to each other via infrared (IR) light waves.
 RFID
  -Radio frequency identification (RFID) is a protocol that defines how     a network uses radio signals to communicate with a tag placed in       or attached to an object, an animal or a person.
 WiMAX
   -Developed by IEEE.
   -Towers can cover a 30-mile radius.
   -Two types are fixed wireless and mobile wireless.
   -Provides wireless broadband Internet access.


 •(WAP)Wireless application protocol
   -Specifies how some mobile devices can display the content of              Internet services.
           -Web

           -E-mail
Ethernet is a network standard that specifies no computer controls  when data can be transmitted 
•The token ring standard specifies that computers and devices on the  network share or pass a special signal(token)
TCP/IP is a network standard that defines how messages are routed  from one end of a network to another 
•Example of How Communications Standards Work Together

Wi-Fi identifies any network based on the 802.11 standard that  facilitates wireless communication
Sometimes referred to as wireless Ethernet 

Bluetooth defines how two Bluetooth devices use short-range radio  waves to transmit data
UWB (ultra-wideband) specifies how two UWB devices use short-  range radio waves to communicate at high speeds
IrDA transmits data wirelessly via infrared (IR) light waves
RFID uses radio signals to communicate with a tag placed in or  attached to an object, animal, or person
•How Electronic RFID Toll Collection Works 

•WiMAX (802.16)
 -Developed by IEEE
 -Towers can cover a 30-mile radius 
 -Two types are fixed wireless and mobile wireless 
 -Provides wireless broadband Internet access 
•Wireless Application Protocol(WAP)
 -Specifies how some mobile devices can display the content of             Internet  services 
    -Web
    -E-mail
    -Chat rooms 
-Uses a client/server network 

Communications Software
Communications software consists of programs that:
 -Help users establish a connection to another computer or network 
 -Manage the transmission of data, instructions, and information
 -Provide an interface for users to communicate with one another 

Communications Over the Telephone Network 
The public switched telephone network (PSTN) is the worldwide  telephone system 
  

   Dedicated line 
        -Dedicated line is a type of always-on physical connection that             is established between two communications devices.
   ISDN line 
        - Integrated services digital network (ISDN) is a set of standards            for digital transmission of data over standard copper phone              lines.
   DSL
        -Digital subscriber line (DSL) transmits on existing standard                 copper phone wiring.
   FTTP
       - Fiber to the premises (FTTP) uses fiber-optic cable to provide             extremely high-speed Internet access to a user's physical                   permanent location.
   T-carrier line 
       -T-carrier line is any of several types of long-distance digital               phone lines that carry multiple signals over a single                         communications line.
   ATM

      -Asynchronous transfer mode (ATM) is a service that carries               voice, data, video and media at very high speeds.

ADSL connections transmit data downstream at a much faster rate  than upstream 
       -Asymmetric digital subscriber line (ADSL) is a type of DSL that           supports faster downstream rates than upstream rates.

A communications device is any type of hardware capable of  transmitting data, instructions, and information between a sending  device and a receiving device
A dial-up modem converts signals between analog and digital 

Communications Devices 
•A digital modem sends and receives data and information to and  from a digital line 
 -DSL modem 
 -Cable modem

A wireless modem uses the cell phone network to connect to the  Internet wirelessly from a notebook computer, a smart phone, or  other mobile device 

A network card enables a computer or device to access a network
Available in a variety of styles
Wireless network cards often have an antenna 

A wireless access point is a central communications device that allows  computers and devices to transfer data wirelessly among themselves  or to a wired network

A router connects multiple computers or other routers together and  transmits data to its correct destination on a network
Many are protected by a hardware firewall 

      A hub or switch connects several devices in a network together 

Home Networks 
•Home networks provide computers with the following capabilities:
-Connect to the Internet at the same time 
-Share a single high speed Internet connection
-Access files and programs on other computers
-Share peripherals
-Play multiplayer games 
-Connect game consoles to the Internet
-Subscribe to and use VoIP
•Types of wired home networks:
 -Ethernet 
 -Powerline cable 
 -Phoneline 

Communications Channel
The amount of data that can travel over a communications channel  sometimes is called the bandwidth
Latency is the time it takes a signal to travel from one location to  another on a network
Transmission media carries one or more signals
Broadband media transmit multiple signals simultaneously


Physical Transmission Media


Wireless Transmission Media 

             Cellular radio is a form of broadcast radio that is used widely for  mobile communications

     Microwaves are radio waves that provide a high-speed signal  transmission

A communications satellite is a space station that receives microwave  signals from an earth-based station, amplifies it, and broadcasts the  signal over a wide area 
#

Wednesday 12 October 2016

Chapter 13 Computer Programs and Programming Languages 
October 12,2016. Tuesday

Computer Programs and Programming Languages 
 A computer program is a series of instructions that directs a  computer to perform tasks
         Created by a programmer using a programming language
 Programming language is a set of words, abbreviations and symbols  that enables a software developer to communicate instructions to a  computer or mobile device.

Low-Level Languages 
 Machine language is the first generation of programming languages
Only language the computer directly recognizes

 Assembly language is the second generation of programming  languages
 Programmer writes instructions using  symbolic instruction codes
 A source program contains the code to be converted to machine  language 

Procedural Languages 
•In a procedural language, the programmer writes instructions that  tell the computer what to accomplish and how to do it 
 -Third-generation language(3GL)
•A computer translates an entire program before executing it 
•An interpreter converts and executes one code statement at a time 

 The C programming language is used to write many of today’s  programs 

COBOL (COmmon Business-Oriented Language) is designed for  business applications, but easy to read because of the English-like  statements

Object-Oriented Programming Languages and Program Development Tools
•An object-oriented programming (OOP) language allows  programmers the ability to reuse and modify existing objects 
•Other advantages include:
 -Objects can be reused 
 -Programmers create applications faster 
 -work well in a RAD environment 
 -Most program development tools are IDEs 

Java is an object-oriented programming language developed by Sun  Microsystems
The Just-in-time (JIT) compiler converts the bytecode into machine-  dependent code

•The Microsoft .NET Framework allows almost any type of program to  run on the Internet or an internal business network, as well as  computers and mobile devices
•Features include:
 -CLR(Common language Runtime)
 -Classes  

C++ is an extension of the C programming language
C# is based on C++ and was developed by Microsoft
F# combines the benefits of an object-oriented language with those of  a functional language



•A visual programming language is a language that uses a visual or  graphical interface for creating all source code 
Visual studio also includes a set of tools for developing programs and  apps that work with Microsoft's Office suite.
Visual Basic is based on the BASIC programming language.
Visual C++ is based on C++.

Visual C# combines the programming elements of C++ with an easier,
 rapid-development environment.
•Borland's Delphi is a powerful program development tool that is ideal  for building large-scale enterprise and Web applications in a RAD  environment

PowerBuilder is a powerful program development RAD tool
Best suited for Web-based, .NET, and large-scale enterprise object-  oriented applications 

Other Programming Languages and Development Tools
A 4GL (fourth-generation language) is a nonprocedural language   that enables users and programmers to access data in a database
        One popular 4GL is SQL

•Classic programming languages include:
 -Ada 
 -ALGOL
 -APL
 -BASIC
 -Forth 
 -FORTRAN 
 -Hypertalk
 -LISP
 -Logo 
 -Modula-2
 -Pascal 
 -PILOT
 -PL/1
 -Prolog 
 -RPG
 -Smaltalk 

These languages, which include BASIC, COBOL, FORTRAN and RPG,  were more widely used in the past than they are today.

An application generator is a program that creates source code or  machine code from a specification of the required functionality
        Often bundled as part of a DBMS

A macro is a series of statements that instructs an application how to  complete a task
You usually create the macro in one of two ways:
        Record the macro with a macro recorder
     Write the macro 

Web Page Development 
HTML is a special formatting language that programmers use to  format documents for display on the Web

XHTML is a markup language that allows Web sites to be displayed  more easily on mobile devices

XML allows Web developers to create customized tags and use  predefined tags to display content appropriately on various devices
    –     WML is a subset of XML and is used to design pages for                     microbrowsers
   Wireless markup language (WML) allows web developers to design        pages specifically for microbrowsers.
    –Two applications of XML are the RSS 2.0 and ATOM specifications.

    –Really simple syndication (RSS) and ATOM are specifications that       content aggregators use to distribute content to subscribers.

Two applications of XML are RSS 2.0 and ATOM 

•Web browsers can execute short programs to add interactive elements  to Web pages 
•To send and receive information between your computer and a Web server, these programs use the CG(common gateway interface)
-Scripts
-Applets 
-Servlets 
-ActiveX controls 

•Programmers write scripts, applets, servlets, or ActiveX controls  using a variety of languages 
-JavaScript
-Perl
-PHP
-Rexx
-Tcl
-VBScript 

•Dynamic HTML(DHTML)allows Web developers to include more  graphical interest and interactivity
•Cascading style sheets(CSS) contain the formats for how a particular  object should be displayed 
•Ruby on Rails (RoR) provides technologies for developing object-  oriented, database- driven Web sites 
•Web 2.0 allows Web sites to provide a means for users to :
 -Share personal information 
 -Allow users to modify Web site content  
 -Have application software built into the site 
Most Web 2.0 sites use APIs
   –   An API enables programmers to interact with an environment           such as a Web site or operating system 

•Web page authoring software can create sophisticated Wed pages that  include images, video, audio, animation, and other effects 
-Dreamweaver 
-Expression Web 
-Flash 
-Share Point Designer

Multimedia Program Development 
•Multimedia authoring software allows programmers to combine text, graphics, animation, audio, and video in an interactive presentation 
-ToolBook 
-Director

Program Development
Program development consists of a series of steps programmers use  to build computer programs


Step 1 - Analyze Requirements 
      To initiate program development, programmer:
      –     Reviews the requirements
      –     Meets with the systems analyst and users
      –     Identifies input, processing, and output
                IPO chart

Step 2 - Design Solution 
Design a solution algorithm
In structured design, the programmer typically begins with a general  design and moves toward a more detailed design
Programmers use a hierarchy chart to show program modules  graphically 

With object-oriented (OO) design, the programmer packages the data  and the program into a single object
     -Encapsulation 

The sequence control structure shows one or more actions following  each other in order 

The selection control structure tells the program which action to  take, based on a certain condition
         –  If-then-else
         Case 



The repetition control structure enables a program to perform one or  more actions repeatedly as long as a certain condition is met 

A program flowchart graphically shows the logic in a solution  algorithm

Flowcharting software makes it easy to modify and update flowcharts
    –     SmartDraw
        Visio 

Pseudocode uses a condensed form of English to convey program logic 

UML (Unified Modeling Language) has been adopted as a standard  notation for object modeling and development 

Step 3 - Validate Design 
•Check for logic errors using test data
 -Develop various sets of test data 
 -Determine the expected result 
 -Step through the algorithm
 -Compare the results 
 -Repeat steps for each set of test data 

Step 4 - Implement Design 
Implementation of the design includes using a program development  tool that assists the programmer by:
     –     Generating or providing some or all code
     –     Writing the code that translates the design into a computer                program
     –     Creating the user interface
Extreme programming is a strategy where programmers immediately  begin coding and testing solutions as soon as requirements are  defined 

Step 5 - Test solution 
•The goal of program testing is to ensure the program runs correctly  and is error free 
 -Errors include syntax errors and logic errors 
 -Debugging the program involves removing the bugs 
 -A beta is a program that has most or all of its features and               functionality implemented 

Step 6 - Document Solution 
•In documenting the solution, the programmer performs two  activities:
  -Review the program code 
  -Review all the documentation