وبلاگ بلیان

Learn Java with Math - Using Fun Projects and Games

جلد کتاب Learn Java with Math - Using Fun Projects and Games

معرفی کتاب «Learn Java with Math - Using Fun Projects and Games» نوشتهٔ Richard A. Brealey، Stewart C. Myers، Franklin Allen، Richard Brealey، Stewart Myers، David Brealey، Brealey Richard، BREALEY، Pitabas Mohanty و Ron Dai; SpringerLink (Online service)، منتشرشده توسط نشر Apress : Imprint: Apress در سال 2019. این کتاب در 8 صفحه، فرمت pdf، زبان انگلیسی ارائه شده است.

Introduction There are many good Java programming books on the market, but it's not easy to find one fit for a beginner. This book simplifies the complexity of Java programming and guides you through the journey to effectively work under the hood. You'll start with the fundamentals of Java programming and review how it integrates with basic mathematical concepts through many practical examples. You'll witness firsthand how Java can be a powerful tool or framework in your experimentation work. Learn Java with Math reveals how a strong math foundation is key to learning programming design. Using this as your motivation, you'll be programming in Java in no time. ========= What You'll Learn \* Explore Java basics \* Program with Java using fun math-inspired examples \* Work with Java variables and algorithms \* Review I/O, loops, and control structures \* Use projects such as the Wright brothers coin flip game ========= Who This Book Is For Those new to programming and Java but have some background in mathematics and are at least comfortable with using a computer. ======== About the author Ron Dai is a Microsoft software engineer and a mathematics and computer science instructor for NWSC in Washington. He enjoys teaching computer science using math. Table of Contents 5 About the Author 12 About the Technical Reviewer 13 Acknowledgments 14 Preface 15 Part I: Java Basic 16 Chapter 1: Introduction 17 Problems 21 Chapter 2: Number Basics 23 What Is a Numeral System? 23 Why Do People Use Decimal Numbers, While Computers Use Binary Numbers? 24 How to Convert a Number Between Different Numeral Systems 25 What Is Bit, Byte, KB, MB, GB, TB, and PB? 31 What Is Bitwise? 31 Problems 32 Chapter 3: Java Basics 33 What Features Does Java Have? 33 Object-Oriented 33 Class-Based 34 Java Bytecode 34 Chapter 4: Start Playing with Java 37 What Is the Difference Between the JRE and the JDK? 38 What Are a Workspace, Source, and Package? 39 What Are Edit, Compile, and Execute? 39 Creating Your First Program 40 Exploring Class and main() 43 Why Is It “public static void main(String[ ] args)”? 44 Problems 45 Chapter 5: Variables 46 Defining a Variable Name 47 Example 47 Different Types of Variables in Java 48 Assigning a Value to a Variable 50 Lab Work 50 Chapter 6: First Algorithm 52 Swapping Values Between Variables 53 Other Approaches 54 Chapter 7: Input and Output 55 Importing java.util.Scanner 55 Getting Input 56 Producing Output 56 Lab Work 57 Example 57 Example 58 Lab Work 58 Problems 59 Chapter 8: Loop Structure – for Loop 60 Example 60 Lab Work 61 The for Loop Formula 61 Finding the “for Loop” Formula for an Arithmetic Sequence 62 Math: Counting Strategically 62 Lab Work 64 Example 64 Lab Work 65 Problems 65 Chapter 9: Loop Structure – while Loop 67 Example 68 Example 68 The do-while Loop 70 Lab Work 70 Problems 71 Chapter 10: Logical Control Structures 73 Conditional Operators 74 Lab Work 76 Logical Operators 77 Math: Logical Operators 77 Math: Analyzing Logical Problems 79 Lab Work 79 Problems 80 Chapter 11: Errors and Tips 82 Programming Tips 84 Handling Exceptions 85 Problems 86 Chapter 12: Java Basics Summary 88 General Rules 88 How to Define a Variable Name 88 How to Output in Console 88 How to Listen to Input in Console 89 How to Repeat an Operation 89 How to Control a Conditional Operation 89 Basic Coding Structure 90 Curly Braces 91 Lab Work 91 Chapter 13: Java Basics Projects 94 Chapter 14: Java Basics Solutions 97 Part II: Java Intermediate 99 Chapter 15: Wright Brothers’ Coin Flip Game 100 Chapter 16: Pythagorean Triples 104 Math: Pythagorean Triples 104 Problems 108 Math: Pythagorean Primes 108 Chapter 17: Strong Typed Programming 109 Type Casting 109 Math: Slope of a Line 111 Math: Collinearity 113 Chapter 18: Conditional Statements 114 Math: Hypothesis and Conclusion 114 Math: Quadrants 119 Problems 121 Chapter 19: Switch Statement 123 Problem 129 Chapter 20: Tracing Moving Objects 130 Math: Bouncing Ball 130 Chapter 21: Counting 134 Problems 149 Chapter 22: Factorization 150 Math: Finding Factors 150 Math: Halving the Problem 152 Math: Using the Square Root 153 Chapter 23: Exploratory Experimentation of Pi 157 Math: Calculating a Population 157 Example 158 Math: Pi from Probability Theory 158 Problem 163 Chapter 24: Classes in Object-Oriented Programming 164 Lab Work 167 Lab Work 167 Lab Work 168 Problems 168 Chapter 25: Interface – Total Abstraction 172 Chapter 26: Inheritance – Code Reuse 177 Problems 179 Chapter 27: Encapsulation and Polymorphism 181 Encapsulation 181 Polymorphism 183 Problems 183 Chapter 28: Array – a Simple and Efficient Data Structure 184 Lab Work 186 Problems 186 Chapter 29: Common Pitfalls 188 Lab Work 188 Chapter 30: Design Considerations 192 Practical Case 1 192 Practical Case 2 194 Practical Case 3 196 Approach A 196 Approach B 197 Practical Case 4 197 Chapter 31: IOU Computation 201 Chapter 32: Projects 209 Project A 209 Step 1 209 Step 2 210 Project B 211 Project C 211 Project D 212 Project E 212 Project F 212 Project G 213 Chapter 33: Java Intermediate Solutions 214 For 16. Pythagorean Triples 214 For 17. Strong Typed Programming 214 For 18. Conditional Statements 215 For 19. Switch Statement 216 For 21. Counting 217 For 23. Exploratory Experimentation of Pi 218 For 24. Classes in Object-Oriented Programming 218 For 26. Inheritance – Code Reuse 218 For 27. Encapsulation and Polymorphism 219 For 28. Array – a Simple and Efficient Data Structure 220 For 29. Common Pitfalls 220 Index 224 Front Matter ....Pages i-xix Front Matter ....Pages 1-1 Introduction (Ron Dai)....Pages 3-8 Number Basics (Ron Dai)....Pages 9-18 Java Basics (Ron Dai)....Pages 19-22 Start Playing with Java (Ron Dai)....Pages 23-31 Variables (Ron Dai)....Pages 33-38 First Algorithm (Ron Dai)....Pages 39-41 Input and Output (Ron Dai)....Pages 43-47 Loop Structure – for Loop (Ron Dai)....Pages 49-55 Loop Structure – while Loop (Ron Dai)....Pages 57-62 Logical Control Structures (Ron Dai)....Pages 63-71 Errors and Tips (Ron Dai)....Pages 73-78 Java Basics Summary (Ron Dai)....Pages 79-84 Java Basics Projects (Ron Dai)....Pages 85-87 Java Basics Solutions (Ron Dai)....Pages 89-90 Front Matter ....Pages 91-91 Wright Brothers’ Coin Flip Game (Ron Dai)....Pages 93-96 Pythagorean Triples (Ron Dai)....Pages 97-101 Strong Typed Programming (Ron Dai)....Pages 103-107 Conditional Statements (Ron Dai)....Pages 109-117 Switch Statement (Ron Dai)....Pages 119-125 Tracing Moving Objects (Ron Dai)....Pages 127-130 Counting (Ron Dai)....Pages 131-146 Factorization (Ron Dai)....Pages 147-153 Exploratory Experimentation of Pi (Ron Dai)....Pages 155-161 Classes in Object-Oriented Programming (Ron Dai)....Pages 163-170 Interface – Total Abstraction (Ron Dai)....Pages 171-175 Inheritance – Code Reuse (Ron Dai)....Pages 177-180 Encapsulation and Polymorphism (Ron Dai)....Pages 181-183 Array – a Simple and Efficient Data Structure (Ron Dai)....Pages 185-188 Common Pitfalls (Ron Dai)....Pages 189-192 Design Considerations (Ron Dai)....Pages 193-201 IOU Computation (Ron Dai)....Pages 203-210 Projects (Ron Dai)....Pages 211-215 Java Intermediate Solutions (Ron Dai)....Pages 217-226 Back Matter ....Pages 227-231 There Are Many Good Java Programming Books On The Market, But It's Not Easy To Find One Fit For A Beginner. This Book Simplifies The Complexity Of Java Programming And Guides You Through The Journey To Effectively Work Under The Hood. You'll Start With The Fundamentals Of Java Programming And Review How It Integrates With Basic Mathematical Concepts Through Many Practical Examples. You'll Witness Firsthand How Java Can Be A Powerful Tool Or Framework In Your Experimentation Work. Learn Java With Math Reveals How A Strong Math Foundation Is Key To Learning Programming Design. Using This As Your Motivation, You'll Be Programming In Java In No Time. What You'll Learn Explore Java Basics Program With Java Using Fun Math Inspired Examples Work With Java Variables And Algorithms Review I/o, Loops, And Control Structures Use Projects Like Wright Brothers Coin Flip Game Who This Book Is For Those New To Programming And Java But Have Some Background In Mathematics And Are At Least Comfortable With Using A Computer. "There are many good Java programming books on the market, but it's not easy to find one fit for a beginner. This book simplifies the complexity of Java programming and guides you through the journey to effectively work under the hood. You'll start with the fundamentals of Java programming and review how it integrates with basic mathematical concepts through many practical examples. You'll witness firsthand how Java can be a powerful tool or framework in your experimentation work. Learn Java with math reveals how a strong math foundation is key to learning programming design. Using this as your motivation, you'll be programming in Java in no time."--Provided by publisher
دانلود کتاب Learn Java with Math - Using Fun Projects and Games