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,

Slides:



Advertisements
Similar presentations
Chapter 1.0 The Information Age & Digital Computers.
Advertisements

Topics discussed in this section:
Traditional Approach to Design
Computer Science: A Structured Programming Approach Using C Converting File Type A rather common but somewhat trivial problem is to convert a text.
CS Section 600 CS Section 002 Dr. Angela Guercio Spring 2010.
©2004 Brooks/Cole Chapter 1: Getting Started Sections Covered: 1.1Introduction to Programming 1.2Constructing a Java Program 1.3The print() and println()
1 CS150 Introduction to Computer Science 1 Professor: Chadd Williams
1 Chapter Overview Computer Communication The Computer Bus Objectives  Understand how a computer transmits and receives information.  Explain the principles.
A High-Level Model For Software Development
Algorithms. Introduction Before writing a program: –Have a thorough understanding of the problem –Carefully plan an approach for solving it While writing.
Information and Communication Unit 5, Lesson 4 Explanation Presentation © 2011 International Technology and Engineering Educators Association, STEM.
Computer Science: A Structured Programming Approach Using C1 Objectives ❏ To understand the structure of a C-language program. ❏ To write your first C.
The Art of Programming Top-Down Design. The Art of Problem Solving The art of problem solving is the transformation of an English description of a problem.
Noadswood Science,  Information Wednesday, September 09, 2015.
Representing text Each of different symbol on the text (alphabet letter) is assigned a unique bit patterns the text is then representing as.
Powerpoint Templates Lecture 1 Computer Communication and Networks.
Computer science Kieran elder. What is computer science What is binary Binary maths What is hexadecimal Hexadecimal numbers programs for programming Different.
Introduction to Computers
Introduction CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington 1.
Coupling and Cohesion Pfleeger, S., Software Engineering Theory and Practice. Prentice Hall, 2001.
Chapter 2: Algorithm Discovery and Design Invitation to Computer Science, C++ Version, Third Edition.
Computer Science: A Structured Programming Approach Using C1 Objectives ❏ To understand design concepts for fixed-length and variable- length strings ❏
Graph Theory in Computer Science Greg Stoll November 22, 2008.
CS 114 – Class 02 Topics  Computer programs  Using the compiler Assignments  Read pages for Thursday.  We will go to the lab on Thursday.
Chapter 9 Moving to Design
Computer Science: A Structured Programming Approach Using C1 4-6 Scope Scope determines the region of the program in which a defined object is visible.
Computer Science: A Structured Programming Approach Using C1 2-7 Input/Output Although our programs have implicitly shown how to print messages, we have.
Chapter 10 Software Engineering. Understand the software life cycle. Describe the development process models. Understand the concept of modularity in.
Computer Science: A Structured Programming Approach Using C1 Objectives ❏ To introduce the structure, union, and enumerated types ❏ To use the type definition.
Computer Science: A Structured Programming Approach Using C1 2-7 Input/Output Although our programs have implicitly shown how to print messages, we have.
Software Engineering CS103 February 13, How Do You Solve Big Problems? Thousands of programmers Thousands of programmers Months or years of coding.
1 Objectives ❏ To understand the differences between text and binary files ❏ To write programs that read, write, and/or append binary files ❏ To be able.
Computer Science: A Structured Programming Approach Using C1 6-6 Loop Examples This section contains several short examples of loop applications. Each.
INDUSTRIAL REVOLUTION COMMUNICATION Grace Cepeda, Kerry Locke, Isaac Case, Bobby Garcia, & Sidney Mendoza.
Computer Science: A Structured Programming Approach Using C1 8-7 Two-Dimensional Arrays The arrays we have discussed so far are known as one- dimensional.
©2012, TESCCC Change Grade 2 Unit 7, Lesson 1. Ripple Effect ©2012, TESCCC.
Data Communication & Networking DATA: Collection of fact and figure in Raw form is called DATA it can be numbers or digits, it can character or Alphabets.
Chapter 5 - The Once And Future Digital Network Introduction The World Was Once Digital A Telegraph Is Digital [The telegraph is a digital technology because.
Computer Science: A Structured Programming Approach Using C1 Objectives ❏ To introduce the basic concepts of linked lists ❏ To introduce the basic concepts.
Computer Science: A Structured Programming Approach Using C1 5-5 Incremental Development Part II In Chapter 4, we introduced the concept of incremental.
Computer Science: A Structured Programming Approach Using C1 Objectives ❏ To design and implement programs with more than one function ❏ To be able to.
The Internet Book Chapter 5 3 The World Was Once Digital 150 years ago, telegraph messages were sent from one town to another. –Using audible clicks.
Computer Science: A Structured Programming Approach Using C1 Objectives ❏ To understand the differences between text and binary files ❏ To write programs.
Computer Science: A Structured Programming Approach Using C1 Objectives ❏ To understand the structure of a C-language program. ❏ To write your first C.
Topic: Introduction to Computing Science and Programming + Algorithm
Chapter 7 Text Input/Output Objectives
Topics discussed in this section:
Chapter 7 Text Input/Output Objectives
Chapter 12 Enumerated, Structure, and Union Types Objectives
Introduction to the C Language
String Concepts In general, a string is a series of characters treated as a unit. Computer science has long recognized the importance of strings, but it.
Functions Review.
Topics discussed in this section:
Topics discussed in this section:
Chapter 9 Pointers Objectives
Lecture 2: Introduction to Algorithms
Representing Characters
Introduction to the C Language
Binary Files.
Introduction to the C Language
3-7 Sample Programs This section contains several programs that you should study for programming technique and style. Computer Science: A Structured.
Chapter 15 Lists Objectives
Topics discussed in this section:
Chapter 4 Functions Objectives
Topic 7 Nested Loops Case Study
Topics discussed in this section:
Topics discussed in this section:
Topics discussed in this section:
Topics discussed in this section:
Introduction to Computers
Presentation transcript:

Computer Science: A Structured Programming Approach Using C 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.

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

Computer Science: A Structured Programming Approach Using C3 FIGURE Character to Morse Code Structure

Computer Science: A Structured Programming Approach Using C4 FIGURE Morse Code Menu

Computer Science: A Structured Programming Approach Using C5 FIGURE Morse Code Program Design

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Computer Science: A Structured Programming Approach Using C 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:

Computer Science: A Structured Programming Approach Using C24 FIGURE Types of Cohesion

Computer Science: A Structured Programming Approach Using C25 FIGURE Example of Functional Cohesion

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

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

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