SlideShare a Scribd company logo
TURBO C
By: John Paul Espino
De La Salle University – Dasmarinas
Facebook.com/Johnpaul.dss
COMPUTER LANGUAGE
• A computer language is a set of rules and conventions used to convey the information to a computer
TYPES OF COMPUTER LANGUAGE
• Machine Language
• Low level Language
• High Level Language
MACHINE LANGUAGE
• The native tongue of a computer is a Machine Language. Each machine language instruction is a binary
string of 0’s and 1’s, that specifies an operation and identifies the memory cells involved in that
operation.
LOW LEVEL LANGUAGE
• In the Low level language, machine language is still used by the computer as its processes data, but the
low level language software first translate the specified operation symbol onto machine language
equivalent.
• Example is Assembly Language.
HIGH LEVEL LANGUAGE
• High Level Language is a programming language where an instruction resembles everyday language.
Instructions are given to a computer by using a convenient letters, symbols or English text rather than
using 1’s and 0’s code that the computer understand.
• Example is Turbo C, Pascal.
INTRODUCTION TO C LANGUAGE
• C, a high-level language programming language was developed in early 1970’s by Dennis Ritchie at Bell
Laboratories. Over the years, the power and flexibility of C, together with the availability of high quality
C compilers for computers of all sizes, have made it a popular language in industry for a wide variety of
applications.
TURBO C DEVELOPMENT SYSTEM
• There are two development system in Turbo C
a) IDE
b) Command-Line Development System
IDE
• IDE means Integrated Development Environment
• It is a screen display with windows and pull-down menus. The program listing, its output, error
messages, and other information are displayed in separate windows.
• You can use menu selection to invoke all the operations necessary to develop your program.
COMMAND-LINE DEVELOPMENT SYSTEM
• This is a traditional command line system, in which editing, compiling, debugging, linking and program
execution are invoked from the DOS command line prompt as separate activities, performed by
separate programs.
TURBO C ENVIRONMENT
FOUR PARTS OF THE TURBO C SCREEN
1. Main Menu -It is used to tell Turbo C to do something such as execute the editor or compile the program etc.
FOUR PARTS OF THE TURBO C SCREEN
2. Editor Status line and window - Provides a place where you will type your Turbo C
program.
FOUR PARTS OF THE TURBO C SCREEN
3. Compiler Message window - Is located beneath the edit window and is used to
display various compiler or linker messages. When a program is running, the message
window becomes the watch window is used to display debug information.
FOUR PARTS OF THE TURBO C SCREEN
4. Hot Key window reference line- The active HOT KEYS are locked at the bottom of the
screen are ready for use whenever you need them.
MAIN MENU
1. File
• Load – loads a file into the editor.
• Pick – displays a menu that contains the last 8 file you have edited.
• Save – saves the file that is currently in the editor.
• Write to – option lets you save a file.
MAIN MENU
• Directory – displays the current working directory and lets you choose a file to edit.
• Change Directory – changes the directory to the one you specify.
• OS Shell – loads the DOS command processor and lets you execute DOS command.
• Quit – option quits turbo C.
MAIN MENU
• Edit – lets you edit your program.
• Run – executes the current program. If the program has not yet
been, Run compiles it for you.
• Compile – it will produce an OBJ file or an EXE file. Then EXE file
can be executed from the DOS prompt.
• Project – is used to aid the development and maintenance of
large, multiple programs.
• Option
• Debug – lets you control the way turbo C’s integrated debugger
operates.
• Break/Watch – lets you set break programs in your program and
define variables and expressions to be watched while your
program executes.
HOT KEYS
• F1 - activates online help
• F2 – saves the file currently edited
• F3 – Loads a file
• F5 – zooms a window
• F6 – switches between windows
• F7 – trace
• F8 – step
• F9 – compiles and links your program
• F10 – toggles between the main menu and the editor
OTHER KEYBOARD COMMANDS
• Alt + F3 – pick
• Alt + F5 – switches between the environment screen and the output
screen
• Ctrl + F9 - compile and run the program
• CTRL + Y- Delete entire line
• CTRL + K B - mark start of the block
• CTRL + K K - mark the end of the block
• CTRL + K C - copy a block
• CTRL + K Y - delete a block
• CTRL + K V - move a block
• CTRL + Q A - find and replace
FILES USED IN C PROGRAM DEVELOPMENT
• Executable files
• Library and Runtime files
• Header files
• Programmer generated files
EXECUTABLE FILES
• Executable files are stored in the subdirectory BIN. The most important executable file for the turbo C
language is the TC.EXE.
• The BIN directory also contains program for the command line development process. For example :
 TCC command line compiler
 TLINK command line linker
 TLIB library file manager
