没有合适的资源?快使用搜索试试~ 我知道了~
Java and Algorithmic Thinking for the Complete Beginner 无水印pdf
需积分: 10 13 下载量 86 浏览量
2017-09-30
23:33:54
上传
评论 1
收藏 12.31MB PDF 举报
温馨提示
试读
859页
Java and Algorithmic Thinking for the Complete Beginner 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
资源推荐
资源详情
资源评论
Java and Algorithmic Thinking for the Complete Beginner
Kindle Edition
Copyright © 2015 by Aristides S. Bouras and Loukia V. Ainarozidou
http://www.bouraspage.com
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other
names may be trademarks of their respective owners.
All rights reserved. No part of this book may be reproduced or transmitted in any
form or by any means, mechanical or electronic, including photocopying, recording,
or by any information storage and retrieval system, without written permission from
the authors.
Warning and Disclaimer
This book is designed to provide information about learning “Algorithmic Thinking,”
mainly through the use of Java programming language. Every effort has been taken
to make this book compatible with all previous releases of Java, and it is almost
certain to be compatible with any future releases of Java.
The information is provided on an “as is” basis. The authors shall have neither
liability nor responsibility to any person or entity with respect to any loss or
damages arising from the information contained in this book or from the use of the
files that may accompany it.
This book is dedicated to
our parents,
who have made us who we are.
Contents at a Glance
Preface………….. ............................................................................................................................... 21
Section 1 Introductory Knowledge ....................................................................................... 27
Chapter 1 How a Computer Works ........................................................................................28
Chapter 2 Java ..............................................................................................................................34
Chapter 3 Software Packages to Install ..............................................................................37
Review Questions in “Introductory Knowledge” ...............................................................43
Section 2 Getting Started with Java....................................................................................... 44
Chapter 4 Introduction to Basic Algorithmic Concepts ..................................................45
Chapter 5 Variables and Constants ......................................................................................59
Chapter 6 Handling Input and Output .................................................................................71
Chapter 7 Operators ..................................................................................................................78
Chapter 8 Trace Tables .............................................................................................................92
Chapter 9 Using NetBeans IDE ............................................................................................. 101
Review Questions in “Getting Started with Java” .......................................................... 118
Section 3 Sequence Control Structures ............................................................................. 120
Chapter 10 Introduction to Sequence Control Structures .......................................... 121
Chapter 11 Manipulating Numbers ................................................................................... 130
Chapter 12 Complex Mathematical Expressions ........................................................... 141
Chapter 13 Exercises With a Quotient and a Remainder ............................................ 147
Chapter 14 Manipulating Strings ....................................................................................... 157
Review Questions in “Sequence Control Structures” .................................................... 171
Section 4 Decision Control Structures ............................................................................... 172
Chapter 15 Introduction to Decision Control Structures ............................................ 173
Chapter 16 The Single-Alternative Decision Structure ............................................... 188
Chapter 17 The Dual-Alternative Decision Structure .................................................. 197
Chapter 18 The Multiple-Alternative Decision Structure ........................................... 209
Chapter 19 The Case Decision Structure .......................................................................... 217
Chapter 20 Nested Decision Control Structures ............................................................. 226
Chapter 21 Tips and Tricks with Decision Control Structures .................................. 238
Chapter 22 Flowcharts with Decision Control Structures .......................................... 284
Chapter 23 More Exercises with Decision Control Structures ................................... 305
Review Questions in “Decision Control Structures” ...................................................... 354
Section 5 Loop Control Structures ...................................................................................... 355
Chapter 24 Introduction to Loop Control Structures ................................................... 356
Chapter 25 The Pre-Test Loop Structure .......................................................................... 360
Chapter 26 The Post-Test Loop Structure ........................................................................ 377
Chapter 27 Counted Loop Structures ................................................................................ 391
Chapter 28 Nested Loop Control Structures .................................................................... 412
Chapter 29 Tips and Tricks with Loop Control Structures ......................................... 425
Chapter 30 Flowcharts with Loop Control Structures ................................................. 477
Chapter 31 More Exercises with Loop Control Structures .......................................... 503
Review Questions in “Loop Control Structures” ............................................................. 566
Section 6 Arrays ......................................................................................................................... 568
Chapter 32 Introduction to Arrays ..................................................................................... 569
Chapter 33 One-Dimensional Arrays ................................................................................ 577
Chapter 34 Two-Dimensional Arrays ............................................................................... 592
Chapter 35 Tips and Tricks with Arrays .......................................................................... 617
Chapter 36 Flowcharts with Arrays ................................................................................... 638
Chapter 37 More Exercises with Arrays ........................................................................... 651
Review Questions in “Arrays” .............................................................................................. 749
Section 7 Subprograms ........................................................................................................... 751
Chapter 38 Introduction to Subprograms ....................................................................... 752
Chapter 39 User-Defined Methods (Functions) .............................................................. 755
Chapter 40 User-Defined void Methods (Procedures) ................................................. 768
Chapter 41 Tips and Tricks with Subprograms ............................................................. 780
Chapter 42 Flowcharts with Subprograms ..................................................................... 817
Chapter 43 More Exercises with Subprograms .............................................................. 834
Review Questions in “Subprograms” ................................................................................. 852
Index................................................................................................................................................. 853
Table of Contents
Preface………….. ............................................................................................................................... 21
About the Authors ..................................................................................................................................... 22
Acknowledgments ..................................................................................................................................... 23
How This Book is Organized ................................................................................................................. 23
Who Should Buy This Book? ................................................................................................................. 23
Where to Find Answers to Review Questions and Exercises ................................................. 24
How to Report Errata............................................................................................................................... 24
Conventions Used in This Book ........................................................................................................... 25
Section 1 Introductory Knowledge ....................................................................................... 27
Chapter 1 How a Computer Works ........................................................................................28
1.1 Introduction ................................................................................................................................. 28
1.2 What is Hardware? .................................................................................................................... 28
1.3 What is Software? ...................................................................................................................... 29
1.4 How a Computer Executes (Runs) a Program ............................................................... 29
1.5 Compilers and Interpreters ................................................................................................... 29
1.6 What is Source Code? ............................................................................................................... 30
1.7 Review Questions: True/False ............................................................................................. 30
1.8 Review Questions: Multiple Choice ................................................................................... 31
Chapter 2 Java ..............................................................................................................................34
2.1 What is Java? ................................................................................................................................ 34
2.2 What is the Difference Between a Script and a Program? ....................................... 34
2.3 Why You Should Learn Java .................................................................................................. 34
2.4 How Java Works ......................................................................................................................... 35
Chapter 3 Software Packages to Install ..............................................................................37
3.1 Java Development Kit (JDK) .................................................................................................. 37
3.2 How to Set Up JDK ..................................................................................................................... 37
3.3 NetBeans ........................................................................................................................................ 37
3.4 How to Set Up NetBeans IDE ................................................................................................ 38
Review Questions in “Introductory Knowledge” ...............................................................43
Section 2 Getting Started with Java....................................................................................... 44
Chapter 4 Introduction to Basic Algorithmic Concepts ..................................................45
4.1 What is an Algorithm? ............................................................................................................. 45
4.2 The Algorithm for Making a Cup of Tea ........................................................................... 45
4.3 Properties of an Algorithm .................................................................................................... 45
4.4 Okay About Algorithms. But What is a Computer Program Anyway? ................ 46
4.5 The Party of Three! ................................................................................................................... 46
4.6 The Three Main Stages Involved in Creating an Algorithm .................................... 46
剩余858页未读,继续阅读
资源评论
yinkaisheng-nj
- 粉丝: 763
- 资源: 6953
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功