CS313D: ADVANCED PROGRAMMING LANGUAGEImplement and modify C# programs based on object-oriented...
Transcript of CS313D: ADVANCED PROGRAMMING LANGUAGEImplement and modify C# programs based on object-oriented...
CS313D: ADVANCED
PROGRAMMING LANGUAGE
Lecture 1 : Introduction Computer Science
department
Lecture Contents
dr. Amal Khalifa, Spring17
Course Info.
Course objectives
Course plan
Books and references
Assessment methods and grading
Course Material
Visual Studio
C# First program
2
Instructor
dr. Amal Khalifa, Spring17
3
Course Objectives
dr. Amal Khalifa, Spring17
4
By the end of this course the students will be able to:
Implement and modify C# programs based on object-oriented programming concepts such as classes, inheritance, polymorphism, overloading, indexers, and exception handling.
Develop windows applications using the .NET programming environment.
Use the ADO.NET Entity Data Model to establish connections with and manage Transactions of Databases.
Course plan
dr. Amal Khalifa, Spring17
5
Books and references
dr. Amal Khalifa, Spring17
6
Assessment methods and grading
dr. Amal Khalifa, Spring17
7
Labs, assignments, Project
dr. Amal Khalifa, Spring17
8
Lab handouts
Weekly assignments
Term project
group work
Specific ideas
Evaluation criteria
Individual vs. group evaluation
Course material
Course material:
Blackboard system & blog
Activate your account!!!
emails, announcements, lecture notes, lab material
9
dr. Amal Khalifa, Spring17
dr. Amal Khalifa, Spring17
10
The Visual Studio 2012 IDE enables you to write,
run, test and debug C# programs quickly and
conveniently.
http://www.visualstudio.com/
dr. Amal Khalifa, Spring17
11
What is Computer Programming?
Planning or scheduling a sequence of steps for a
computer to follow to perform a task.
Basically, telling a computer what to do and how to
do it.
A program:
A sequence of steps to be performed by a computer.
Expressed in a computer language.
dr. Amal Khalifa, Spring17
12
Computer Languages
A set of
Symbols (punctuation),
Special words or keywords (vocabulary),
And rules (grammar)
used to construct a program.
Evolution of Programming Languages
dr. Amal Khalifa, Spring17
13
Languages differ in
Size (or complexity)
Readability
Expressivity (or writability)
"Level"
closeness to instructions for the CPU
dr. Amal Khalifa, Spring17
14
High-Level Languages
Closer to natural language
Each step maps to several
machine language instructions
Compiler: A program that
translates a program written
in a high-level language into
the equivalent machine
language.
Console application
dr. Amal Khalifa, Spring17
15
Saved in File ClassName.cs
using directive
System namespace
main??
Keywords
case sensitive
Braces
Strings
Example 1
dr. Amal Khalifa, Spring17
16
comments
A class name
is an
identifier
Series of
letters, digits
and ( _ ),
cannot begin
with a digit,
and does not
contain
spaces.
Example2
dr. Amal Khalifa, Spring17
17
Modify the code to display each word in a separate line
Example 3
dr. Amal Khalifa, Spring17
18
format string
fixed text
and format
items.
placeholder
Formatting text with Escape sequences
dr. Amal Khalifa, Spring17
19
chapter 1 : pages 1 - 10
chapter 3 : 3.1, 3.2, 3.4, 3.5
That’s all
dr. Amal Khalifa, Spring17
20
Case Studies 21
dr. Amal Khalifa, Spring17
Q1:
dr. Amal Khalifa, Spring17
22
Q2:
dr. Amal Khalifa, Spring17
23
Q4:
dr. Amal Khalifa, Spring17
24
Q5:
dr. Amal Khalifa, Spring17
25
Q6:
dr. Amal Khalifa, Spring17
26