LIBRARY AND RUNTIME FILES
• Various files are combined with your programs during linking. These files contains routines for a wide
variety of purposes.
• They are stored in LIB subdirectory.
LIBRARY FILES
• Library files are group of precompiled routines for performing specific task. For example, if a
programmer uses a function such as printf() to displayed text on the screen, the code to create the
display is contained in a library file.
HEADER FILES
• The subdirectory called INCLUDE contains header files.
• Each header files has a “.h” file extension.
PROGRAMMER-GENERATED FILES
• You can place the programs that you write in any subdirectory you choose, for instance a subdirectory
under TC.
BASIC PARTS OF THE TURBO C PROGRAM
• # include directive – contains information needed by the program to ensure the correct operation of
Turbo C’s standard library functions.
• # define directive – used to shorten the keywords in the program.
• main () – this is the main body of the program that performs the principal function of a program.
BASIC PARTS OF THE TURBO C PROGRAM
• { (start) – this symbol is used to represent the beginning of a program
• Clrscr () – is used to clear the screen
syntax : clrscr ();
• Main body – this refers to the set of statements in a computer program
• } (end) – this must be the final statement of a program.
BASIC PARTS OF THE TURBO C PROGRAM
• getch () – this part gets characters from the keyboard, and does not echo on the screen.
syntax: getch();
• getche () – gets the characters from the console, and echoes on the screen.
syntax: getche();
EXAMPLE
• Create a program that will output this statement: “Hello! Welcome to Turbo C
Programming”
Solution:
#include<stdio.h>
main ()
{
printf(“Hello”);
printf(“Welcome to Turbo C Programming”);
getche();
}

More Related Content

What's hot

Lect 1. introduction to programming languages
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languagesVarun Garg
 
introduction to programming languages
introduction to programming languagesintroduction to programming languages
introduction to programming languages
NaqashAhmad14
 
Basic shortcut keys of computer or PC
Basic shortcut keys of computer or PCBasic shortcut keys of computer or PC
Basic shortcut keys of computer or PC
shashikant pabari
 
Programming Fundamentals
Programming FundamentalsProgramming Fundamentals
Programming Fundamentals
Trivuz ত্রিভুজ
 
Theory of programming
Theory of programmingTheory of programming
Theory of programming
tcc_joemarie
 
What is token c programming
What is token c programmingWhat is token c programming
What is token c programming
Rumman Ansari
 
1. over view and history of c
1. over view and history of c1. over view and history of c
1. over view and history of cHarish Kumawat
 
Introduction to c programming language
Introduction to c programming languageIntroduction to c programming language
Introduction to c programming language
sanjay joshi
 
Introduction to programming concepts
Introduction to programming conceptsIntroduction to programming concepts
Introduction to programming conceptshermiraguilar
 
Fundamental Programming Lect 1
Fundamental Programming Lect 1Fundamental Programming Lect 1
Fundamental Programming Lect 1
Namrah Erum
 
Program logic formulation
Program logic formulationProgram logic formulation
Program logic formulationSara Corpuz
 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programming
Noel Malle
 
Introduction to Programming Languages
Introduction to Programming LanguagesIntroduction to Programming Languages
Introduction to Programming Languages
educationfront
 
Chapter 1 - An Introduction to Programming
Chapter 1 - An Introduction to ProgrammingChapter 1 - An Introduction to Programming
Chapter 1 - An Introduction to Programming
mshellman
 
