Yapısal Programlama Yüksek Düzeyli Dillerin Gelişim Süreci –1954-1957, Fortran (by IBM), for creating scientific and engineering applications, first commercial.

Slides:



Advertisements
Benzer bir sunumlar
Gerekli olduğunda insanlara ulaşın Yer Uzantıları Reach prospective customers at important moment with location extensions. Location Extentions.
Advertisements

Google Display Network Targeting options.
Bölüm 2: Program Denetimi
I ASİMO I ASİMO PREPARED: CENGİZ MURAT TEKİNBÜĞRÜ English Course Presentation TURKEY Mechatronics Engineering at SAKARYA UNIVERSITY PREPARED: CENGİZ.
MUST.
İŞ SIRALAMA VE ÇİZELGELEME DERS 5
Bir Problemin Programa Dönüştürülme Süreci
Hareket halindeki insanlara ulaşın.Mobil Arama Ağı Reklamları Reach customers with Mobile Search Network.
.NET Framework 2.0 Öğr. Gör. Dr. Mustafa Cem Kasapbaşı Hafta 1 Ref Beginning ASP.NET 2.0 in C# 2005 From Novice to Professional İnternet Programlama Dilleri.
Programlama Araçları Metin Editörleri Araçlar
Outline 4.1 Giriş 4.2 Algoritmalar 4.3 Pseudocode 4.4 Kontrol İfadeleri 4.5 if tek-seçimli ifadeler 4.6 if else seçimli ifadeler 4.7 while döngü ifadeleri.
CONDITIONAL SENTENCES
Kabuk Programlama Shell Scripting(bash)
Bilgisayarlar kodu nasıl işler?
Kampanyanızı optimize edin. Görüntülü Reklam Kampanyası Optimize Edici'yi Kullanma Display Ads Campaign Optimizer. Let Google technology manage your diplay.
INTRODUCTION TO JAVASCRIPT. JAVASCRIPT ► JavaScript is used in millions of Web pages to improve the design, validate forms, detect browsers, create cookies,
COSTUMES KILIKLAR (KOSTÜMLER)
Doç. Dr. Cemil Öz SAÜ Bilgisayar Mühendisliği Dr. Cemil Öz.
BM-305 Mikrodenetleyiciler Güz 2015 (6. Sunu) (Yrd. Doç. Dr. Deniz Dal)
While EndDo Repeat Until For Next.  Program mantığı içinde belirli bir düzene bağlı kalarak sürekli tekrar eden işlemlerin belirli bir kritere/değişkene.
S ÜLEYMAN Ş AH ÜN İ VERS İ TES İ DERS KAYIT İŞ LEMLER İ / COURSE REGISTRATION PROCESS.
© 2016 Future simple (will) © 2016 ingilizcebankasi.com.
SIK kullanılan CÜMLELER
Ali Akpınar © 2009 Dem Publishing & Language Service  Introducing yourself Numbers Greeting Beginner Turkish Lessons 1“Merhaba!”
Practice your writing skills
First Conditional Sentences. LOOK AT THE EXAMPLES If the weather is fine, we’ll play tenis If I have enough money, I’ll buy the car If it rains, we’ll.
INTRODUCTION TO JAVASCRIPT
INTRODUCTION TO JAVASCRIPT
BM-305 Mikrodenetleyiciler Güz 2016 (7. Sunu)
Superstitions Grade 7 Unit Bilginbakterim.com
YDI101 YABANCI DIL 1 HAFTA 1. We use subject pronouns when the pronoun is the subject of the sentence. When the subject appears the second time, we don’t.
BİLİMSEL ÇALIŞMA BASAMAKLARI SCIENTIFIC WORKING STEPS MHD BASHAR ALREFAEI Y
IF CLAUSE TYPE 2 Conditionals.
Transforming Signals in Time-Domain into Signals in Frequency-Domain
German shepherd dog. These dogs are said to be intelligent before they say.
*İNGİLİZCE’de YER YÖN TARİFLERİ
Bilgisayarlar kodu nasıl işler?
Chapter 9 – Income statements and balance sheet
Bir Problemin Programa Dönüştürülme Süreci
Web Programming– UFCFB Lecture 13
The Need for Program Design
INTRODUCTION TO JAVASCRIPT
INTRODUCTION TO JAVASCRIPT
If you delete this after reading... you'll spend a year of ill luck!
Future: I will/shall & I am going to. Structure: Subject+will/shall+verb(base form)+object.
tomorrow soon next week / year in five minutes/ in two hours later today I'll go to the market tomorrow. Don’t worry. He will be here soon. There.
Organizational Communication
5.Sınıf adres sorma.
CONDITIONALS TYPE
Döngüler ve Shift Register
NİŞANTAŞI ÜNİVERSİTESİ
NİŞANTAŞI ÜNİVERSİTESİ
The Need for Program Design
“Differentiation for making a positive Difference!!!!”
NİŞANTAŞI ÜNİVERSİTESİ
NİŞANTAŞI ÜNİVERSİTESİ
Programlama Süreci.
(Dr. Öğr. Üyesi Deniz Dal)
Yapısal Programlama Yüksek Düzeyli Dillerin Gelişim Süreci
Güzel bir bahar gününün sabahında İETT şöförü garaja gider, otobüsünü çalıştırır ve yola çıkar. Sorunsuz bir şekilde bir duraktan diğerine ilerler, yolcularını.
Imagine that you are a teacher and you are taking your 20 students to England for the summer school.
PREPARED BY: 9-B STUDENTS. Sumerians, who laid the foundations of great civilizations and the world cultural heritage, emerged to the st The Sumerians.
Bilgisayarlar kodu nasıl işler?
CONDITIONALS TYPE
DIRECTIONS.
Programlama Araçları Metin Editörleri Araçlar
People with an entrepreneurial mindset are always brave.
TWINSPACE Anthony RIOU Coşku AKER TR Teacher Multilateral Contact Seminar, İ zmir, April 2019.
Where’s the post office? 1. Where is the post office? Where is the post office? It’s next to the bank. It’s next to the bank. Is there a bank next to.
Sunum transkripti:

