0% found this document useful (0 votes)
45 views

Lecture 01 - Introduction To Microsoft Visual C and Visual Studio

The document discusses visual programming and the Visual C# course. It provides an introduction to visual programming and discusses different programming paradigms like unstructured programming, structured programming, and object-oriented programming. It outlines the course content which includes introductions to Visual C#, Visual Studio, variables, data types, operators, methods, classes, collections, databases and more. It discusses the purpose of the course is to teach fundamentals of visual C# programming and includes laboratory exercises. Software requirements include Visual Studio 2010.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views

Lecture 01 - Introduction To Microsoft Visual C and Visual Studio

The document discusses visual programming and the Visual C# course. It provides an introduction to visual programming and discusses different programming paradigms like unstructured programming, structured programming, and object-oriented programming. It outlines the course content which includes introductions to Visual C#, Visual Studio, variables, data types, operators, methods, classes, collections, databases and more. It discusses the purpose of the course is to teach fundamentals of visual C# programming and includes laboratory exercises. Software requirements include Visual Studio 2010.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 22

Visual Programming

Department of CSE, QUEST


Dr. Irfana Memon
Dr. Irfana Memon
Department of CSE, QUEST

https://sites.google.com/a/quest.edu.pk/dr-irfana-memon/lecture-slides
Prerequisites for Course
• Required:
• C-language
• C++

Department of CSE, QUEST


Dr. Irfana Memon
2
Course Evaluation

• Class Presentation

Department of CSE, QUEST


Dr. Irfana Memon
• Quiz
• Class Test

3
Attendance……!
• There are marks of attendance…

It is

Department of CSE, QUEST


Dr. Irfana Memon
MANDATORY

4
Course Material
• Text books
• Bradley, J.C. and Millspaugh, A.C., and Millspaugh, A.C., Programming in
Visual C#, First Edition , McGraw-Hill, 2008

• Reference books

Department of CSE, QUEST


Dr. Irfana Memon
• Dietal and Dietal, Visual C#, How to Program, Person, 5th Edition, 2013

5
Course Content (1)
Introduction to Microsoft Visual C# and Visual Studio
Working with variables, Data types, Operators, and Expressions
Visual C# Programming Language Constructs, Creating Methods
Invoking Methods, Handling Exceptions, Creating overloaded Methods

Using Decision Statements

Department of CSE, QUEST


Dr. Irfana Memon
Using Compound Assignment and Iteration Statements
Managing Errors and Exceptions
Implementing Type-safe Collections: Creating Classes, Organizing Data into
Collections, Handling Events, Defining and Implementing Interfaces
Developing the Code for a Graphical Application: Implementing Structs and Enums
Creating a Class Hierarchy by Using Inheritance, Extending .NET Framework Classes,
Creating Generic Types
Using Arrays and Collections and Understanding Parameter Arrays 6
Using Garbage Collection and Resource Management
Course Content (2)
Accessing a Database: Creating and Using Entity Data Models, Querying and Updating
Data by Using LINQ
Designing the User Interface for a Graphical Application: Using XAML, Binding
Controls to Data, Styling a User Interface
Improving Application Performance and Responsiveness: Implementing Multitasking
by using Tasks and Lambda Expressions

Department of CSE, QUEST


Dr. Irfana Memon
Performing Operations Asynchronously, Synchronizing Concurrent Access to Data
Building Windows Presentation Foundation Applications : Introducing Windows
Presentation Foundation, Gathering User Input, Performing Validation.
Managing Data: Querying Information in a Database, Displaying and Editing Data by
Using the Entity Framework and Data Binding,
Building Professional Solutions with Visual Studio 2019: Introducing the Task Parallel
Library, Performing Parallel Data Access, Creating and Using a Web Service

7
Purpose
• To teach fundamentals of visual C# programming to the
students.
• Students will be trained to write code using visual C# for
performing one of more tasks.

Department of CSE, QUEST


Dr. Irfana Memon
• The course includes laboratory exercises.

8
Software Requirement

• Visual Studio 2010

Department of CSE, QUEST


Dr. Irfana Memon
9
Introduction to Visual C# and
Visual Studio
• After Completion of this chapter, you will be able to:
 Use the Microsoft Visual Studio 2019 programming

