Coding text editors executing input from keyboard

This preview shows page 29 - 37 out of 37 pages.

Coding Text editors Executing Input from keyboard, mouse, microphone Outputting Text, images, sound 29 Programming Logic and Design, Seventh Edition
Understanding Programming Environments Use a keyboard to type program statements into an editor Plain text editor Similar to a word processor but without as many features Text editor that is part of an integrated development environment ( IDE ) Software package that provides an editor, a compiler, and other programming tools 30 Programming Logic and Design, Seventh Edition
Understanding Programming Environments (continued) Figure 1-12 A C# number-doubling program in Visual Studio 31 Programming Logic and Design, Seventh Edition
Understanding User Environments Command line Location on your computer screen where you type text entries to communicate with the computer’s operating system Graphical user interface ( GUI ) Allows users to interact with a program in a graphical environment 32 Programming Logic and Design, Seventh Edition
Understanding User Environments (continued) Figure 1-13 Executing a number-doubling program in a command-line environment 33 Programming Logic and Design, Seventh Edition
Understanding User Environments (continued) Figure 1-14 Executing a number-doubling program in a GUI environment 34 Programming Logic and Design, Seventh Edition
Understanding the Evolution of Programming Models People have been writing modern computer programs since the 1940s Newer programming languages Look much more like natural language Are easier to use Create self-contained modules or program segments that can be pieced together in a variety of ways 35 Programming Logic and Design, Seventh Edition
Understanding the Evolution of Programming Models (continued) Major models or paradigms used by programmers Procedural programming Focuses on the procedures that programmers create Object-oriented programming Focuses on objects, or “things,” and describes their features (or attributes) and their behaviors This text Focuses on procedural programming techniques 36 Programming Logic and Design, Seventh Edition
Summary Hardware and software accomplish input, processing, and output Logic must be developed correctly Logical errors are much more difficult to locate than syntax errors Use flowcharts, pseudocode, IPO charts, and TOE charts to plan the logic Avoid infinite loops by testing for a sentinel value Use a text editor or an IDE to enter your program statements 37 Programming Logic and Design, Seventh Edition

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture