Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Title
Contents
Page List
Preface
How to Use This Book
Conventions
Acknowledgments
Review This Book
Chapter 1. Computer Hardware
Chapter Outcome
Semiconductors
Parts of a Computer
Data Sizes
Clock Speeds
Classes of Computers
Categories of Software
Character Data
Execution Example
Review Questions
Chapter 2. Algorithms and Computer Programs
Chapter Outcomes
Defining Table
Algorithms
Computer Programs
Computer Operations
Control Structures
Chapter Summary
Review Questions
Chapter 3. HTML Basics
Chapter Outcomes
Starting with HTML
Document Type Declaration
Comments
HTML Elements
Case Insensitive
Well Formed HTML
Required Elements
Example HTML Document
Example HTML Document with a Form
Common Mistakes
Chapter Summary
Review Questions
Assignments
Chapter 4. JavaScript Basics
Chapter Outcomes
Starting with JavaScript
Running Your Program
Comments
Statements
Case Sensitive
Declaring Variables
String Concatenation
Popup Windows
Text Fields and Divisions
Reserved Words
Fixing a Program that Doesn’t Work
Common Mistakes
Chapter Summary
Review Questions
Programming Assignments
Chapter 5. Variables and Arithmetic
Chapter Outcomes
Declaring a Variable
Variable Types
Assigning a Value to a Variable
Desk Checks
Swapping Values
Arithmetic Expressions
Arithmetic Operators
Operator Precedence
Celsius to Fahrenheit
Fahrenheit to Celsius
Assignment Operators
Increment and Decrement Operators
Operator Precedence Revisited
Math Object
Volume of a Cylinder
Distance between Two Points
Round to Decimal Places
Common Mistakes
Chapter Summary
Review Questions
Programming Assignments
Chapter 6. Selection
Chapter Outcomes
Relational Operators
if …
if … else …
if … else if … else …
Power of else
switch
Even Integers
Odd Integers
Quadratic Formula
Nested If Statements
Common Mistakes
Chapter Summary
Review Questions
Programming Assignments
Chapter 7. Logic
Chapter Outcomes
Logical Operators
Choosing a Group
Disneyland Autopia
Exclusive Or
Logical Equivalences
Using De Morgan’s Law
Advanced Word Search
Truth Tables
Common Mistakes
Chapter Summary
Review Questions
Programming Assignments
Chapter 8. Repetition
Chapter Outcomes
Pre-test and Post-test Loops
Counting and Sentinel Controlled Loops
Repetition Control Structures
while
for
For Each Loop
do while
Zero-Based Counting Loop
Skipping Loop
Infinite Loop
Compound Interest
break
Prime Numbers
Repetitive Strings
Common Mistakes
Chapter Summary
Review Questions
Programming Assignments
Chapter 9. Functions
Chapter Outcomes
Writing a Function
Calling a Function
Variable Scope
Advantages of Functions
Pseudo Random Integer
Code Reuse
Area of a Triangle
Surface Area of a Pyramid
How Long to Invest
Greatest Common Divisor
Common Mistakes
Chapter Summary
Review Questions
Programming Assignments
Chapter 10. Arrays
Chapter Outcomes
Declaring an Array
Creating an Array
Array Length
Accessing an Element
Filling an Array
Filling an Array with a Ramp
Reversing an Array
Summing the Values in an Array
Finding a Value (Linear Search)
Parallel Arrays
Finding a Range
Finding a Value (Binary Search)
Array Methods
Sorting an Array
Sorting Numbers
Common Mistakes
Chapter Summary
Review Questions
Programming Assignments
Chapter 11. Objects
Chapter Outcomes
Objects and Classes
Unified Modeling Language
Relationships
Multiplicities
JavaScript Built-in Objects
Declaring an Object
Creating an Object
Accessing an Attribute
Calling a Method
Dictionaries
Local Storage
Document Object Model
Chapter Summary
Review Questions
Programming Assignments
Chapter 12. Strings
Chapter Outcomes
Creating a String
String Concatenation
Escape Sequences
String Length
Accessing a Character
Reversing a String
Comparing Strings
String Methods
Extracting a Substring
Counting Characters
Tranposing Chords
Chapter Summary
Review Questions
Programming Assignments
Appendix A. Operator Precedence
Associativity
Precedence
Appendix B. Robust Code
Index
About the Author
← Prev
Back
Next →
← Prev
Back
Next →