Week 1 Computer Programming 1.pdf
Document Details
Uploaded by Deleted User
Tags
Full Transcript
WEEK 1: Module 1 Home About us Startegy Contact ITE6102- Computer Programming 1 the process that professionals use to write code th...
WEEK 1: Module 1 Home About us Startegy Contact ITE6102- Computer Programming 1 the process that professionals use to write code that instructs how a computer, application or software program performs. CUARTERO, TRISTAN JORGE Page 01 WEEK 1: Module 1 Home About us Startegy Contact This course introduces students to the fundamental concepts of programming using a high-level programming language (e.g., Python, Java, or C++). Topics include data types, control structures, functions, arrays, and file handling. By the end of the course, students will be able to design, write, and debug simple programs. Course Description Page 02 WEEK 1: Module 1 Home About us Startegy Contact Objectives By the end of the course, students will: Understand the basic Write, compile, and execute Use basic control structures principles of programming. simple programs. like loops and conditionals. Work with functions, arrays, Debug and troubleshoot and file I/O. programming errors. Page 03 WEEK 1: Module 1 Home About us Startegy Contact Introduction to Programming The process of writing instructions that a computer can follow to carry out particular tasks is called programming. These instructions, which are expressed in programming languages, enable us to effectively solve complicated problems, automate processes, and regulate the behavior of machines. Page 04 WEEK 1: Module 1 Home About us Startegy Contact Why Learn to Code? 1. Why do you think learning programming is important in today’s world? 2. How do you think programming will impact your future career or industry? 3. What are some real-world examples of how programming has changed the way we live and work? Page 05 WEEK 1: Module 1 Home About us Startegy Contact Programming Python Languages It is widely used for data science, automation, and web development due to its simplicity and versatility. It’s a great language for beginners and experienced developers due to its easy-to-understand syntax that mirrors natural language. Java It is popular for building large-scale enterprise applications, mobile apps, and server-side development. It is designed to handle high-performance and scalable systems, making it ideal for large-scale enterprise applications like banking systems, e-commerce platforms, and enterprise resource planning (ERP) software. Page 06 WEEK 1: Module 1 Home About us Startegy Contact Programming C/C++ Languages It is used for system programming, game development, and embedded systems due to its high performance and memory control. It is widely used for system programming, where interaction with hardware is required. Summary Python: Simplicity and Readability Extensive Libraries and Frameworks Cross-Platform and Portability Java: Platform Independence (WORA) Scalability and Performance Strong Ecosystem and Community Support C/C++: High Performance Page 07 Low-Level Memory Control Wide Application in System Programming WEEK 1: Module 1 Home About us Startegy Contact Python Page 08 WEEK 1: Module 1 Home About us Startegy Contact Java Page 09 WEEK 1: Module 1 Home About us Startegy Contact C++ Page 10 WEEK 1: Module 1 Home About us Startegy Contact Machine Code The lowest level of code that a computer's central processing unit (CPU) can comprehend is called machine code. It is challenging for humans to write and understand because it is written in binary (1s and 0s). For instance, 10110000 01100001 might be a straightforward machine code command to shift data. While machine code is quite effective, it is laborious and prone to mistakes when programming. Page 11 WEEK 1: Module 1 Home About us Startegy Contact Assembly Language Machine code is one step below assembly language. Rather than using binary instructions, it uses human- readable symbols (mnemonics) such as MOV, ADD, and SUB, making it easier to grasp but still tightly linked to machine hardware. An assembler is required to translate assembly language into machine code. It gives programmers more control over the hardware, but it necessitates in-depth familiarity with the design of computers. Page 12 WEEK 1: Module 1 Home About us Startegy Contact High-Level Languages Humans can grasp and develop high-level programming languages (like Python, Java, and C++) far more easily. These languages abstract away the intricacies of hardware and employ syntax that is more akin to plain language. For instance, print("Hello, World!") is a straightforward command in Python that generates a message; this is significantly more user-friendly than composing the same command in machine code or assembly. To convert the code from these languages into a format that can be read by machines, a compiler or interpreter is needed. High-level languages are more adaptable and portable, enabling the same code to operate with little change on several machine types. Page 13 WEEK 1: Module 1 Home About us Startegy Contact IDE (Integrated Development Environment): An IDE is a software application that provides comprehensive tools for programmers to write, test, and debug their code. It typically includes: Introduction A code editor for writing code. to IDE and A compiler or interpreter to run the code. Debugging tools to find and fix errors. Additional features like syntax highlighting, code Compilers completion, and version control integration. Page 14 WEEK 1: Module 1 Home About us Startegy Contact IDE’s Example PyCharm Eclipse and IntelliJ IDEA Visual Studio for Python development. for Java. for C# and C++. PyCharm is an integrated IntelliJ is a Java IDE developed by Visual Studio is an Integrated development surroundings (IDE) used JetBrains. Development Environment(IDE) for programming in Python. It is Eclipse is an open-source IDE that’s developed by Microsoft to develop advanced using the Czech been around for quite some time. Desktop applications, GUI(Graphical organization JetBrains and is to be had User Interface), console, web for Windows, macOS, and Linux. applications, mobile applications, cloud, and web services, etc. An IDE enhances productivity by streamlining the development process, making it easier to write, test, and maintain code Page 15 within a single environment. WEEK 1: Module 1 Home About us Startegy Contact What is Compilers? Compilers translate high-level code generated by programmers into intermediate or machine code that can be run by computers. Code such as int x = 5; is translated, for instance, into CPU- understood computer instructions by a C++ compiler. There are various steps involved in compilation, such as: Lexical analysis to break the code into tokens. Syntax analysis to check for grammatical correctness. Code generation to produce machine code. NOTE: The compiler reports errors in the code and provides feedback, helping developers fix issues before running the program. Page 16 WEEK 1: Module 1 Home About us Startegy Contact Thank You. Thank You. Thank You. [email protected] tristan.porfolio.com 0951-169-2537 Page 17