Basic programming concepts
Basic programming conceptsBasic programming concepts
Basic programming conceptssalmankhan570
 
Introduction to c++
Introduction to c++Introduction to c++
Introduction to c++
Himanshu Kaushik
 
Algorithms and Flowcharts
Algorithms and FlowchartsAlgorithms and Flowcharts
Algorithms and Flowcharts
Deva Singh
 
Introduction to Computer Programming
Introduction to Computer ProgrammingIntroduction to Computer Programming
Basics of c++ Programming Language
Basics of c++ Programming LanguageBasics of c++ Programming Language
Basics of c++ Programming Language
Ahmad Idrees
 

What's hot (20)

Lect 1. introduction to programming languages
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languages
 
introduction to programming languages
introduction to programming languagesintroduction to programming languages
introduction to programming languages
 
Basic shortcut keys of computer or PC
Basic shortcut keys of computer or PCBasic shortcut keys of computer or PC
Basic shortcut keys of computer or PC
 
History of programming
History of programmingHistory of programming
History of programming
 
Programming Fundamentals
Programming FundamentalsProgramming Fundamentals
Programming Fundamentals
 
Theory of programming
Theory of programmingTheory of programming
Theory of programming
 
What is token c programming
What is token c programmingWhat is token c programming
What is token c programming
 
1. over view and history of c
1. over view and history of c1. over view and history of c
1. over view and history of c
 
Introduction to c programming language
Introduction to c programming languageIntroduction to c programming language
Introduction to c programming language
 
Introduction to programming concepts
Introduction to programming conceptsIntroduction to programming concepts
Introduction to programming concepts
 
Fundamental Programming Lect 1
Fundamental Programming Lect 1Fundamental Programming Lect 1
Fundamental Programming Lect 1
 
Program logic formulation
Program logic formulationProgram logic formulation
Program logic formulation
 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programming
 
Introduction to Programming Languages
Introduction to Programming LanguagesIntroduction to Programming Languages
Introduction to Programming Languages
 
Chapter 1 - An Introduction to Programming
Chapter 1 - An Introduction to ProgrammingChapter 1 - An Introduction to Programming
Chapter 1 - An Introduction to Programming
 
Basic programming concepts
Basic programming conceptsBasic programming concepts
Basic programming concepts
 
Introduction to c++
Introduction to c++Introduction to c++
Introduction to c++
 
Algorithms and Flowcharts
Algorithms and FlowchartsAlgorithms and Flowcharts
Algorithms and Flowcharts
 
Introduction to Computer Programming
Introduction to Computer ProgrammingIntroduction to Computer Programming
Introduction to Computer Programming
 
Basics of c++ Programming Language
Basics of c++ Programming LanguageBasics of c++ Programming Language
Basics of c++ Programming Language
 

Similar to Computer programming - turbo c environment

C session 1.pptx
C session 1.pptxC session 1.pptx
C session 1.pptx
NIRMALRAJSCSE20
 
C Programming[Sample]
C Programming[Sample]C Programming[Sample]
C Programming[Sample]
Mostafa Ali
 
Embedded c c++ programming fundamentals master
Embedded c c++ programming fundamentals masterEmbedded c c++ programming fundamentals master
Embedded c c++ programming fundamentals master
Hossam Hassan
 
Programming in C
Programming in CProgramming in C
Programming in C
Rvishnupriya2
 
Programming in c
Programming in cProgramming in c
Programming in c
vishnu973656
 
Fundamental of Information Technology - UNIT 7
Fundamental of Information Technology - UNIT 7Fundamental of Information Technology - UNIT 7
Fundamental of Information Technology - UNIT 7
Shipra Swati
 
C Programming Lecture 2 - Structure of a C Program.pptx
C Programming Lecture 2 - Structure of a C Program.pptxC Programming Lecture 2 - Structure of a C Program.pptx
C Programming Lecture 2 - Structure of a C Program.pptx
Murali M
 
Embedded programming Embedded programming (1).pptx
Embedded programming Embedded programming (1).pptxEmbedded programming Embedded programming (1).pptx
Embedded programming Embedded programming (1).pptx
lematadese670
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
Manoj Tyagi
 
