0% found this document useful (0 votes)
2 views12 pages

Intro to Programming Lecture

The document provides an introduction to computer programming, focusing on three languages: Python, Java, and C++. It highlights the importance of programming in automating tasks, creating software, and its career opportunities, while also explaining the differences between compiled and interpreted languages. The document includes examples of 'Hello, World!' in each language and suggests next steps for learners, including installing tools and practicing syntax.

Uploaded by

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

Intro to Programming Lecture

The document provides an introduction to computer programming, focusing on three languages: Python, Java, and C++. It highlights the importance of programming in automating tasks, creating software, and its career opportunities, while also explaining the differences between compiled and interpreted languages. The document includes examples of 'Hello, World!' in each language and suggests next steps for learners, including installing tools and practicing syntax.

Uploaded by

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

Intro to Computer Programming

Python, Java, C++


What is Programming?

• Telling a computer what to do using code


• Used in everyday life: apps, games, websites,
ATMs
Why Learn Programming?

• Automate tasks
• Create apps & software
• Data analysis & AI
• Lucrative career opportunities
Why 3 Languages?

• Python – Easy syntax, great for beginners


• Java – Cross-platform, object-oriented
• C++ – High performance, low-level system
programming
Compiled vs Interpreted

• Python: Interpreted
• Java: Compiled to bytecode (JVM)
• C++: Compiled to machine code
Development Tools

• Python: IDLE / VS Code


• Java: Eclipse / IntelliJ
• C++: GCC / Code::Blocks / VS Code
Hello World – Python

• print("Hello, World!")
Hello World – Java

• public class Hello {


• public static void main(String[] args) {
• System.out.println("Hello, World!");
• }
• }
Hello World – C++

• #include <iostream>
• using namespace std;
• int main() {
• cout << "Hello, World!";
• return 0;
• }
Compare Syntax

• Python: Minimal and readable


• Java: Verbose, strict typing
• C++: Powerful but more complex
Next Steps

• Install Python, Java, and C++ tools


• Try Hello World examples
• Explore syntax differences
Q&A + Homework

• Homework:
• Install tools
• Write Hello World in each language
• Ask questions in the group/forum

You might also like