Introduction to Programming Lecture 1 Overview Msury Mahunnah






















- Slides: 22

Introduction to Programming Lecture 1 – Overview Msury Mahunnah, Department of Informatics, Tallinn University of Technology

Course Overview n Course Code : IDK 1011 n Course Name : Introduction to Programming n Course Weight : 4. 00 ECTS Credits n Assessment Form : Examination n Lecturer Name : Msury Mahunnah n Office Location : Room ICT- 639 n E-mail : msury. mahunnah@ttu. ee n Consultation Time : n Tuesdays 09. 00 -10. 00 ICT-628 n Thursdays 11. 00 -12. 00 ICT-628

IDK 1011 – Course Page n https: //home. ttu. ee/ – Materjalid – Msury Mahunnah – IDK 1011_Introduction_to_Programming n http: //www. tud. ttu. ee/im/Msury. Mahunnah/IDK 101 1_Introduction_to_Programming/

Course Assessment n 6 Home Assignments @ 5% n 1 Class Test, 20% n 1 Final Exam, 50%. Must be done in IT computer class n Results: “ 5” – “ 4” – “ 3” – “ 2” – “ 1” – “ 0” – excellent very good satisfactory sufficient fail 91… 100 % 81… 90 % 71… 80 % 61… 70 % 51… 60 % 0… 50 %

Assessment Schedule

The purpose of the course n To develop logical, analytical, and algorithmic thinking and a systematic approach to problems and challenges. n To provide basic knowledge about programming using visual programming environments.

Course Topics n Introducing basics of programming. n Programming environment Visual Studio. Creating visual n n programs. Common controls, their purpose and properties. Visual Basic language rules. Principles of structured programming – language structures, control statements. Principles of event-driven programming. Typical events. User-friendly programs. Error processing. Standard debugging tools.

Learning Outcomes n Acquires the foundations of algorithm. n Acquires basic knowledge of programming. n Is familiar with the rules of programming language Visual Basic. n Can use main debugging tools. n Can use existing software components.

Course Schedule n Basics of programming and algorithms n Event driven programming n Programming with timers n Programming with external text files

Terminologies n The programming language is: 1. artificial language 2. created by man 3. to describe actions which must be done with computer

Terminologies n The programming language is just a tool to express thought (more precisely, an algorithm that represents a solution to any problem) to the computer. So it really doesn’t matter much, what programming language you use; your choice generally depends on personal experience/ knowledge about the specific programming language.

Terminologies n Programming is the process of writing instructions that the programming language uses to tell the computer what to do n Programming is a creative process done by programmers to instruct a computer on how to do a task

Software Development Life Cycle (SDLC Model) n A framework that describes the activities performed at each stage of a software development project.

Waterfall Model

SDLC – Waterfall Model n Requirements – defines needed information, function, behaviour, performance and interfaces. n Design – data structures, software architecture, interface representations, algorithmic details. n Implementation – source code, database, user documentation, testing.

Features of a Waterfall Model n A waterfall model is easy to follow. n It can be implemented for any size project. n Every stage has to be done separately at the right time so you cannot jump stages. n Documentation is produced at every stage of a waterfall model allowing people to understand what has been done. n Testing is done at every stage.

What is an algorithm? n Algorithm is a finite sequence of steps that solves a specific problem. n Let's say that you have a friend arriving at the airport, and your friend needs to get from the airport to academic hostel in TTÜ. n The following are two different algorithms that you might give your friend for getting to academic hostel:

Examples of algorithms n The taxi algorithm: 1. Go to the taxi stop. 2. Get in a taxi. 3. Give the driver the location address. n The bus algorithm: 1. Outside baggage claim, take airport bus. 2. Transfer to trolley No. 3 at Vabaduse Valjak. 3. Get off at Keemia trolley station. 4. Walk two blocks north to academic hostel.

Computer program algorithm n There are two commonly used tools to help to document computer program logic (the algorithm) n n Flowcharts – small problems Pseudocodes – large problems n Given a problem to write a program that reads two numbers and displays the numbers read in decreasing order

Flowchart symbols

Flowchart algorithm

Pseudocode algorithm