Computer and multimedia Week 1 Windows Architecture.pptx
Computer and multimedia Week 1 Windows Architecture.pptxComputer and multimedia Week 1 Windows Architecture.pptx
Computer and multimedia Week 1 Windows Architecture.pptx
fatahozil
 
Csc240 -lecture_3
Csc240  -lecture_3Csc240  -lecture_3
Csc240 -lecture_3
Ainuddin Yousufzai
 
Learn C Language
Learn C LanguageLearn C Language
Learn C Language
Kindle World..!
 
C programming
C programming C programming
C programming
Rohan Gajre
 
C intro
C introC intro
C intro
Mohit Patodia
 
Programming Fundamentals and Programming Languages Concepts Translators
Programming Fundamentals and Programming Languages Concepts TranslatorsProgramming Fundamentals and Programming Languages Concepts Translators
Programming Fundamentals and Programming Languages Concepts Translators
imtiazalijoono
 
X-CS-8.0 Programming in C Language 2022-2023.pdf
X-CS-8.0 Programming in C Language 2022-2023.pdfX-CS-8.0 Programming in C Language 2022-2023.pdf
X-CS-8.0 Programming in C Language 2022-2023.pdf
Alefya1
 
C programming
C programmingC programming
C programming
Anurag Byala
 
computer languages
computer languagescomputer languages
computer languages
Rajendran
 
C-PROGRAMMING-LANGUAGE.pptx
C-PROGRAMMING-LANGUAGE.pptxC-PROGRAMMING-LANGUAGE.pptx
C-PROGRAMMING-LANGUAGE.pptx
DhirendraShahi2
 

Similar to Computer programming - turbo c environment (20)

C session 1.pptx
C session 1.pptxC session 1.pptx
C session 1.pptx
 
C Programming[Sample]
C Programming[Sample]C Programming[Sample]
C Programming[Sample]
 
Embedded c c++ programming fundamentals master
Embedded c c++ programming fundamentals masterEmbedded c c++ programming fundamentals master
Embedded c c++ programming fundamentals master
 
Programming in C
Programming in CProgramming in C
Programming in C
 
Programming in c
Programming in cProgramming in c
Programming in c
 
Fundamental of Information Technology - UNIT 7
Fundamental of Information Technology - UNIT 7Fundamental of Information Technology - UNIT 7
Fundamental of Information Technology - UNIT 7
 
C Programming Lecture 2 - Structure of a C Program.pptx
C Programming Lecture 2 - Structure of a C Program.pptxC Programming Lecture 2 - Structure of a C Program.pptx
C Programming Lecture 2 - Structure of a C Program.pptx
 
Embedded programming Embedded programming (1).pptx
Embedded programming Embedded programming (1).pptxEmbedded programming Embedded programming (1).pptx
Embedded programming Embedded programming (1).pptx
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
 
Computer and multimedia Week 1 Windows Architecture.pptx
Computer and multimedia Week 1 Windows Architecture.pptxComputer and multimedia Week 1 Windows Architecture.pptx
Computer and multimedia Week 1 Windows Architecture.pptx
 
C PROGRAMMING
C PROGRAMMINGC PROGRAMMING
C PROGRAMMING
 
Csc240 -lecture_3
Csc240  -lecture_3Csc240  -lecture_3
Csc240 -lecture_3
 
Learn C Language
Learn C LanguageLearn C Language
Learn C Language
 
C programming
C programming C programming
C programming
 
C intro
C introC intro
C intro
 
Programming Fundamentals and Programming Languages Concepts Translators
Programming Fundamentals and Programming Languages Concepts TranslatorsProgramming Fundamentals and Programming Languages Concepts Translators
Programming Fundamentals and Programming Languages Concepts Translators
 
X-CS-8.0 Programming in C Language 2022-2023.pdf
X-CS-8.0 Programming in C Language 2022-2023.pdfX-CS-8.0 Programming in C Language 2022-2023.pdf
X-CS-8.0 Programming in C Language 2022-2023.pdf
 
