0% found this document useful (0 votes)
6 views16 pages

1.-Introduction-to-Programming-Using-C

Programming for college

Uploaded by

rainaster27
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)
6 views16 pages

1.-Introduction-to-Programming-Using-C

Programming for college

Uploaded by

rainaster27
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/ 16

INTRODUCTION TO

PROGRAMMING USING C

HANS ZIN C. SANCHEZ


INSTRUCTOR
Hands-on introduction to programming
with C
Learn to write, compile, and run programs

OVERVIEW OF THE Focus on problem-solving and practical

COURSE coding
Prepares students for advanced
programming topics
By the end of this course, you will be able to:

1. Understand the basics of C language


2. Develop problem-solving skills
(algorithms, flowcharts, pseudocode)
COURSE 3. Write and debug C programs

OBJECTIVES 4. Apply loops, functions, arrays, pointers


5. Perform input/output operations
6. Manage memory allocation
7. Design and implement algorithms in C
8. Collaborate in coding projects
9. Build a foundation for advanced topics
WHAT IS A PROGRAMMING?

What is a Programming?
Programming is the process of giving instructions
to a computer.
A way to tell the computer what to do and how to
do it.
Helps solve real-world problems through code.
Example:
Without programming → a computer is just
hardware.
With programming → it can play music,
browse the internet, run apps, etc.
WHAT IS A PROGRAMMING LANGUAGE?

What is a Programming Language?


Think of it like human languages:
A formal language designed to communicate
Just like we use English, Filipino, or Bisaya to
instructions to a computer.
talk to people, we use programming
Used to implement algorithms (set of steps) languages to talk to computers!
Acts as a bridge between humans and computers
TYPES OF PROGRAMMING LANGUAGES (OVERVIEW)

Markup Languages
HTML • XML • CSS • YAML

System Programming Languages


C • C++ • Rust • Go

Domain-Specific Languages
SQL • R • MATLAB • LaTeX

High-Level Languages
Python • Java • JavaScript • C#

Low-Level Languages
Assembly • Machine Code
LOW-LEVEL LANGUAGES

Machine Language – Binary (0s and 1s), fast but hard to read
Assembly Language – Mnemonics (ADD, MOV), closer to hardware
HIGH-LEVEL LANGUAGES

Procedural – C, Pascal, Fortran (step-by-step)


Object-Oriented – Java, C++, Python (classes & objects)
Functional – Haskell, Lisp (math functions, immutability)
Scripting – Python, JS (quick automation)
Declarative – SQL, Prolog (focus on “what” not “how”)
OTHER LANGUAGES

Domain-Specific Languages → MATLAB, HTML, Verilog


System Programming → C, Rust, C++
Markup Languages → HTML, XML, Markdown
HI, I’M C!
INTRODUCTION

C is a general-purpose, high-level language that was originally


developed by Dennis M. Ritchie to develop the UNIX operating system at
Bell Labs. C was originally first implemented on the DEC PDP-11 computer
in 1972.
WHY C?
Easy to learn
Structured language
Forms the base of C++, Java, and Python programming languages
It produces fast and efficient programs

It can handle low-level activities


It can be compiled on a variety of computer platforms

Teaches fundamentals (loops, functions, problem-solving)


Learning C first = easier to learn other languages later
SETTING UP YOUR COMPUTER FOR PROGRAMMING

What do you need to start programming?


Just like you need a pen and paper to write, you need
special tools to write code!

🛠️ Tools you need: 📋Easy setup steps:


Text editor: Where you write your code (We’ll use Download and install Code::Blocks (includes everything!)
Code::Blocks) Test if it’s working properly
Compiler: Translates your code to computer language Create your first project folder
(We’ll use GCC) You’re ready to code!
Terminal/Command Prompt: Where you run your
programs.

Don't worry about setup! We'll do this together in our next class. I'll help everyone get
their computer ready for programming.
YOUR VERY FIRST C PROGRAM!

The “Hello, World!” Program


Every programmer’s first program! It just prints a
message on the screen.

#include <stdio.h>
What does this code mean?

#include <stdio.h> - Tells computer we want to use


int main() { printing functions
printf(“Hello, World!”); #int main() - This is where our program starts
printf("Hello, World!"); - Prints our message on screen
return 0; return 0; - Tells computer the program finished
}
successfully
HOW TO RUN THIS PROGRAM?

#include <stdio.h>

int main() {
printf(“Hello, World!”);

return 0;
}

1. Type the code → 2. Save as "hello.c" → 3. Compile it → 4. Run it → 5. See "Hello, World!" appear! 🌟

Congratulations! Once you run this program, you're officially a programmer! 🎊


THANK YOU

hanszin.sanchez@ustp.edu.ph

You might also like