Professional Documents
Culture Documents
IE-322
Computer Applications
LECTURE #02 in Industrial Engg.-I
Computer Applications in
Industrial Engg.-I
IE322
…Recap Machine
Language
• Page 1 Assembly
Language
• Interacting with Computers High-Level
Language
• What is Programming?
– Programming Paradigms
– Motivation & Extent
• Object oriented programming Inheritance
– Motivation--Reuse CLR as a VM
Executable
JIT Compiler
Machine Code
7/1/2018
What we will see…
• Installation of VS2017 Community Edition on
your System
• IDE Walkthrough
Dr. Atif Shahzad
7/1/2018
Meanwhile the installation
progresses we will see…
• Program structure and sequence
• Arithmetic operators
• Formatted output
• WriteLine(),Write(),ReadLine(),Read()
• Data Types
– bool,byte,char,double,float,int,long,short,uint,ulong,
ushort
• Initialization of variables
• Your Examples
Dr. Atif Shahzad
• Q&A
7/1/2018
And…
• Escape Sequence
• Comments, multi-line comments, Good practices
• var keyword
• Convert (data type conversion)
• Strings
• Operator precedence
• Your Examples
• Practice Quiz
• Q&A
Dr. Atif Shahzad
7/1/2018
Computer Applications in
Industrial Engg.-I
IE322
Installation …
https://www.visualstudio.com/downloads/
Dr. Atif Shahzad
7/1/2018
Installation (Self-Explantory)
Dr. Atif Shahzad
7/1/2018
Installation…
Dr. Atif Shahzad
7/1/2018
Installation…
Dr. Atif Shahzad
7/1/2018
Installation…
Dr. Atif Shahzad
7/1/2018
Installation…
Dr. Atif Shahzad
7/1/2018
Installation…
Dr. Atif Shahzad
7/1/2018
Installation… (Optional)
Dr. Atif Shahzad
7/1/2018
Creating a Console App
IE322
C# Console App…New
Dr. Atif Shahzad
7/1/2018
C# Console App…Save
Dr. Atif Shahzad
7/1/2018
C# Console App
Dr. Atif Shahzad
7/1/2018
C# Console App
Dr. Atif Shahzad
7/1/2018
C# Console App…Compiling
Dr. Atif Shahzad
7/1/2018
C# Console App…Reopening
Dr. Atif Shahzad
7/1/2018
C# Console App…Reopening
Dr. Atif Shahzad
7/1/2018
C# Console App…Reopening
Dr. Atif Shahzad
7/1/2018
VS 2017 IDE
QuickWalkthrough
IE322
C# Console App…IDE
Dr. Atif Shahzad
7/1/2018
Intellisense
Dr. Atif Shahzad
7/1/2018
Indentation
Dr. Atif Shahzad
7/1/2018
Code Folding
Dr. Atif Shahzad
7/1/2018
Error Messages
Dr. Atif Shahzad
7/1/2018
Solution Explorer
Dr. Atif Shahzad
7/1/2018
Properties
Dr. Atif Shahzad
7/1/2018
Meanwhile the installation progresses
we will see…
IE322
Meanwhile the installation
progresses we will see…
• Variables
• Data Types
– bool,byte,char,double,float,int,long,short,uint,ulong,
ushort
• Program structure and sequence
• Comments, multi-line comments, Good practices
• WriteLine(),Write(),ReadLine(),Read()
• Initialization of variables
• Formatted output
• Your Examples
Dr. Atif Shahzad
• Q&A
7/1/2018
Variable
• A named area of computer memory.
–think of it as a named box that stores data
(including numbers and text) , for a
program to access as needed.
Dr. Atif Shahzad
7/1/2018
Variable
• variable named side whose current value is 50.
Dr. Atif Shahzad
7/1/2018
Variable
When you create After creating a
a variable, variable,
variable’s name.
7/1/2018
Data type of a variable
38
Data types
Data Types Default Value Minimum Value Maximum Value
string null - -
39
C#-- A quick code walkthrough
Dr. Atif Shahzad
7/1/2018 40
And…
• Arithmetic operators
• Operator precedence
• Escape Sequence
• var keyword
• Convert (data type conversion)
• Strings
• Your Examples
• Practice Quiz
• Q&A
Dr. Atif Shahzad
7/1/2018
A Quick question
Fill the blanks to have x equal 15
Dr. Atif Shahzad
7/1/2018
A Quick question
Fill the blanks to have x equal 15
Dr. Atif Shahzad
7/1/2018
NEVER hesitate to
contact should you
have any question
Dr. Atif Shahzad
Dr. Atif Shahzad
7/1/2018 45