C programming
C programmingC programming
C programming
 
computer languages
computer languagescomputer languages
computer languages
 
C-PROGRAMMING-LANGUAGE.pptx
C-PROGRAMMING-LANGUAGE.pptxC-PROGRAMMING-LANGUAGE.pptx
C-PROGRAMMING-LANGUAGE.pptx
 

More from John Paul Espino

Religion Education - Sa kabataang Pilipino - A La Juventud Filipina
Religion Education - Sa kabataang Pilipino - A La Juventud FilipinaReligion Education - Sa kabataang Pilipino - A La Juventud Filipina
Religion Education - Sa kabataang Pilipino - A La Juventud Filipina
John Paul Espino
 
Religion Education - Human Dignity - Freedom and Responsibility
Religion Education - Human Dignity - Freedom and ResponsibilityReligion Education - Human Dignity - Freedom and Responsibility
Religion Education - Human Dignity - Freedom and Responsibility
John Paul Espino
 
Public Speaking and Leadership -Process of Reading
Public Speaking and Leadership -Process of ReadingPublic Speaking and Leadership -Process of Reading
Public Speaking and Leadership -Process of Reading
John Paul Espino
 
Environmental Engineering - Case Study - The Minamata Disease Disaster
Environmental Engineering - Case Study - The Minamata Disease DisasterEnvironmental Engineering - Case Study - The Minamata Disease Disaster
Environmental Engineering - Case Study - The Minamata Disease Disaster
John Paul Espino
 
Computer Programming - if Statements & Relational Operators
Computer Programming - if Statements  & Relational OperatorsComputer Programming - if Statements  & Relational Operators
Computer Programming - if Statements & Relational Operators
John Paul Espino
 
Philippine Constitution - Parliamentary Immunity
Philippine Constitution - Parliamentary Immunity Philippine Constitution - Parliamentary Immunity
Philippine Constitution - Parliamentary Immunity
John Paul Espino
 
Philippine Constitution - Article XI - Accountability of Public Officers
Philippine Constitution - Article XI - Accountability of Public OfficersPhilippine Constitution - Article XI - Accountability of Public Officers
Philippine Constitution - Article XI - Accountability of Public Officers
John Paul Espino
 
Philippine Constitution - Article X - Local Government
Philippine Constitution - Article X - Local GovernmentPhilippine Constitution - Article X - Local Government
Philippine Constitution - Article X - Local Government
John Paul Espino
 
Philippine Constitution - Article VIII - Judicial Department
Philippine Constitution - Article VIII - Judicial DepartmentPhilippine Constitution - Article VIII - Judicial Department
Philippine Constitution - Article VIII - Judicial Department
John Paul Espino
 
Philippine Constitution - Article VII - Executive Department
Philippine Constitution - Article VII - Executive DepartmentPhilippine Constitution - Article VII - Executive Department
Philippine Constitution - Article VII - Executive Department
John Paul Espino
 
Philippine Constitution - Article VI - Legislative Power
Philippine Constitution - Article VI - Legislative PowerPhilippine Constitution - Article VI - Legislative Power
Philippine Constitution - Article VI - Legislative Power
John Paul Espino
 
Philippine Constitution - ARTICLE IX - Constitutional Commissions
Philippine Constitution - ARTICLE IX - Constitutional Commissions Philippine Constitution - ARTICLE IX - Constitutional Commissions
Philippine Constitution - ARTICLE IX - Constitutional Commissions
John Paul Espino
 
Philosophy - the aesthetic attitude and the sublime
Philosophy - the aesthetic attitude and the sublime Philosophy - the aesthetic attitude and the sublime
Philosophy - the aesthetic attitude and the sublime
John Paul Espino
 
Philosophy - the aestheic attidude and the sublime
Philosophy - the aestheic attidude and the sublimePhilosophy - the aestheic attidude and the sublime
Philosophy - the aestheic attidude and the sublime
John Paul Espino
 
Information literacy - effects of social networking to students thesis presen...
Information literacy - effects of social networking to students thesis presen...Information literacy - effects of social networking to students thesis presen...
Information literacy - effects of social networking to students thesis presen...
John Paul Espino
 
