SlideShare a Scribd company logo
1 of 12
Puzzled about programming languages????
Abhishek Mukherjee | Utkarsh Srivastava
What is programming?
• Think about a problem.
• Any problem statement.
• U will get a path to approach the problem.
• Frame the path stepwise.
• The same problem can be solved using your compiler.
• The path of stepwise approaching the problem is called
algorithm.
THE STEPS OF CREATING A CODE
Decide the approach of your Problem statement.
i.e. some predefined algorithm or your own idea
Choice of language
i.e. object oriented(java , c#) or modular(c)
Compile Time errors
Syntax errors…
Execute the program after successful compilation
Run time errors???!!!! Logical errors
Successful Compilation
Proceed to next problem…..
Algorithm
kl
Various compliers are available for various languages
i.e. turbo(c , c ++ ) , dev etc….
Choice?
Compiler?
Problems…
Run…
Executed….
• Many types of data can be worked upon
• U might want to encrypt ur name(string
type)
• U might want to make your own
personalized calculator(various types of
numbers)
• U might want to have a binary output for
your program(Boolean type)
• Many permutations are available for
optimizing ur code.
• U might want to create an excel sheet(2D
array)
BASICS OF PROGRAMMING
Variables
• INTEGER(int)
• Many types of int are available in
all languages
• This includes types based on sizes
• Int32,int64,int16 are the few
available in c#
• Int64 is normally used in place of
long type numbers as in other
languages
• DOUBLE and FLOAT
• Smaller decimal number of 6th
precision can be stored in float
types
• Float can be used to store decimal
numbers upto 12th precision
• Any type conversion from int to
these types leads to the the digits
after the point becoming zero
• Type conversion takes place only
form a datatype of hIgher size to a
data type of lower size
DATA TYPES TO BE USED FOR NUMBERS
• ARRAY(1 D)
• Can be used to store multiple:
• Integers
• Strings
• Double , Float
• Boolean
• Characters
• ARRAY(2 D)
• The same data as 1d array can be
stored in a tabular form like data in
rows and columns as in a excel
sheet.
STORING MUTIPLE DATA IN A VARIABLE:
• Predefined functions:
• Defined by the language we use
• Defined to serve a specific purpose
• Allows reusability of code
• Makes program more efficient by
making debugging easier
• User defined functions:
• Make the code according to our
own specifications
FUNCTIONS
• The coding will be
operated on a
specific
operand/operands.
These variables are
called the
parameters of the
function
• The functionality of
a function(coding of
the function)
• The output value of
the function i.e. the
result of the
operation
preformation(if any)
is called return
value..
FUNCTIONS:
Parts of a function:
• Characters:
• Used to store a single character
• We have a system to represent any
character called ASCII
• The values vary from 0-255
• Example all capital letters have
values ranging form 65-90
• This concept comes from the
concept of a byte
• A byte contains 8 bits each and
thus 2^8 (256) combinations
available
• Strings:
• Used to store multiple characters.
• Can be manipulated
• Always stored in double quotes
• String s=“C#”
• Many functions available to
manipulate strings
• Example of functions used-Length ,
substring
Variables Contd……
• Call by reference:
• The parameters which are
operated upon will change their
value after function call
• In this case the memory reference
of the parameter is sent which has
the scope to change the original
value of the variable bcoz the
memory address is sent
• It has the advantage of returning
multiple variables without actually
returning them!!!!!!!!!!!!!!!
• Think yyy????
• Call by value:
• It’s the normal function call where
we require normal function calls
FUNCTION CALLING:
Two types:
• GLOBAL:
• Scope is defined throughout the scope of the program.
• Can be accessed by all the functions of the program.
• A Constructor needs to be initialized to give default
values to these variables.
• LOCAL:
• These variables can be accessed
only in their specific function
definitions
Another classification of variables:
Scope…………..
NOW LETS CREATE SOME REAL TIME APPS

More Related Content

What's hot

Programming with \'C\'
Programming with \'C\'Programming with \'C\'
Programming with \'C\'bdmsts
 
Swift Programming Language
Swift Programming LanguageSwift Programming Language
Swift Programming LanguageCihad Horuzoğlu
 
Java Introduction Workshop Day 2
Java Introduction Workshop Day 2 Java Introduction Workshop Day 2
Java Introduction Workshop Day 2 Osama Saad
 
Intro to Java for C++ Developers
Intro to Java for C++ DevelopersIntro to Java for C++ Developers
Intro to Java for C++ DevelopersZachary Blair
 
learn JAVA at ASIT with a placement assistance.
learn JAVA at ASIT with a placement assistance.learn JAVA at ASIT with a placement assistance.
learn JAVA at ASIT with a placement assistance.ASIT Education
 
C# lecture 2: Literals , Variables and Data Types in C#
C# lecture 2: Literals , Variables and Data Types in C#C# lecture 2: Literals , Variables and Data Types in C#
C# lecture 2: Literals , Variables and Data Types in C#Dr.Neeraj Kumar Pandey
 
.NET Fest 2019. Алексей Голуб. Монадные парсер-комбинаторы в C# (простой спос...
.NET Fest 2019. Алексей Голуб. Монадные парсер-комбинаторы в C# (простой спос....NET Fest 2019. Алексей Голуб. Монадные парсер-комбинаторы в C# (простой спос...
.NET Fest 2019. Алексей Голуб. Монадные парсер-комбинаторы в C# (простой спос...NETFest
 
Zend%20Certification%20REVIEW%20Document
Zend%20Certification%20REVIEW%20DocumentZend%20Certification%20REVIEW%20Document
Zend%20Certification%20REVIEW%20Documenttutorialsruby
 
Practical Malware Analysis: Ch 4 A Crash Course in x86 Disassembly
Practical Malware Analysis: Ch 4 A Crash Course in x86 Disassembly Practical Malware Analysis: Ch 4 A Crash Course in x86 Disassembly
Practical Malware Analysis: Ch 4 A Crash Course in x86 Disassembly Sam Bowne
 
Java data types, variables and jvm
Java data types, variables and jvm Java data types, variables and jvm
Java data types, variables and jvm Madishetty Prathibha
 
Introduction to functional programming, with Elixir
Introduction to functional programming,  with ElixirIntroduction to functional programming,  with Elixir
Introduction to functional programming, with Elixirkirandanduprolu
 
Style & Design Principles 01 - Code Style & Structure
Style & Design Principles 01 - Code Style & StructureStyle & Design Principles 01 - Code Style & Structure
Style & Design Principles 01 - Code Style & StructureNick Pruehs
 
Framework Design Guidelines
Framework Design GuidelinesFramework Design Guidelines
Framework Design GuidelinesMohamed Meligy
 
New c sharp4_features_part_v
New c sharp4_features_part_vNew c sharp4_features_part_v
New c sharp4_features_part_vNico Ludwig
 

What's hot (20)

Programming with \'C\'
Programming with \'C\'Programming with \'C\'
Programming with \'C\'
 
Swift Programming Language
Swift Programming LanguageSwift Programming Language
Swift Programming Language
 
C# - Part 1
C# - Part 1C# - Part 1
C# - Part 1
 
Java tokens
Java tokensJava tokens
Java tokens
 
2018 12-kube con-ballerinacon
2018 12-kube con-ballerinacon2018 12-kube con-ballerinacon
2018 12-kube con-ballerinacon
 
C programming
C programmingC programming
C programming
 
Java Introduction Workshop Day 2
Java Introduction Workshop Day 2 Java Introduction Workshop Day 2
Java Introduction Workshop Day 2
 
Intro to Java for C++ Developers
Intro to Java for C++ DevelopersIntro to Java for C++ Developers
Intro to Java for C++ Developers
 
learn JAVA at ASIT with a placement assistance.
learn JAVA at ASIT with a placement assistance.learn JAVA at ASIT with a placement assistance.
learn JAVA at ASIT with a placement assistance.
 
C# lecture 2: Literals , Variables and Data Types in C#
C# lecture 2: Literals , Variables and Data Types in C#C# lecture 2: Literals , Variables and Data Types in C#
C# lecture 2: Literals , Variables and Data Types in C#
 
.NET Fest 2019. Алексей Голуб. Монадные парсер-комбинаторы в C# (простой спос...
.NET Fest 2019. Алексей Голуб. Монадные парсер-комбинаторы в C# (простой спос....NET Fest 2019. Алексей Голуб. Монадные парсер-комбинаторы в C# (простой спос...
.NET Fest 2019. Алексей Голуб. Монадные парсер-комбинаторы в C# (простой спос...
 
Zend%20Certification%20REVIEW%20Document
Zend%20Certification%20REVIEW%20DocumentZend%20Certification%20REVIEW%20Document
Zend%20Certification%20REVIEW%20Document
 
Java ce241
Java ce241Java ce241
Java ce241
 
Practical Malware Analysis: Ch 4 A Crash Course in x86 Disassembly
Practical Malware Analysis: Ch 4 A Crash Course in x86 Disassembly Practical Malware Analysis: Ch 4 A Crash Course in x86 Disassembly
Practical Malware Analysis: Ch 4 A Crash Course in x86 Disassembly
 
Java data types, variables and jvm
Java data types, variables and jvm Java data types, variables and jvm
Java data types, variables and jvm
 
Introduction to functional programming, with Elixir
Introduction to functional programming,  with ElixirIntroduction to functional programming,  with Elixir
Introduction to functional programming, with Elixir
 
Style & Design Principles 01 - Code Style & Structure
Style & Design Principles 01 - Code Style & StructureStyle & Design Principles 01 - Code Style & Structure
Style & Design Principles 01 - Code Style & Structure
 
Framework Design Guidelines
Framework Design GuidelinesFramework Design Guidelines
Framework Design Guidelines
 
Go go power slice
Go go power sliceGo go power slice
Go go power slice
 
New c sharp4_features_part_v
New c sharp4_features_part_vNew c sharp4_features_part_v
New c sharp4_features_part_v
 

Viewers also liked

Classes and Objects In C# With Example
Classes and Objects In C# With ExampleClasses and Objects In C# With Example
Classes and Objects In C# With ExampleCheezy Code
 
Introduction to object oriented programming concepts
Introduction to object oriented programming conceptsIntroduction to object oriented programming concepts
Introduction to object oriented programming conceptsGanesh Karthik
 
Learn Concept of Class and Object in C# Part 3
Learn Concept of Class and Object in C#  Part 3Learn Concept of Class and Object in C#  Part 3
Learn Concept of Class and Object in C# Part 3C# Learning Classes
 
Object Oriented Programming with C#
Object Oriented Programming with C#Object Oriented Programming with C#
Object Oriented Programming with C#foreverredpb
 
Classes, objects and methods
Classes, objects and methodsClasses, objects and methods
Classes, objects and methodsfarhan amjad
 
Object-oriented programming
Object-oriented programmingObject-oriented programming
Object-oriented programmingNeelesh Shukla
 
Classes And Objects
Classes And ObjectsClasses And Objects
Classes And Objectsrahulsahay19
 
class and objects
class and objectsclass and objects
class and objectsPayel Guria
 

Viewers also liked (10)

Copy constructor
Copy constructorCopy constructor
Copy constructor
 
Classes and Objects In C# With Example
Classes and Objects In C# With ExampleClasses and Objects In C# With Example
Classes and Objects In C# With Example
 
Introduction to object oriented programming concepts
Introduction to object oriented programming conceptsIntroduction to object oriented programming concepts
Introduction to object oriented programming concepts
 
Learn Concept of Class and Object in C# Part 3
Learn Concept of Class and Object in C#  Part 3Learn Concept of Class and Object in C#  Part 3
Learn Concept of Class and Object in C# Part 3
 
Basic c#
Basic c#Basic c#
Basic c#
 
Object Oriented Programming with C#
Object Oriented Programming with C#Object Oriented Programming with C#
Object Oriented Programming with C#
 
Classes, objects and methods
Classes, objects and methodsClasses, objects and methods
Classes, objects and methods
 
Object-oriented programming
Object-oriented programmingObject-oriented programming
Object-oriented programming
 
Classes And Objects
Classes And ObjectsClasses And Objects
Classes And Objects
 
class and objects
class and objectsclass and objects
class and objects
 

Similar to C# basics... (20)

C for Engineers
C for EngineersC for Engineers
C for Engineers
 
Chap_________________1_Introduction.pptx
Chap_________________1_Introduction.pptxChap_________________1_Introduction.pptx
Chap_________________1_Introduction.pptx
 
Introduction to C programming
Introduction to C programmingIntroduction to C programming
Introduction to C programming
 
Unit ii
Unit   iiUnit   ii
Unit ii
 
INTRODUCTION TO C PROGRAMMING in basic c language
INTRODUCTION TO C PROGRAMMING in basic c languageINTRODUCTION TO C PROGRAMMING in basic c language
INTRODUCTION TO C PROGRAMMING in basic c language
 
FPL - Part 1 (Sem - I 2013 )
FPL - Part 1  (Sem - I  2013 ) FPL - Part 1  (Sem - I  2013 )
FPL - Part 1 (Sem - I 2013 )
 
c++
 c++  c++
c++
 
CS4443 - Modern Programming Language - I Lecture (2)
CS4443 - Modern Programming Language - I  Lecture (2)CS4443 - Modern Programming Language - I  Lecture (2)
CS4443 - Modern Programming Language - I Lecture (2)
 
Notes of programming
Notes of programmingNotes of programming
Notes of programming
 
Compiler Construction
Compiler ConstructionCompiler Construction
Compiler Construction
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
Data Type in C Programming
Data Type in C ProgrammingData Type in C Programming
Data Type in C Programming
 
Developer’s viewpoint on swift programming language
Developer’s viewpoint on swift programming languageDeveloper’s viewpoint on swift programming language
Developer’s viewpoint on swift programming language
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
 
C language unit-1
C language unit-1C language unit-1
C language unit-1
 
C LANGUAGE UNIT-1 PREPARED BY M V BRAHMANANDA REDDY
C LANGUAGE UNIT-1 PREPARED BY M V BRAHMANANDA REDDYC LANGUAGE UNIT-1 PREPARED BY M V BRAHMANANDA REDDY
C LANGUAGE UNIT-1 PREPARED BY M V BRAHMANANDA REDDY
 
C languaGE UNIT-1
C languaGE UNIT-1C languaGE UNIT-1
C languaGE UNIT-1
 
Assembler
AssemblerAssembler
Assembler
 
Class_X_PYTHON_J.pdf
Class_X_PYTHON_J.pdfClass_X_PYTHON_J.pdf
Class_X_PYTHON_J.pdf
 
Design Like a Pro: Scripting Best Practices
Design Like a Pro: Scripting Best PracticesDesign Like a Pro: Scripting Best Practices
Design Like a Pro: Scripting Best Practices
 

More from Abhishek Mukherjee

More from Abhishek Mukherjee (8)

Abhishek_Mukherjee
Abhishek_MukherjeeAbhishek_Mukherjee
Abhishek_Mukherjee
 
WELCOME TO BIG DATA TRANING
WELCOME TO BIG DATA TRANINGWELCOME TO BIG DATA TRANING
WELCOME TO BIG DATA TRANING
 
Map Reduce basics
Map Reduce basicsMap Reduce basics
Map Reduce basics
 
Php Bascis
Php BascisPhp Bascis
Php Bascis
 
Filtering an image is to apply a convolution
Filtering an image is to apply a convolutionFiltering an image is to apply a convolution
Filtering an image is to apply a convolution
 
INSPIRING DESIGNS
INSPIRING DESIGNSINSPIRING DESIGNS
INSPIRING DESIGNS
 
Photoshop Basics
Photoshop BasicsPhotoshop Basics
Photoshop Basics
 
Net framework
Net frameworkNet framework
Net framework
 

C# basics...

  • 1. Puzzled about programming languages???? Abhishek Mukherjee | Utkarsh Srivastava
  • 2. What is programming? • Think about a problem. • Any problem statement. • U will get a path to approach the problem. • Frame the path stepwise. • The same problem can be solved using your compiler. • The path of stepwise approaching the problem is called algorithm.
  • 3. THE STEPS OF CREATING A CODE Decide the approach of your Problem statement. i.e. some predefined algorithm or your own idea Choice of language i.e. object oriented(java , c#) or modular(c) Compile Time errors Syntax errors… Execute the program after successful compilation Run time errors???!!!! Logical errors Successful Compilation Proceed to next problem….. Algorithm kl Various compliers are available for various languages i.e. turbo(c , c ++ ) , dev etc…. Choice? Compiler? Problems… Run… Executed….
  • 4. • Many types of data can be worked upon • U might want to encrypt ur name(string type) • U might want to make your own personalized calculator(various types of numbers) • U might want to have a binary output for your program(Boolean type) • Many permutations are available for optimizing ur code. • U might want to create an excel sheet(2D array) BASICS OF PROGRAMMING Variables
  • 5. • INTEGER(int) • Many types of int are available in all languages • This includes types based on sizes • Int32,int64,int16 are the few available in c# • Int64 is normally used in place of long type numbers as in other languages • DOUBLE and FLOAT • Smaller decimal number of 6th precision can be stored in float types • Float can be used to store decimal numbers upto 12th precision • Any type conversion from int to these types leads to the the digits after the point becoming zero • Type conversion takes place only form a datatype of hIgher size to a data type of lower size DATA TYPES TO BE USED FOR NUMBERS
  • 6. • ARRAY(1 D) • Can be used to store multiple: • Integers • Strings • Double , Float • Boolean • Characters • ARRAY(2 D) • The same data as 1d array can be stored in a tabular form like data in rows and columns as in a excel sheet. STORING MUTIPLE DATA IN A VARIABLE:
  • 7. • Predefined functions: • Defined by the language we use • Defined to serve a specific purpose • Allows reusability of code • Makes program more efficient by making debugging easier • User defined functions: • Make the code according to our own specifications FUNCTIONS
  • 8. • The coding will be operated on a specific operand/operands. These variables are called the parameters of the function • The functionality of a function(coding of the function) • The output value of the function i.e. the result of the operation preformation(if any) is called return value.. FUNCTIONS: Parts of a function:
  • 9. • Characters: • Used to store a single character • We have a system to represent any character called ASCII • The values vary from 0-255 • Example all capital letters have values ranging form 65-90 • This concept comes from the concept of a byte • A byte contains 8 bits each and thus 2^8 (256) combinations available • Strings: • Used to store multiple characters. • Can be manipulated • Always stored in double quotes • String s=“C#” • Many functions available to manipulate strings • Example of functions used-Length , substring Variables Contd……
  • 10. • Call by reference: • The parameters which are operated upon will change their value after function call • In this case the memory reference of the parameter is sent which has the scope to change the original value of the variable bcoz the memory address is sent • It has the advantage of returning multiple variables without actually returning them!!!!!!!!!!!!!!! • Think yyy???? • Call by value: • It’s the normal function call where we require normal function calls FUNCTION CALLING: Two types:
  • 11. • GLOBAL: • Scope is defined throughout the scope of the program. • Can be accessed by all the functions of the program. • A Constructor needs to be initialized to give default values to these variables. • LOCAL: • These variables can be accessed only in their specific function definitions Another classification of variables: Scope…………..
  • 12. NOW LETS CREATE SOME REAL TIME APPS