Department of CSE, QUEST


Dr. Irfana Memon
environment
 Create a C# console application
 Explain the purpose of namespaces
 Create a simple graphical C# application

10
Programming (1)
• A computer program is a set of instructions that you
write to tell a computer what to do
• Programmers do not use machine language when
creating computer programs. Instead, programmers
tend to use high-level programming languages

Department of CSE, QUEST


Dr. Irfana Memon
• Each high-level language has its own syntax and
limited set of vocabulary that is translated into
machine code by a compiler
• In addition to understanding syntax, a programmer
must also understand programming logic

11
Programming (2)
• Programming language is converted into machine
language for execution with help of translators.
• Categories
Low level

Department of CSE, QUEST


Dr. Irfana Memon
High level
• Types
Unstructured Programming
Structured Programming
Object oriented Programming
Visual Programming 12
UN-Structured Programming
(USP)
• In USP, the entire logic of program is implemented in
single module or function.
• The program written in these languages are Error
prone, difficult to understand, modify and debug.

Department of CSE, QUEST


Dr. Irfana Memon
• For example: Assembly language, Fortran, COBOL, etc.

13
Structured Programming (SP)
• In SP, the entire logic of the program is divided into
number of smaller module or function.
• Each module is peace of code that implements a
different functionality.

Department of CSE, QUEST


Dr. Irfana Memon
• The main module call other module when they are
needed to execute.
• It is a modular method to write a program.
• The program written in these language are easy to
understand, modify, and debug.
• For example: C, C++, C#, etc.
14
Object-Oriented Programming (1)

• Object-oriented programming (OOP) refers to a


type of computer programming (software design)
in which programmers define the data type of

Department of CSE, QUEST


Dr. Irfana Memon
a data structure, and also the types of operations
(functions) that can be applied to the data
structure.

15
Object-Oriented Programming (2)

• Variables are named computer memory locations


used to hold values that may vary
• Operations are usually called or invoked to
manipulate variables

Department of CSE, QUEST


Dr. Irfana Memon
• A procedural program defines the variable memory
locations, then calls a series of procedures to input,
manipulate, and output the value stored in those
locations
• A single procedural program often contains hundreds
of variables and thousands of procedure calls
16
Object-Oriented Programming (3)
• For example:
• An Automobile is a class whose objects have the following
attributes: year, make, model, color, and current running status
• Your 1997 red Chevrolet is an instance of the class that is
made up of all Automobiles

Department of CSE, QUEST


Dr. Irfana Memon
• Methods of classes are used to change attributes and
discover values of attributes
• The Automobile class may have the following methods:
getGas(), accelerate(), applyBreaks()

17
Object-Oriented Programming (4)
• Methods and variables in object-oriented
programming are encapsulated, that is, users are
only required to understand the interface and not the
internal workings of the class

Department of CSE, QUEST


Dr. Irfana Memon
• Polymorphism and Inheritance are two
distinguishing features in the object-oriented
programming approach
• Polymorphism describes the ability to create methods
that act appropriately depending on the context
• Inheritance provides the ability to extend a class so as
to create a more specific class 18
Terminologies
• Compiler e.g., Visual C#, Turbo C/C++ etc
• IDE (Integrated Development Environment) Visual
Studio.NET etc
• Syntax
 Errors

Department of CSE, QUEST


Dr. Irfana Memon
Syntax
• Logical
• Instruction
 Declaration/ or Assignment
I/O
Arithmetic & Logic 19
Control/Conditional
Visual Programming

• A visual programming language (VPL) is a programming


language that uses graphical elements and figures to
develop a program.

Department of CSE, QUEST


Dr. Irfana Memon
• A VPL employs techniques to design a software program
in two or more dimensions, and includes graphical
elements, text, symbols and icons within its
programming context.

• A visual programming language is also known as an


executable graphics language. 20
Exercise

1. What is programming language?


2. Why we need programming language?
3. What is translator? Explain types of translator.

Department of CSE, QUEST


Dr. Irfana Memon
21
Wish You Good Luck

Dr. Irfana Memon


22

Department of CSE, QUEST

You might also like