Presentation is loading. Please wait.

Presentation is loading. Please wait.

Computer Science: A Structured Programming Approach Using C1 11-7 A Programming Example— Morse Code Morse code, patented by Samuel F. B. Morse in 1837,

Similar presentations


Presentation on theme: "Computer Science: A Structured Programming Approach Using C1 11-7 A Programming Example— Morse Code Morse code, patented by Samuel F. B. Morse in 1837,"— Presentation transcript:

1 Computer Science: A Structured Programming Approach Using C1 11-7 A Programming Example— Morse Code Morse code, patented by Samuel F. B. Morse in 1837, is the language that was used to send messages by telegraph from the middle of the nineteenth century until the advent of the modern telephone and today’s computer controlled communications systems. In this section, we use a C program to convert English to Morse and Morse to English.

2 Computer Science: A Structured Programming Approach Using C2 Table 11-3Morse Code

3 Computer Science: A Structured Programming Approach Using C3 FIGURE 11-26 Character to Morse Code Structure

4 Computer Science: A Structured Programming Approach Using C4 FIGURE 11-27 Morse Code Menu

5 Computer Science: A Structured Programming Approach Using C5 FIGURE 11-28 Morse Code Program Design

6 Computer Science: A Structured Programming Approach Using C6 PROGRAM 11-18Morse Code: main

7 Computer Science: A Structured Programming Approach Using C7 PROGRAM 11-18Morse Code: main

8 Computer Science: A Structured Programming Approach Using C8 PROGRAM 11-18Morse Code: main

9 Computer Science: A Structured Programming Approach Using C9 PROGRAM 11-18Morse Code: main

10 Computer Science: A Structured Programming Approach Using C10 PROGRAM 11-18Morse Code: main

11 Computer Science: A Structured Programming Approach Using C11 PROGRAM 11-18Morse Code: main

12 Computer Science: A Structured Programming Approach Using C12 PROGRAM 11-19Morse Code: Menu

13 Computer Science: A Structured Programming Approach Using C13 PROGRAM 11-19Morse Code: Menu

14 Computer Science: A Structured Programming Approach Using C14 PROGRAM 11-20Morse Code: Get Input

15 Computer Science: A Structured Programming Approach Using C15 PROGRAM 11-20Morse Code: Get Input

16 Computer Science: A Structured Programming Approach Using C16 PROGRAM 11-21Morse Code: Print Output

17 Computer Science: A Structured Programming Approach Using C17 PROGRAM 11-22Morse Code: Encode to Morse

18 Computer Science: A Structured Programming Approach Using C18 PROGRAM 11-22Morse Code: Encode to Morse

19 Computer Science: A Structured Programming Approach Using C19 PROGRAM 11-23Morse code: Decode to English

20 Computer Science: A Structured Programming Approach Using C20 PROGRAM 11-23Morse code: Decode to English

21 Computer Science: A Structured Programming Approach Using C21 PROGRAM 11-24Morse Code: Convert Codes

22 Computer Science: A Structured Programming Approach Using C22 PROGRAM 11-24Morse Code: Convert Codes

23 Computer Science: A Structured Programming Approach Using C23 11-8 Software Engineering In this section, we’ve formalized some of the principles of good programming that we’ve discussed throughout the text. Although you will find little in this discussion of software engineering that relates directly to the subject of strings, all of the string functions have been written using the principles discussed on the following pages. Program Design Concepts Information Hiding Cohesion Topics discussed in this section:

24 Computer Science: A Structured Programming Approach Using C24 FIGURE 11-29 Types of Cohesion

25 Computer Science: A Structured Programming Approach Using C25 FIGURE 11-30 Example of Functional Cohesion

26 Computer Science: A Structured Programming Approach Using C26 ALGORITHM 11-1Process Inventory Pseudocode

27 Computer Science: A Structured Programming Approach Using C27 Well-structured programs are highly cohesive and loosely coupled. Note

28 Computer Science: A Structured Programming Approach Using C28 ALGORITHM 11-2Process List Pseudocode


Download ppt "Computer Science: A Structured Programming Approach Using C1 11-7 A Programming Example— Morse Code Morse code, patented by Samuel F. B. Morse in 1837,"

Similar presentations


Ads by Google