Fundamentals of Accounting - Posting & Trial Balance
Fundamentals of Accounting - Posting & Trial BalanceFundamentals of Accounting - Posting & Trial Balance
Fundamentals of Accounting - Posting & Trial Balance
John Paul Espino
 
Fundamentals of accounting - manufacturing
Fundamentals of accounting - manufacturingFundamentals of accounting - manufacturing
Fundamentals of accounting - manufacturing
John Paul Espino
 
Fundamentals of accounting - cost value profit (cvp)
Fundamentals of accounting - cost value profit (cvp)Fundamentals of accounting - cost value profit (cvp)
Fundamentals of accounting - cost value profit (cvp)
John Paul Espino
 
Ethics - nicomachean ethics section 7 - 9
Ethics - nicomachean ethics section 7 - 9 Ethics - nicomachean ethics section 7 - 9
Ethics - nicomachean ethics section 7 - 9
John Paul Espino
 
Ethics - aristotle's ethics
Ethics - aristotle's ethicsEthics - aristotle's ethics
Ethics - aristotle's ethics
John Paul Espino
 

More from John Paul Espino (20)

Religion Education - Sa kabataang Pilipino - A La Juventud Filipina
Religion Education - Sa kabataang Pilipino - A La Juventud FilipinaReligion Education - Sa kabataang Pilipino - A La Juventud Filipina
Religion Education - Sa kabataang Pilipino - A La Juventud Filipina
 
Religion Education - Human Dignity - Freedom and Responsibility
Religion Education - Human Dignity - Freedom and ResponsibilityReligion Education - Human Dignity - Freedom and Responsibility
Religion Education - Human Dignity - Freedom and Responsibility
 
Public Speaking and Leadership -Process of Reading
Public Speaking and Leadership -Process of ReadingPublic Speaking and Leadership -Process of Reading
Public Speaking and Leadership -Process of Reading
 
Environmental Engineering - Case Study - The Minamata Disease Disaster
Environmental Engineering - Case Study - The Minamata Disease DisasterEnvironmental Engineering - Case Study - The Minamata Disease Disaster
Environmental Engineering - Case Study - The Minamata Disease Disaster
 
Computer Programming - if Statements & Relational Operators
Computer Programming - if Statements  & Relational OperatorsComputer Programming - if Statements  & Relational Operators
Computer Programming - if Statements & Relational Operators
 
Philippine Constitution - Parliamentary Immunity
Philippine Constitution - Parliamentary Immunity Philippine Constitution - Parliamentary Immunity
Philippine Constitution - Parliamentary Immunity
 
Philippine Constitution - Article XI - Accountability of Public Officers
Philippine Constitution - Article XI - Accountability of Public OfficersPhilippine Constitution - Article XI - Accountability of Public Officers
Philippine Constitution - Article XI - Accountability of Public Officers
 
Philippine Constitution - Article X - Local Government
Philippine Constitution - Article X - Local GovernmentPhilippine Constitution - Article X - Local Government
Philippine Constitution - Article X - Local Government
 
Philippine Constitution - Article VIII - Judicial Department
Philippine Constitution - Article VIII - Judicial DepartmentPhilippine Constitution - Article VIII - Judicial Department
Philippine Constitution - Article VIII - Judicial Department
 
Philippine Constitution - Article VII - Executive Department
Philippine Constitution - Article VII - Executive DepartmentPhilippine Constitution - Article VII - Executive Department
Philippine Constitution - Article VII - Executive Department
 
Philippine Constitution - Article VI - Legislative Power
Philippine Constitution - Article VI - Legislative PowerPhilippine Constitution - Article VI - Legislative Power
Philippine Constitution - Article VI - Legislative Power
 
Philippine Constitution - ARTICLE IX - Constitutional Commissions
Philippine Constitution - ARTICLE IX - Constitutional Commissions Philippine Constitution - ARTICLE IX - Constitutional Commissions
Philippine Constitution - ARTICLE IX - Constitutional Commissions
 
