0% found this document useful (0 votes)
4 views37 pages

C# Basics Day 1

This document provides an introduction to programming concepts, including definitions of software, types of applications, and the evolution of programming languages leading to C#. It explains the differences between programs, software, and applications, as well as the importance of documentation and data types in C#. Additionally, it covers the binary system, computer storage hierarchy, and the specifics of C# data types.

Uploaded by

Hussam Abofarw
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views37 pages

C# Basics Day 1

This document provides an introduction to programming concepts, including definitions of software, types of applications, and the evolution of programming languages leading to C#. It explains the differences between programs, software, and applications, as well as the importance of documentation and data types in C#. Additionally, it covers the binary system, computer storage hierarchy, and the specifics of C# data types.

Uploaded by

Hussam Abofarw
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 37

Introduction to

programming
01 Software Definitions

TABLE OF
CONTENTS

02 The Creation of C#
01
Software
Definitions
Problem Process Solution
Problem Process Solution
(Programming)
Real World

Hardware
Physical Component
Only knows (on\off)
(0V : 5V)
(Binary System)
Real World

Hardware Software
Physical Component Instructions
Only knows (on\off) Tells hardware What to
(0V : 5V) do and how to do.
(Binary System)
The difference between:

Program Software Application


The difference between:

Program Software Application


Group of A program or group Software
instructions to do of programs +
certain task [For end user] documentation
[Not for end user] * Testing is vital
Documentation

★ user Documentation
★ Technical Documentation
★ Marketing Documentation
Documentation

★ user Documentation -> How to use


★ Technical Documentation -> How it was built
★ Marketing Documentation -> How to sale
1Clean Code
Technical 2Code Review [Check List]
Documentation
3
Refactoring
Software Types

Generic Customized
Software Types

Generic Customized

For public use Inside companies for


certain tasks
Ex: Word, Exel Ex: Hr system
Desktop Application
Calculator
Has GUI

Web Application
Google
Has GUI
Application Types
Mobile Application
Facebook Mobile
Has GUI

Console Application
Black Screen
Has no GUI
Application Types

Standalone Non standalone


Application Application
Application Types

Standalone Non standalone


Application Application

App Contains Entry Point App does not contain Entry


Main() Point (Library)

Ex: .exe Ex: .dll, .h


02
The Creation of C#
“Features from one language
are adapted by another.”
Programming Languages

1970 Late 1970s 1982 1991


C Object Oriented C++ Java
Programming
(OOP)

Middle .NET
C# 2002
2000 Family
The C# family tree
Computer deals with 0,1

Human Code Machine Code


Computer deals with 0,1

Human Code Compiler


Or
Machine Code
interpreter
Real World

Hardware Software
Physical Component Instructions
Only knows (on\off) Tells hardware What to
(0V : 5V) do and how to do.
(Binary System)
Binary
System
Numbers for the
hardware to
understand
Decimal
System
Numbers that we know
Decimal VS Binary numbers
Bit and Byte
Data Storage

ROM
SSD - HDD
RAM
Volatile
Fast
ROM
Permanent
Slow
Computer Storage Hierarchy
Computer Keyboard
ASCII(American Standard Code for Information Interchange) Code
Extended
ASCII
Data Type C# is Strongly Typed

● Size in memory

● Operation on variable

● Validation on Value
.Net Framework (System) Bytes
C# Type Signed? Possible Values
type Occupied

sbyte System.Sbyte Yes 1 -128 to 127

short System.Int16 Yes 2 -32768 to 32767

int System.Int32 Yes 4 -2147483648 to 2147483647

long System.Int64 Yes 8 -9223372036854775808 to 9223372036854775807

byte System.Byte No 1 0 to 255

ushort System.Uint16 No 2 0 to 65535

uint System.UInt32 No 4 0 to 4294967295

ulong System.Uint64 No 8 0 to 18446744073709551615

float System.Single Yes 4 Approximately ±1.5 x 10-45 to ±3.4 x 1038 with 7 significant figures

double System.Double Yes 8 Approximately ±5.0 x 10-324 to ±1.7 x 10308 with 15 or 16 significant figures

decimal System.Decimal Yes 12 Approximately ±1.0 x 10-28 to ±7.9 x 1028 with 28 or 29 significant figures

char System.Char N/A 2 Any Unicode character (16 bit)

bool System.Boolean N/A 1/2 true or false


THANKS
ANY QUESTIONS?

CREDITS: This presentation template was


Don’t give up
created by Slidesgo, including icons by Flaticon,
and infographics & images by Freepik.

You might also like