Sunum yükleniyor. Lütfen bekleyiniz

Sunum yükleniyor. Lütfen bekleyiniz

Bir Problemin Programa Dönüştürülme Süreci

Benzer bir sunumlar


... konulu sunumlar: "Bir Problemin Programa Dönüştürülme Süreci"— Sunum transkripti:

1 Bir Problemin Programa Dönüştürülme Süreci
Consider the following. You’ve been approached to write a calculator application. The client wants you to create an application that is capable of converting temperatures between two common units of measure: Fahrenheit  Centigrade Centigrade  Fahrenheit

2 STAIR problem çözme süreci
State the problem (Problemi tanımlayın) Identify the tools available for solving the problem (Problemi çözmek için mevcut araçları belirleyin) Write an algorithm (Bir algoritma yazın) Implement the solution (Çözümü gerçekleştirin) Refine the solution (Çözümü sadeleştirin)

3 Client requirements What do you want the application to do?
What inputs do you want the application to take? What outputs do you want the application to have? Is there anything else you want the application to do?

4 Örnek Problemimize göre
What will the application do? “I want the application to convert temperatures between degrees Fahrenheit and degrees Centigrade.” Inputs needed? “I want to be able to input the temperatures and have the program carry out the conversion.” Possible outputs. “Numerical outputs on the screen. There is no need for the application to store the data in a file.” Other uses. “Not at present.”

5

6 Problem with Input

7

8 Araştırma Safhası You know how to program but do you know how to convert temperatures? Programmers are often asked to do things that they themselves might not know how to do. It is therefore the programmer’s job to be good at either doing research or asking more questions.

9 Araştırma Sonucu

10 Bulunduğumuz Nokta

11 STAIR problem çözme süreci
State the problem (Problemi tanımlayın) Identify the tools available for solving the problem (Problemi çözmek için mevcut araçları belirleyin) Write an algorithm (Bir algoritma yazın) Implement the solution (Çözümü gerçekleştirin) Refine the solution (Çözümü sadeleştirin)

12 Algoritma+Akış Diyagramı Süreci

13 Sınıf Etkinliği Bu problemin programlamasına yardımcı olmak üzere:
Bir organizasyon şeması ortaya koyun. Bu organizasyon şemasını kullanarak bir algoritma ya da akış diyagramı ortaya koyun

14 STAIR problem çözme süreci
State the problem (Problemi tanımlayın) Identify the tools available for solving the problem (Problemi çözmek için mevcut araçları belirleyin) Write an algorithm (Bir algoritma yazın) Implement the solution (Çözümü gerçekleştirin) Refine the solution (Çözümü sadeleştirin)

15 ... Ve bir mucize gerçekleşir.
Sanırım burada daha net olmalısın.

16 Kaynak Kodu convert1.cpp dosyası

17 Programın Derlenmesi Süreci
You type the source code into a text editor. The file containing the source code is saved with an appropriate file extension. The compiler takes the file and the source code and processes it, creating an executable file. The file created is a standalone application that can be run on other systems. Not: Some compilers, such as the one that is included with Visual Basic or the ones shipped with Borland compilers for Windows, create executable files that rely on additional files being installed on the system running the executable. An executable created by these means requires a runtime library to be installed on the system running it.

18

19 STAIR problem çözme süreci
State the problem (Problemi tanımlayın) Identify the tools available for solving the problem (Problemi çözmek için mevcut araçları belirleyin) Write an algorithm (Bir algoritma yazın) Implement the solution (Çözümü gerçekleştirin) Refine the solution (Çözümü sadeleştirin)

20 Tools Bilgisayar (fiziksel olarak erişilebilir, elektriği var, işletim sistemi kurulu ve yapılandırılmış, yetkisel olarak erişilebilir) Basit bir metin editörü Bir C++ derleyicisi

21 Bir Derleyicinin Kullanılması
Ücretsiz bir derleyicinin kullanılması Akademik Amaçla Kullanımda Dikkat Edilmesi Gerekenler The software cannot be used for any commercial purposes. There is no support for the tools. At your own risk. To be absolutely sure of your rights, check the licensing agreement Google  "free c++ compiler" Borland C++ Compiler 5.5 Digital Mars C, C++ and D Compilers DJGPP

22 Borland C++ Compiler Bulunması ve Kurulması
Ayrıca dersin Web alanında mevcut The current version is version 5.5, and the download size is 8.7 MB. Kurulum gösterimi

23 Borland C++ Compiler Çalışma ortamının yapılandırılması (Konfigürasyon) C:\Borland\BCC55\Bin\bcc32.cfg -I"c:\Borland\Bcc55\include" -L"c:\Borland\Bcc55\lib" C:\Borland\BCC55\Bin\ilink32.cfg

24 Borland C++ Compiler Kullanılması
This application is command line only Başlangıç – Programlar – Donatılar – Komut İstemi cd c:\borland\bcc55\bin bcc32 convert1.cpp convert1.exe convert1.obj convert1.tds

25 STAIR problem çözme süreci
State the problem (Problemi tanımlayın) Identify the tools available for solving the problem (Problemi çözmek için mevcut araçları belirleyin) Write an algorithm (Bir algoritma yazın) Implement the solution (Çözümü gerçekleştirin) Refine the solution (Çözümü sadeleştirin)

26 Programın Geliştirilmesi
Text display initially to tell the user what the application is Initial instructions for use Captions for inputs Captions for outputs

27 Geliştirilmiş Program Kaynak Kodu convert2.cpp dosyası


"Bir Problemin Programa Dönüştürülme Süreci" indir ppt

Benzer bir sunumlar


Google Reklamları