程序設(shè)計基礎(chǔ)

出版時間:2009-5  出版社:清華大學出版社  作者:維尼特  頁數(shù):378  
Tag標簽:無  

前言

Concise Prelude to Programming: Concepts & Design provides a language-inde-pendent introduction to programming concepts that helps students learnthe following:General programming topics, such as data types, control structures,arrays, files, and subprogramsStructured programming principles, such as top-down modular design and proper program documentation and styleBasic tools and algorithms, such as data validation, defensive programming, sums and averages computation, and list searching andsortingNo prior computer or programming experience or any special knowledge ofmathematics, finance, or other discipline is necessary.

內(nèi)容概要

本書是一本關(guān)于程序設(shè)計的教材,它圍繞程序設(shè)計初學者面對的中心問題(即如何構(gòu)思算法)來介紹程序設(shè)計中的主要基本概念和設(shè)計方法,包括“程序設(shè)計開發(fā)的過程、選擇結(jié)構(gòu)、重復結(jié)構(gòu)、數(shù)組、文件”等,并介紹了主要的基本算法、冒泡排序、串行搜索等,給出了很多生動有趣的例子進行講解。在算法最終描述時,以VB與C++為例,對一些程序進行對比實現(xiàn)。這樣,既讓學生可以在與語言無關(guān)的算法介紹中學習算法思想,又使他們能夠自己動手進行實際的編程練習。    本書各章節(jié)后面配有豐富的練習題,很有針對性,網(wǎng)上配套資源也很實用,不僅非常適合作為程序設(shè)計的教材,也很適合讀者自學使用。

作者簡介

作者:(美國)維尼特

書籍目錄

0 Introduction   0.1  Computers Everywhere    0.2 A Brief History of Computers    What Is a Computer?    Early Computers    Personal Computers    Today's Computers    The Internet   0.3 Computer Basics    The Central Processing Unit     Internal Memory     Mass Storage Devices     Input Devices     Output Devices    0.4 Software and Programming Languages    Types of Software    Types of Programming Languages    Chapter Review and Exercises  1 An Introduction to Programming   In the Everyday World: You Are Already a Programmer!   1.1  What Is Programming?    A General Problem-Solving Strategy    Creating Computer Programs: The Program Development Cycle    1.2 Basic Programming Concepts    A Simple Program    The Price Conversion Program    Data Input    The Input and write Statements     Use Input Prompts     Other Forms of Input     Program Variables and Constants     Variables Names     Variable Names Should Be Meaningful!     What's Really Going On with Variables in the Computer?    1.3 Data Processing and Output     Processing Data     The Set Statement     Assigning and Reassigning Values to Variables     Operations on Data     Hierarchy of Operations     Data Output     The wrLte Statement Revisited     Annotate Your Output    1.4 Types of Data     Numeric Data     Integers     Dividing Integers     Real Numbers     The Declare Statement     The Last Word on Price Conversion      Scientific and Exponential Notation     Character String Data     The Character Data Type     Operating on Strings    Chapter Review and Exercises   2 Developing a Program   In the Everyday World: Planning to Program? You Need a Plan   2.1  The Program Development Cycle    The Process of Developing a Program     Analyze the Problem     Design the Program     Code the Program     Test the Program     Additional Steps in the Cycle    2.2 Program Design    Modular Programming    Using Modules and Submodules    Benefits of Modular Programming    Provide a Welcome Message at the Beginning of Your Program     ……3 Selection Structures:Making Decisions4 Repetition Structures: Looping5 Arrays: Lists and Tables6 Sequential Data FilesStudy SkillsGlossaryIndex

章節(jié)摘錄

插圖:2.5 Structured ProgrammingStructured programming is a method used to design and code programsin a systematic, organized manner. In this chapter, we have already discussed some structured programming principles: follow the steps of theprogram development cycle; design a program in a topdown, modular fashion; and use comments to document a program. In this section, we introduce two more aspects of structured programming: designing each moduleas a sequence of control structures and using good programming style. Webegin by discussing the use of flowcharts in program design.FlowchartsIn Section 2.2, we introduced two devices to aid in the design of a program:hierarchy charts and pseudocode. Each of these techniques has its place inprogram design. Hierarchy charts identify the program modules and showthe relationships among them. Pseudocode fills in the details of how themodules are to be coded.Another common program design tool is the flowchart, which is a diagramthat uses special symbols to display pictorially the flow of execution withina program or program module. Flowcharts help you visualize how a programwill actually flow. A flowchart provides an easy, clear way to see which piecesof your code follow the various programming structures that all programsare constructed from. These structures are discussed in detail in this section. The basic symbols in a flowchart are shown in Figure 2.5.

編輯推薦

【本書特點】1.《程序設(shè)計基礎(chǔ)》是一般性的編程問題,如數(shù)據(jù)類型、控制結(jié)構(gòu)、數(shù)組、文件,以及子程序。2 結(jié)構(gòu)化編程的原則,如自頂向下的模塊化設(shè)計、規(guī)范的程序文檔和風格。3.基本工具和算法,如數(shù)據(jù)檢驗、防御性編程,總和與均值的計算,列表搜索與排序。4.包含了多種多樣的練習題,如自測題、復習題和編程題等。5.本書配套網(wǎng)站提供了多種輔助材料。

圖書封面

圖書標簽Tags

評論、評分、閱讀與下載


    程序設(shè)計基礎(chǔ) PDF格式下載


用戶評論 (總計1條)

 
 

  •   this book very suit for new learner.
 

250萬本中文圖書簡介、評論、評分,PDF格式免費下載。 第一圖書網(wǎng) 手機版

京ICP備13047387號-7