fundamentals of engineering programming with c and fortran

223 499 0
 fundamentals of engineering programming with c and fortran

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Đây là quyển sách tiếng anh về lĩnh vực công nghệ thông tin cho sinh viên và những ai có đam mê. Quyển sách này trình về lý thuyết ,phương pháp lập trình cho ngôn ngữ C và C++.

Fundamentals of Engineering Programming with C and Fortran Fundamentals of Engineering Programming with C and Fortran is a be- ginner's guide to problem solving with computers that shows how to prototype a program quickly for a particular engineering application. The book's side-by-side coverage of C and Fortran, the predominant computer languages in engineering, is unique. It emphasizes the im- portance of developing programming skills in C while carefully pre- senting the importance of maintaining a good reading knowledge of Fortran. Beginning with a brief description of computer architecture, the book then covers the fundamentals of computer programming for problem solving. Separate chapters are devoted to data types and operators, control flow, type conversion, arrays, and file operations. The final chapter contains case studies designed to illustrate partic- ular elements of modeling and visualization. Also included are five appendixes covering C and Fortran language summaries and other useful topics. The author has provided many homework problems and program listings. This concise and accessible book is useful either as a text for introductory-level undergraduate courses on engineering program- ming or as a self-study guide for practicing engineers. Harley Myler is a professor of electrical and computer engineering at the University of Central Florida in Orlando. A senior member of the IEEE and a member of SPIE, he earned his Ph.D. and M.Sc. at New Mexico State University. He is the author of two other books: Computer Imaging Recipes in C (1993) and The Pocket Handbook of Image Processing Algorithms in C (1993), both published by Prentice-Hall. [...]... mental picture of computer function through language This aspect of programming is often ignored by other texts; however, the critical dependence of data accuracy on the architecture of the implementing platform, particularly with respect to variable typing, demands xi Preface that these concepts be understood by the engineering programmer Discussions of computer architecture in this text are at a browsing... type mismatch followed by errors of function definition and scope Because a C program begins with the definition of the main function, expansion of this aspect of the language follows cleanly when functions are introduced late in the text Chapter 6 discusses structures and pointers and their use in creating and working with array variables The C language union and typedef are not discussed Chapter 7... some point, of course, the recursion must end Because the basic compiler functions are written in assembly language, the compiler becomes unique to a processor or processor class Typically, the first compiler to become available after a new processor is designed is the C compiler This facilitates the porting of software from one processor to another, and of all computer languages, C is one of the most... surprisingly, commerce has done as much to advance computing as science and engineering have A case in point is that the acronym IBM stands for International Business Machines Long before the formation of the IBM company, however, an English professor of mathematics named Charles Babbage (1792-1871) formulated the concept of a numerical computing engine His first machine, the difference engine, was... introduction to file operations to include both low and high level I-O Chapter 8 completes the book with case studies of two complex programs The book is self-contained and useful as a self-study tutorial or as a text for a one-semester introductory engineering programming xii Preface course for students with no prior computer programming experience in either C or Fortran Each section covered includes... the use of fundamental language constructs for control flow in program decision making and loop construction All of these topics are presented with engineering problem examples Chapter 5 explores data type conversion as a prelude to the writing and use of functions These concepts lead into the scope of variable activity within the program These topics are typically introduced sooner in other presentations;... analog computer When hand-held calculators appeared in the late 1960s, their arrival marked the end of the usefulness of slide rules Hand-held calculators will someday be replaced by palmtop computers and ultimately by communications devices that will link us with machines that understand our speech All of these devices have evolved from the historical roots discussed in this section (see Figure 1.1) and, ... you could be programmed to make hamburgers a certain way by the following set of instructions: BURGER CONSTRUCTION PROGRAM 1 2 3 4 5 Get bun and open it on counter Place all-meat patty on bottom piece of bun Place tomato slice on patty Place lettuce leaf on tomato Squirt special sauce on lettuce 1.2 The von Neumann Machine Architecture 6 Replace top of bun; burger is complete 7 Wrap burger in paper and. .. (design) electrical engines such as motors and generators, and automotive engineers often build internal combustion engines We can abstract the concept of engine to include machines in general as well as complex machines such as robots and vehicles To further the abstraction, we can include systems that transfer or convert matter or energy from one state to another under the umbrella of machine design... following instructions and their meanings: CP A,B CP B,A CP A ,C CP C, A ADD SUB INP OUT copy the contents of register A to B copy the contents of register B to A copy the contents of register A to C copy the contents of register C to A add contents of A to B; leave result in A subtract B from A; leave result in A input a value to register A output a value from register A 17 Introduction A program

Ngày đăng: 19/03/2014, 14:08

Từ khóa liên quan

Mục lục

  • Frontmatter

  • Contents

  • Preface

  • 1 - Introduction

  • 2 - Computer Programming

  • 3 - Types, Operators, and Expressions

  • 4 - Control Flow

  • 5 - Type Conversion, Functions, and Scope

  • 6 - Pointers, Arrays, and Structures

  • 7 - File Operations

  • 8 - Case Studies

  • Appendix A - C Language Summary

  • Appendix B - Fortran Program Language Summary

  • Appendix C - ASCII Tables

  • Appendix D - C Preprocessor Directives

  • Appendix E - Precedence Tables

  • Glossary

  • Annotated Bibliography

  • Index

Tài liệu cùng người dùng

Tài liệu liên quan