Philosophy - the aesthetic attitude and the sublime
Philosophy - the aesthetic attitude and the sublime Philosophy - the aesthetic attitude and the sublime
Philosophy - the aesthetic attitude and the sublime
 
Philosophy - the aestheic attidude and the sublime
Philosophy - the aestheic attidude and the sublimePhilosophy - the aestheic attidude and the sublime
Philosophy - the aestheic attidude and the sublime
 
Information literacy - effects of social networking to students thesis presen...
Information literacy - effects of social networking to students thesis presen...Information literacy - effects of social networking to students thesis presen...
Information literacy - effects of social networking to students thesis presen...
 
Fundamentals of Accounting - Posting & Trial Balance
Fundamentals of Accounting - Posting & Trial BalanceFundamentals of Accounting - Posting & Trial Balance
Fundamentals of Accounting - Posting & Trial Balance
 
Fundamentals of accounting - manufacturing
Fundamentals of accounting - manufacturingFundamentals of accounting - manufacturing
Fundamentals of accounting - manufacturing
 
Fundamentals of accounting - cost value profit (cvp)
Fundamentals of accounting - cost value profit (cvp)Fundamentals of accounting - cost value profit (cvp)
Fundamentals of accounting - cost value profit (cvp)
 
Ethics - nicomachean ethics section 7 - 9
Ethics - nicomachean ethics section 7 - 9 Ethics - nicomachean ethics section 7 - 9
Ethics - nicomachean ethics section 7 - 9
 
Ethics - aristotle's ethics
Ethics - aristotle's ethicsEthics - aristotle's ethics
Ethics - aristotle's ethics
 

Recently uploaded

FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
UiPathCommunity
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
g2nightmarescribd
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Product School
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 

Recently uploaded (20)

FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 

