Purpose of the Book This book is aimed at students in the Natural Sciences and Engineering fields. Its struc-ture follows a progression from theory to practical examples in the C++ programming language. It can serve as a supplementary aid for programming courses taught in the early years of science degrees. For example, in the Department of Physics, the course is titled Computers I. If someone learns one programming language-or better yet, under-stands the concept of the algorithm-they can easily learn other programming lan-guages, with their initial language as a foundation. For solving simple engineering problems, programming in traditional languages such as Fortran, Basic, Pascal, C++, or Java can often be time-consuming. Therefore, a scientist should also be familiar with one or more comprehensive programming packages such as MATLAB, MATHEMATICA, MATHCAD, and others. We encourage science students, in addition to classical programming, to use one of the aforementioned programming packages. Topics CoveredChapter 1 introduces computers, covering basic computer components, defining concepts such as problem, data, and information, classifying problems, and de-fining the algorithm. It also includes a brief history of programming languages and instructions for using the free Embarcadero Dev-C++ 6.3 platform for learn-ing C++ on Windows.Chapter 2 introduces C++, writing the first program, input/output, reserved words, naming conventions, variables, and constants.Chapter 3 covers mathematical operations using operators.Chapter 4 deals with decision-making, comparative operators, the if, switch statements, and compound conditions.Chapter 5 focuses on loops: for, while, do while, and the break and continue statements.Chapter 6 introduces arrays, followed by various programs and array processing. This is one of the most important chapters, as it teaches how to store and ma-nipulate data.Chapter 7 explores functions and how they help divide programs into smaller segments.Chapter 8 covers file storage and data retrieval from files.
ThriftBooks sells millions of used books at the lowest everyday prices. We personally assess every book's quality and offer rare, out-of-print treasures. We deliver the joy of reading in recyclable packaging with free standard shipping on US orders over $20. ThriftBooks.com. Read more. Spend less.