1 / 18

๐ŸŽ‰ Welcome Back, Programmer! ๐ŸŽ‰

Session 2: Your First Real C Program!

Hi [Student Name]! ๐Ÿ‘‹

Ready to write your first lines of code?

โœจ Today we become real programmers! โœจ

๐Ÿ  Homework Detective Report! ๐Ÿ”

๐Ÿก

What 3 programmed things did you find in your house?

๐Ÿ’ก

What would you like to program someday?

๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ

What did your family say about programming?

๐ŸŒŸ

Any cool discoveries this week?

โšก Quick Memory Challenge! โšก

Let's test your Session 1 memory!

๐Ÿค– What was our robot making?

๐Ÿ”ค Which programming language are we learning?

๐Ÿš— What has more code - a car or smartphone?

๐Ÿ’ช What's C programming's superpower?

๐Ÿงฉ Programming breaks big problems into...?

๐ŸŽฏ Today's Epic Mission! ๐ŸŽฏ

๐Ÿ”ง Set up our Programming Workshop
๐Ÿ‘จโ€๐Ÿ’ป Write our first C program
๐Ÿƒโ€โ™‚๏ธ Run real code on our computer
๐ŸŽจ Customize and make it our own
๐ŸŽ‰ Celebrate becoming a programmer!

By the end of today, you'll be writing real code!

๐Ÿ”ง Building Our Programming Workshop ๐Ÿ”ง

Just like a carpenter needs tools, programmers need special software!

๐Ÿ“

Text Editor

Where we write our code

(Like Word for code)

๐Ÿ”„

Compiler

Translates our code

(Computer translator)

๐Ÿญ

IDE

Puts everything together

(Complete workshop)

๐ŸŽฏ Meet Code::Blocks - Our Chosen IDE! ๐ŸŽฏ

๐Ÿ’ป

Why Code::Blocks is Perfect for Us:

  • โœ… Free - Doesn't cost anything!
  • โœ… Easy - Beginner-friendly interface
  • โœ… Complete - Everything we need built-in
  • โœ… Cross-platform - Works everywhere
  • โœ… Professional - Real programmers use it!

๐Ÿ“ฅ Installation Adventure! ๐Ÿ“ฅ

Let's set up your programming workshop together!

1. ๐ŸŒ Go to codeblocks.org
2. ๐Ÿ“ฅ Download for your system
3. ๐Ÿ”ง Install step by step
4. ๐Ÿš€ Launch our new IDE
5. ๐Ÿƒโ€โ™‚๏ธ Take a tour of the interface

Don't worry if it looks complicated - we'll only use the basics!

๐Ÿ—บ๏ธ Your Programming Cockpit Tour! ๐Ÿ—บ๏ธ

๐Ÿ“ File Menu

Where we create new programs

๐Ÿ“„ Code Area

Big white space where we write

๐Ÿ“บ Output Panel

Where we see our program's results

โ–ถ๏ธ Play Button

Runs our amazing programs!

๐ŸŒ The "Hello, World!" Tradition ๐ŸŒ

Every programmer in the world starts with this same program!

๐Ÿ‘‹

Amazing Facts:

  • ๐Ÿ† This tradition is over 50 years old!
  • ๐ŸŒŸ Google creators started with "Hello, World!"
  • ๐Ÿ’ป Mark Zuckerberg wrote this program too
  • ๐ŸŽฎ Game developers all began here
  • ๐Ÿš€ Even NASA programmers started this way!

๐Ÿ’ป Let's Write Our First C Program! ๐Ÿ’ป

Type exactly what I type - every character matters!

#include <stdio.h> int main() { printf("Hello, World!"); return 0; }

This is real programmer code!

๐Ÿ” Understanding Our Code! ๐Ÿ”

#include <stdio.h>
๐Ÿ“š "Hey computer, I want to use input/output functions!"
int main()
๐Ÿšช "This is where our program starts - the front door!"
printf("Hello, World!");
๐Ÿ“ข "Print this message on the screen!"
return 0;
โœ… "Program finished successfully!"

๐Ÿ’พ Save & Run Our Program! ๐Ÿ’พ

1. ๐Ÿ’พ Save as "my_first_program.c"
2. โ–ถ๏ธ Click "Build & Run" button
3. ๐Ÿ‘€ Watch the magic happen!
4. ๐ŸŽ‰ See "Hello, World!" appear!
๐ŸŽŠ The magic moment is coming! ๐ŸŽŠ

๐Ÿ› ๏ธ If We Get Errors - No Problem! ๐Ÿ› ๏ธ

Even professional programmers get errors! Let's fix them together!

Missing ;

Every statement needs a semicolon!

Like a period in English

Wrong Quotes

Use straight quotes " not curly ones

Computers are picky!

Spelling Errors

printf not Print or PRINTF

Exact spelling matters

Missing Brackets

Every { needs a }

They come in pairs!

๐ŸŽจ Make It Yours! ๐ŸŽจ

Let's customize your first program!

Challenge 1: Print your name instead!
printf("Hello, I'm [Your Name]!");
Challenge 2: Make multiple lines!
printf("Hello, I'm learning C!\n");
The \n makes a new line!
Challenge 3: Say whatever you want!
Your message to the world!

๐Ÿ’ญ Creative Ideas for Your Program! ๐Ÿ’ญ

๐Ÿ˜‚ Tell a Joke

"Why don't scientists trust atoms? Because they make up everything!"

๐ŸŒŸ Favorite Quote

"Be yourself; everyone else is already taken!"

๐ŸŽจ ASCII Art

Simple patterns with characters like * and -

๐Ÿ’Œ Family Message

A special message for your family to see!

๐Ÿ† Look What You Accomplished! ๐Ÿ†

๐Ÿ”ง Set up professional IDE
๐Ÿ’ป Wrote first C program
๐Ÿƒโ€โ™‚๏ธ Ran real code
๐Ÿ› ๏ธ Debugged like a pro
๐ŸŽจ Customized your code
๐Ÿ‘จโ€๐Ÿ’ป Officially a programmer!

You're now officially a C programmer! ๐ŸŽ‰

๐Ÿง  Quick Review Quiz! ๐Ÿง 

What does printf() do?

(Prints text to the screen)

What does \n do?

(Makes a new line)

Where does our program start?

(int main())

What file extension do we use?

(.c)

๐Ÿš€ Next Week: Variables! ๐Ÿš€

We'll learn how to make programs that remember information!

๐Ÿ  Fun Homework This Week:

  • ๐Ÿ”„ Practice: Run your Hello World 3 more times
  • ๐ŸŽจ Experiment: Try different messages
  • ๐Ÿ” Explore: Look at Code::Blocks menus
  • ๐Ÿ’ญ Think: 3 things you'd like your program to remember

How does it feel to be a programmer? ๐Ÿ˜Š