lecture 1 - introduction to programming and

Upload: caroline-ablah-graham

Post on 07-Apr-2018

215 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/6/2019 Lecture 1 - Introduction to Programming and

    1/7

    9/4/200

    By: JESILO 2009

    Hardware vrs SoftwareWhat is a Hardware?

    Physical components of a computer.

    It is tangible and appreciated.

    What is a Software?

    Made of instructions.

    Unseen/ intangible/ not physically appreciated.

    Our focus:

    Software development with Visual BASIC.NET

    Regent University, Ghana By: JESILO 2009

  • 8/6/2019 Lecture 1 - Introduction to Programming and

    2/7

  • 8/6/2019 Lecture 1 - Introduction to Programming and

    3/7

    9/4/200

    Programming

    Programme representations:

    Algorithm Pseudo code

    Flowcharts

    Example: finding the greater of two numbers

    Algorithm Pseudo code Flowchart

    Regent University, Ghana By: JESILO 2009

    1. Get two numbers a and b

    2. If a is greater than b thenthe greater is a else the

    greater is b

    3. Give the greater number

    1. Let a, b and greater benumbers

    2. Input a, b

    3. If a>b then greater = aelse greater =b

    4. Output greater

    Int a, b, greater

    a>b?

    Input a, b

    greater = a greater = b

    Output greater

    Yes No

    Programming LanguageWhat is a language?

    systematic means of communicating by the use of sounds orconventional symbols

    Common Natural Languages:

    Ewe

    Twi

    English

    FrenchCommon Programming Languages

    VB.NET

    C++

    Java

    Perl

    Regent University, Ghana By: JESILO 2009

  • 8/6/2019 Lecture 1 - Introduction to Programming and

    4/7

    9/4/200

    BASIC

    BASIC stands for:

    BeginnersAll-purpose Symbolic Instruction Code

    There has been several versions:

    Qbasic

    Quick Basic

    Visual Basic

    But now well be usingVisual Basic.NET

    Regent University, Ghana By: JESILO 2009

    VB vrs VB.NETWhat is the difference between VB and VB.NET?

    Regent University, Ghana By: JESILO 2009

    Visual BASIC Visual BASIC.NET

    Not fully object oriented Fully object oriented

    Supports only windows

    applications

    Supports both windows and web

    applications

    Has very large standard libraries

  • 8/6/2019 Lecture 1 - Introduction to Programming and

    5/7

    9/4/200

    .NET

    What is .NET?

    It is a software framework by Microsoft; introduced in 2006. It is made of several parts

    - Common Language Runtime (CLR)

    - Base Class Library (BCL)

    - Compilers for different languages

    Our Focus:

    VB.NET Compiler

    - A compiler is primarily used for programs that translate source code from ahigh level language to a lower level language (zeros and ones)

    - Compiles to Microsoft Intermediate Language (MSIL)

    - During execution MSIL is JIT-compiled into Machine Code

    Regent University, Ghana By: JESILO 2009

    .NET Compilation

    Regent University, Ghana By: JESILO 2009

  • 8/6/2019 Lecture 1 - Introduction to Programming and

    6/7

    9/4/200

    .NET Advantages

    Advantages of the .NET Framework?

    Language Interoperability Strong support for the Web

    Eradicates DLL Hell (Versioning problems)

    Enhanced Security

    Strong support for small devices

    Simplified development efforts

    Easy application deployment and maintenance

    Robust managed-code environment

    Regent University, Ghana By: JESILO 2009

    .NET InstallationHow to install the .NET Framework?

    For the solution to this, go to the masters:

    http://www.microsoft.com/downloads/details.aspx?familyid=0856eacb-4362-4b0d-8edd-aab15c5e04f5&displaylang=en

    Download and install any version higher than version 2.0

    Regent University, Ghana By: JESILO 2009

    http://www.microsoft.com/downloads/details.aspx?familyid=0856eacb-4362-4b0d-8edd-aab15c5e04f5&displaylang=enhttp://www.microsoft.com/downloads/details.aspx?familyid=0856eacb-4362-4b0d-8edd-aab15c5e04f5&displaylang=enhttp://www.microsoft.com/downloads/details.aspx?familyid=0856eacb-4362-4b0d-8edd-aab15c5e04f5&displaylang=enhttp://www.microsoft.com/downloads/details.aspx?familyid=0856eacb-4362-4b0d-8edd-aab15c5e04f5&displaylang=enhttp://www.microsoft.com/downloads/details.aspx?familyid=0856eacb-4362-4b0d-8edd-aab15c5e04f5&displaylang=enhttp://www.microsoft.com/downloads/details.aspx?familyid=0856eacb-4362-4b0d-8edd-aab15c5e04f5&displaylang=enhttp://www.microsoft.com/downloads/details.aspx?familyid=0856eacb-4362-4b0d-8edd-aab15c5e04f5&displaylang=enhttp://www.microsoft.com/downloads/details.aspx?familyid=0856eacb-4362-4b0d-8edd-aab15c5e04f5&displaylang=enhttp://www.microsoft.com/downloads/details.aspx?familyid=0856eacb-4362-4b0d-8edd-aab15c5e04f5&displaylang=enhttp://www.microsoft.com/downloads/details.aspx?familyid=0856eacb-4362-4b0d-8edd-aab15c5e04f5&displaylang=enhttp://www.microsoft.com/downloads/details.aspx?familyid=0856eacb-4362-4b0d-8edd-aab15c5e04f5&displaylang=enhttp://www.microsoft.com/downloads/details.aspx?familyid=0856eacb-4362-4b0d-8edd-aab15c5e04f5&displaylang=en
  • 8/6/2019 Lecture 1 - Introduction to Programming and

    7/7

    9/4/200

    References

    http://www.google.co.uk/search?hl=en&q=what+is+a+language&meta=

    dotNET Tutorials for Beginners

    http://www.startvbdotnet.com/dotnet/frameworkadvantages.aspx

    http://msdn.microsoft.com/en-us/embedded/bb278106.aspx

    http://msdn.microsoft.com/en-us/embedded/bb278 106.aspx

    Regent University, Ghana By: JESILO 2009