Computer programming - turbo c environment

  • 1. TURBO C By: John Paul Espino De La Salle University – Dasmarinas Facebook.com/Johnpaul.dss
  • 2.
  • 3. COMPUTER LANGUAGE • A computer language is a set of rules and conventions used to convey the information to a computer
  • 4. TYPES OF COMPUTER LANGUAGE • Machine Language • Low level Language • High Level Language
  • 5. MACHINE LANGUAGE • The native tongue of a computer is a Machine Language. Each machine language instruction is a binary string of 0’s and 1’s, that specifies an operation and identifies the memory cells involved in that operation.
  • 6. LOW LEVEL LANGUAGE • In the Low level language, machine language is still used by the computer as its processes data, but the low level language software first translate the specified operation symbol onto machine language equivalent. • Example is Assembly Language.
  • 7. HIGH LEVEL LANGUAGE • High Level Language is a programming language where an instruction resembles everyday language. Instructions are given to a computer by using a convenient letters, symbols or English text rather than using 1’s and 0’s code that the computer understand. • Example is Turbo C, Pascal.
  • 8. INTRODUCTION TO C LANGUAGE • C, a high-level language programming language was developed in early 1970’s by Dennis Ritchie at Bell Laboratories. Over the years, the power and flexibility of C, together with the availability of high quality C compilers for computers of all sizes, have made it a popular language in industry for a wide variety of applications.
  • 9. TURBO C DEVELOPMENT SYSTEM • There are two development system in Turbo C a) IDE b) Command-Line Development System
  • 10. IDE • IDE means Integrated Development Environment • It is a screen display with windows and pull-down menus. The program listing, its output, error messages, and other information are displayed in separate windows. • You can use menu selection to invoke all the operations necessary to develop your program.
  • 11. COMMAND-LINE DEVELOPMENT SYSTEM • This is a traditional command line system, in which editing, compiling, debugging, linking and program execution are invoked from the DOS command line prompt as separate activities, performed by separate programs.
  • 13. FOUR PARTS OF THE TURBO C SCREEN 1. Main Menu -It is used to tell Turbo C to do something such as execute the editor or compile the program etc.
  • 14. FOUR PARTS OF THE TURBO C SCREEN 2. Editor Status line and window - Provides a place where you will type your Turbo C program.
  • 15. FOUR PARTS OF THE TURBO C SCREEN 3. Compiler Message window - Is located beneath the edit window and is used to display various compiler or linker messages. When a program is running, the message window becomes the watch window is used to display debug information.
  • 16. FOUR PARTS OF THE TURBO C SCREEN 4. Hot Key window reference line- The active HOT KEYS are locked at the bottom of the screen are ready for use whenever you need them.
  • 17. MAIN MENU 1. File • Load – loads a file into the editor. • Pick – displays a menu that contains the last 8 file you have edited. • Save – saves the file that is currently in the editor. • Write to – option lets you save a file.
  • 18. MAIN MENU • Directory – displays the current working directory and lets you choose a file to edit. • Change Directory – changes the directory to the one you specify. • OS Shell – loads the DOS command processor and lets you execute DOS command. • Quit – option quits turbo C.
  • 19. MAIN MENU • Edit – lets you edit your program. • Run – executes the current program. If the program has not yet been, Run compiles it for you. • Compile – it will produce an OBJ file or an EXE file. Then EXE file can be executed from the DOS prompt. • Project – is used to aid the development and maintenance of large, multiple programs. • Option • Debug – lets you control the way turbo C’s integrated debugger operates. • Break/Watch – lets you set break programs in your program and define variables and expressions to be watched while your program executes.
  • 20. HOT KEYS • F1 - activates online help • F2 – saves the file currently edited • F3 – Loads a file • F5 – zooms a window • F6 – switches between windows • F7 – trace • F8 – step • F9 – compiles and links your program • F10 – toggles between the main menu and the editor
  • 21. OTHER KEYBOARD COMMANDS • Alt + F3 – pick • Alt + F5 – switches between the environment screen and the output screen • Ctrl + F9 - compile and run the program • CTRL + Y- Delete entire line • CTRL + K B - mark start of the block • CTRL + K K - mark the end of the block • CTRL + K C - copy a block • CTRL + K Y - delete a block • CTRL + K V - move a block • CTRL + Q A - find and replace
  • 22. FILES USED IN C PROGRAM DEVELOPMENT • Executable files • Library and Runtime files • Header files • Programmer generated files
  • 23. EXECUTABLE FILES • Executable files are stored in the subdirectory BIN. The most important executable file for the turbo C language is the TC.EXE. • The BIN directory also contains program for the command line development process. For example :  TCC command line compiler  TLINK command line linker  TLIB library file manager
  • 24. LIBRARY AND RUNTIME FILES • Various files are combined with your programs during linking. These files contains routines for a wide variety of purposes. • They are stored in LIB subdirectory.
  • 25. LIBRARY FILES • Library files are group of precompiled routines for performing specific task. For example, if a programmer uses a function such as printf() to displayed text on the screen, the code to create the display is contained in a library file.
  • 26. HEADER FILES • The subdirectory called INCLUDE contains header files. • Each header files has a “.h” file extension.
  • 27. PROGRAMMER-GENERATED FILES • You can place the programs that you write in any subdirectory you choose, for instance a subdirectory under TC.
  • 28. BASIC PARTS OF THE TURBO C PROGRAM • # include directive – contains information needed by the program to ensure the correct operation of Turbo C’s standard library functions. • # define directive – used to shorten the keywords in the program. • main () – this is the main body of the program that performs the principal function of a program.
  • 29. BASIC PARTS OF THE TURBO C PROGRAM • { (start) – this symbol is used to represent the beginning of a program • Clrscr () – is used to clear the screen syntax : clrscr (); • Main body – this refers to the set of statements in a computer program • } (end) – this must be the final statement of a program.
  • 30. BASIC PARTS OF THE TURBO C PROGRAM • getch () – this part gets characters from the keyboard, and does not echo on the screen. syntax: getch(); • getche () – gets the characters from the console, and echoes on the screen. syntax: getche();
  • 31. EXAMPLE • Create a program that will output this statement: “Hello! Welcome to Turbo C Programming” Solution: #include<stdio.h> main () { printf(“Hello”); printf(“Welcome to Turbo C Programming”); getche(); }