Yapısal Programlama Yüksek Düzeyli Dillerin Gelişim Süreci – , Fortran (by IBM), for creating scientific and engineering applications, first commercial high-level programming lang. –1959, Cobol, Commercial applications requiring manipulation of large amounts of data –Late 1960s, Pascal, for academic use –1967, BCPL, for writing OSs, software, compilers –1970, B, early versions of UNIX –1973, C, UNIX, major operating systems –1975, BASIC –1980s, C++, object-oriented programming (OOP) –1995, Java, create dynamic content for Web pages and for consumer devices –2000, C#, designed specifically for the.NET platform

list of directions given to you when you ask how to get to the local grocery store 1.First, go to steps 8 and 9. 2.Drive one mile straight. 3.Drive one mile straight again. 4.Drive one mile straight again. You will see the store on your right. 5.If the store is closed, go to step Stop and get out of your car. 7.Go to step Drive straight to Harvard Avenue. 9.Turn right at 51st Street. 10.Go to step Turn left on Yale Street. 12.Go four miles straight and you will see another grocery on your left. 13.Go in and shop. 1.Drive straight to Harvard Avenue. 2.Turn right at 51st Street. 3.For the next three miles, keep driving straight. You will see the grocery on your right. 4.If the grocery is open, go inside. 5.If the grocery is closed, turn left on Yale Street. Go four miles straight and you will see another grocery on your left. 6.Go inside whichever grocery is open and buy groceries.

Benefits of Structure Less code equals more power Make the code easier to read and follow Enable you to break your code into logical parts Make it easier to spot where errors are Make reusing code easier

The Constructs of Structured Programming Sequence (Sıra) Decision (Karar) (also called selection) Looping (Döngü) (also called repetition or iteration) As long as a programming language supports these three constructs, you can write structured programs. An unstructured program contains lots of branching.

Sequence

Decision

Looping

Structured Programming = Yapısal Programlama Input  Process  Output Sequence (Functions) Decision (Conditionals) Looping (Loops)

Basic C++ Code Structure // C++ code template comment #include header file (support for inputs and outputs) #include header file (support for string handling) void main() a function { // Code goes here!!!! }

Functions Functions are the basic subdivision of code. Just as statements are the equivalent of sentences, functions are the equivalent of paragraphs. To move between functions you use calls.

Functions Main function –Functions called main have a special meaning in C++, they are functions that will be automatically run. // C++ code template #include void main() { cout << "Hello, World!" << endl; }

Statement coutinstruction <<insertion operator "Hello, World!"string to be displayed <<insertion operator endlinsert a new line ;statement closing cout << "Hello, World!" << endl;

a function can do more than one thing // C++ code template #include void main() { cout << "Hello, World!" << endl; cout << "How are you?" << endl; }

More functions #include void hello() { cout << "Hello, World!" << endl; } void hello2() { cout << "Hello, World, MK II!" << endl; } void main() { cout << "main function" << endl; }

#include void hello() { cout << "Hello, World!" << endl; } void hello2() { cout << "Hello, World, MK II!" << endl; } void main() { cout << "main function" << endl; hello(); hello2; }

Remember to have the function appear before you call it #include void hello() { cout << "Hello, World!" << endl; hello2(); } void hello2() { cout << "Hello, World, MK II!" << endl; } void main() { cout << "main function" << endl; hello(); }

3 Örneği inceleyiniz. Yanlış olanlar ne? #include void hello() { cout << "main function" << endl; } void main() { cout << "main function" << endl; } #include void main() { cout << "main function" << endl; hello(); hello2(); } void hello() { cout << "Hello, World!" << endl; hello2(); } void hello2() { cout << "Hello, World, MK II!" << endl; }

Conditionals (Karar yapıları, şartlı yapılar) Conditionals revolve around answers to questions. –true/ false –yes/ no For breakfast, would you rather have toast or cereal? –Toast –Cereal –Toast & Cereal –None Conditionals revolve around making a decision

Conditionals in C++ if (condition) { // do statements here if the condition is true } else { // do these statements if the condition is false };

Loops (Döngü yapıları) the same piece of code a number of times –Bir komutun (ya da komut bloğunun) belirli sayıda işletilmesi –Bir komutun (ya da komut bloğunun) belirli bir şart gerçekleştiği sürece (bir ön teste bağlı olarak) işletilmesi –Bir komutun (ya da komut bloğunun) belirli bir şart gerçekleşene kadar (bir son teste bağlı olarak) işletilmesi

Bir komutun (ya da komut bloğunun) belirli sayıda işletilmesi

C++ “for” yapısı: Örnek 1 for ( ; ; ) { // statement (or block of statements) }

C++ “for” yapısı: Örnek 2

Bir komutun (ya da komut bloğunun) belirli bir şart gerçekleştiği sürece (bir ön teste bağlı olarak) işletilmesi

C++ “while” yapısı

Bir komutun (ya da komut bloğunun) belirli bir şart gerçekleşene kadar (bir son teste bağlı olarak) işletilmesi

C++ “do while” yapısı

Infinite Loops