ITC111-Computer Programming Lecture 1.pdf
Document Details
Rizal Technological University
Tags
Full Transcript
Rizal Technological University Institute of Computer Studies Course Orientation / Introduction to Computer Programming (Lecture) Maria Agnes C. Guardiano Faculty, ICS-BSIT ITC111-Computer Programming 1st Semester, SY 2024-2025 AGEND...
Rizal Technological University Institute of Computer Studies Course Orientation / Introduction to Computer Programming (Lecture) Maria Agnes C. Guardiano Faculty, ICS-BSIT ITC111-Computer Programming 1st Semester, SY 2024-2025 AGENDA Course Orientation Vision, Mission, Goals, Objectives The Course Syllabus Class Rules and Regulations Course Expectations Introduction to computer programming Programming terms Levels of programming Steps in developing a program Introduction to C++ programming Use of visual studio to create a program. COURSE DESCRIPTION Thiscourse introduces the fundamental concepts of computer programming. It provides a comprehensive introduction to logic formulation, program life cycle, algorithm design, programming techniques, good programming style, and the use of flowcharts and/or pseudo code for program design. Topics include I/O statements, data types, selection structures, repetition structures, functions, arrays and strings. COURSE OUTCOME (OBJECTIVES) Upon completion of the course, students should be able to: To analyze and solve computing problems using design tools that meet specific requirements. To demonstrate and apply appropriate program constructs in developing computer programs. Todesign, implement, test and debug a program, based on a given specification using the fundamental programming components. EXPECTATION During the course, the students are expected to: 1. Attend the agreed upon scheduled class weather online or f2f a. Students are responsible for all the undertaking of the lecture date. b. Your presence is a valuable contribution to the enrichment of your classmates with all your inputs shared in the class. 2. Be punctual to class sessions (5) minutes before the schedule. a. Time-management * (life skills), respect for the time of others. b. Efficient use of resources 3. Wear appropriate and decent attire during class sessions. a. Leads you to a proper disposition to agreed standard of behavior (propriety), EXPECTATION 4. Online Class: Observe protocols on online instruction a. Links to class sessions are provided in your google classroom. b. Students should activate their cameras while audio is on mute and can only unmute themselves when requested to unmute. c. Use the chat box only if instructed to type in something and with urgent concerns, questions and clarifications. d. Use the “raise hand” emoticon for any clarifications or responses from students. e. Send messages, address professors and/or classmates politely. f. Students are not allowed to share personal recordings of their classes. g. Students who missed their class could ask permission to access their recorded class. h. Students ensure their internet sustained connectivity i. Students actively engage in classroom interaction. j. Wait for the professor’s instruction before leaving the session. k. Click the link provided for the checking of attendance and other important matters shared by the professor. EXPECTATION 5. Accomplished learning plan to be submitted to the professor before end of the semester. a. Set the learning goals b. Strategies to achieve the learning goals. (S.M.A.R.T) 6. Availability of consulting time (within 15 minutes max) is provided and scheduled. Students make use of this opportunity to interact with the professor on matters pertaining to academic work ONLY. Respect the professors’ time. EXPECTATION FOR ASYNCHRONOUS 1. Regularly check posts and activities in the Google Classroom. 2. Regularly check their RTU-institutional gmail account and acknowledge receipt email messages if there is. 3. Study the given materials and submit requirements promptly. 4. Use the google classroom or simply send me a PM in messenger for any further and urgent concerns, questions and clarifications. 5. Send messages, address professors and/or classmates politely. 6. Read carefully, understand and follow the given instructions. POLICIES Question: What is a computer program? What is computer programming? What is a programming language? What are the elements of a program? What is procedural programming? What is object-oriented programming? Introduction to Computer Program A computer program is a sequence of instructions written using a Computer Programming Language to perform a specified task by the computer. The two important terms that we have used in the above definition are − Sequence of instructions Computer Programming Language Introduction to Computer Program A computer program is also called a computer software, which can range from two lines to millions of lines of instructions. Computer program instructions are also called program source code and computer programming is also called program coding. A computer without a computer program is just a dump box; it is programs that make computers active. Introduction to Computer Programming Some of the programming languages: Java C C++ Python PHP Pearl Ruby Uses of Computer Programs Today computer programs are being used in almost every field, household, agriculture, medical, entertainment, defense, communication, etc. Listed below are a few applications of computer programs − MS Word, MS Excel, Adobe Photoshop, Internet Explorer, Chrome, etc., are examples of computer programs. Computer programs are being used to develop graphics and special effects in movie making. Computer programs are being used to perform Ultrasounds, X-Rays, and other medical examinations. Computer programs are being used in our mobile phones for SMS, Chat, and voice communication. Computer Programmer Someone who can write computer programs or in other someone who can do computer programming is words, called a Computer Programmer. Based on computer programming language expertise, we can name a computer programmers as follows − C Programmer C++ Programmer Java Programmer Python Programmer PHP Programmer Perl Programmer Ruby Programmer Algorithm From programming point of view, an algorithm is a step-by-step procedure any problem. An algorithm is an effective method expressed as a to resolve finite set of well- defined instructions. Thus, a computer programmer lists down all the steps required to resolve a problem before writing the actual code. Following is a simple example of an algorithm to find out the largest number from a given list of numbers: 1. Get a list of numbers L1, L2, L3....LN 2. Assume L1 is the largest, Largest = L1 3. Take next number Li from the list and do the following 4. If Largest is less than Li 5. Largest = Li 6. If Li is last number from the list then 7. Print value stored in Largest and come out 8. Else repeat same process starting from step 3 Computer Programming - BASICS We will take you through the basics of those elements and make you comfortable to use them in various programming languages. These basic elements include: Programming Environment Basic Syntax Data Types Variables Keywords Basic Operators Decision Making Loops Numbers Characters Arrays Strings Functions File I/O Introduction to C++ Programming C++ is a middle-level programming language developed by Bjarne Stroustrup starting in 1979 at Bell Labs. C++ runs on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX. Why learn C++ C++ is very close to hardware, so you get a chance to work at a low level which gives you lot of control in terms of memory management, better performance and finally a robust software development. C++ programming gives you a clear understanding about Object Oriented Programming. You will understand low level implementation of polymorphism when you will implement virtual tables and virtual table pointers, or dynamic type identification. C++ is one of the every green programming languages and loved by millions of software developers. If you are a great C++ programmer then you will never sit without work and more importantly you will get highly paid for your work. C++ is the most widely used programming languages in application and system programming. So you can choose your area of interest of software development. C++ really teaches you the difference between compiler, linker and loader, different data types, storage classes, variable types their scopes etc. Hello World using C++ #include using namespace std; // main() is where program execution begins. int main() { cout