CART

(0) items

Java Programs to Accompany Programming Logic and Design,9781423902294

Java Programs to Accompany Programming Logic and Design

by
Edition:
2nd
ISBN13:

9781423902294

ISBN10:
1423902297
Format:
Paperback
Pub. Date:
2/4/2008
Publisher(s):
Cengage Learning
List Price: $47.95

eTextbook

Downloadable Offline Access
  • Apple Devices
  • Android Devices
  • Windows Devices
  • Mac Devices

 
Duration
Price
$13.99

Rent Textbook

We're Sorry
Sold Out

Used Textbook

We're Sorry
Sold Out

New Textbook

We're Sorry
Sold Out

More New and Used
from Private Sellers
Starting at $0.01
See Prices

Related Products


  • C++ Programs to Accompany Programming Logic and Design
    C++ Programs to Accompany Programming Logic and Design
  • C++ Programs to Accompany Programming Logic and Design
    C++ Programs to Accompany Programming Logic and Design
  • Java Programming to Accompany Programming Logic and Design
    Java Programming to Accompany Programming Logic and Design
  • Java Programs to Accompany Programming Logic and Design
    Java Programs to Accompany Programming Logic and Design
  • Java Programs to Accompany Programming Logic and Design
    Java Programs to Accompany Programming Logic and Design
  • Java Programs to Accompany Programming Logic and Design, 3rd Edition
    Java Programs to Accompany Programming Logic and Design, 3rd Edition
  • Java™ Programs for Programming Logic and Design
    Java™ Programs for Programming Logic and Design




Summary

Java "PAL" is designed to be paired with the Fifth Edition of the highly successful Programming Logic and Design by Joyce Farrell. The two books together provide the perfect opportunity for those who want to learn the fundamentals of programming and also get a taste of an actual programming language. Users can discover how real Java code behaves while remaining within the context of the traditional language-independent logic and design course.

Author Biography

Jo Ann Smith is currently working as a computer consultant in the higher education space. She was formerly an Assistant Professor of Computer Information Systems at Harper College in Palatine, Illinois. Jo Ann also taught at the College of DuPage in Glen Ellyn, Illinois, and at the University of St. Francis in Joliet, Illinois. Her industry experience includes running a computer-training company in the Chicago area for seven years and working for nine years at ATT Bell Laboratories.

Table of Contents

Prefacep. XI
Read this Before you Beginp. XIV
An Introduction to Java and the Java Programming Environmentp. 1
The Java Programming Languagep. 2
Three Types of Java Programsp. 2
An Introduction to Object-Oriented Terminologyp. 3
Downloading the Java Standard Edition Development Kit (JDK)p. 4
The Structure of a Java Programp. 4
The Java Development Cyclep. 6
Writing Java Source Codep. 7
Compiling a Java Programp. 7
Executing a Java Programp. 8
Exercise 1-1: Understanding Java Utilitiesp. 10
Lab 1-1: Compiling and Executing A Java Programp. 10
Variables, Operators, and Writing Programs Using Sequential Statementsp. 11
Variablesp. 12
Variable Namesp. 12
Java Data Typesp. 13
Exercise 2-1: Using Java Variables, Data Types, and Keywordsp. 13
Declaring and Initializing Variablesp. 14
Exercise 2-2: Declaring and Initializing Java Variablesp. 15
Lab 2-1: Declaring and Initializing Java Variablesp. 16
Arithmetic and Assignment Operatorsp. 16
Arithmetic Operatorsp. 16
Assignment Operators and the Assignment Statementp. 18
Precedence and Associativityp. 19
Exercise 2-3: Understanding Operator Precedence and Associativityp. 20
Lab 2-2: Arithmetic and Assignment Operatorsp. 21
Sequential Statements and Interactive Input Statementsp. 22
Exercise 2-4: Understanding Sequential Statementsp. 24
Lab 2-3: Using Sequential Statements in a Java Programp. 26
Writing Structured Java Programsp. 29
Using Flowcharts and Pseudocode to Write a Java Programp. 30
Lab 3-1: Using Flowcharts and Pseudocode to Write a Java Programp. 33
Java Commentsp. 35
Lab 3-2: Commenting Java Programsp. 37
Writing a Modular Program in Javap. 37
Lab 3-3: Writing a Modular Program in Javap. 42
Writing Programs that Make Decisionsp. 43
Boolean Operatorsp. 44
Relational Operatorsp. 44
Logical Operatorsp. 45
Relational and Logical Operator Precedence and Associativityp. 46
Comparing Stringsp. 47
Decision Statementsp. 49
The If Statementp. 49
Exercise 4-1: Understanding if Statementsp. 51
Lab 4-1: Using if Statementsp. 52
The if-else Statementp. 52
Exercise 4-2: Understanding if-else Statementsp. 54
Lab 4-2: Using if-else Statementsp. 55
Nested if Statementsp. 55
Exercise 4-3: Understanding Nested if Statementsp. 57
Lab 4-3: Using Nested if Statementsp. 58
The switch Statementp. 59
Exercise 4-4: Using a switch Statementp. 60
Lab 4-4: Using a switch Statementp. 60
Using Decision Statements to Make Multiple Comparisonsp. 61
Using And Logicp. 62
Using Or Logicp. 62
Exercise 4-5: Making Multiple Comparisons in Decision Statementsp. 63
Lab 4-5: Making Multiple Comparisons in Decision Statementsp. 64
Writing Programs Using Loopsp. 67
The Increment (++) and Decrement (--) Operatorsp. 68
Exercise 5-1: Using the Increment and Decrement Operatorsp. 69
Writing a While Loop in Javap. 70
Exercise 5-2: Using a while Loopp. 71
Using a Counter to Control a Loopp. 72
Exercise 5-3: Using a Counter-Controlled while Loopp. 73
Lab 5-1: Using a Counter-Controlled while Loopp. 73
Using a Sentinel Value to Control a Loopp. 74
Exercise 5-4: Using a Sentinel Value to Control a while Loopp. 75
Lab 5-2: Using a Sentinel Value to Control a while Loopp. 76
Writing a for Loop in Javap. 76
Exercise 5-5: Using a for Loopp. 78
Lab 5-3: Using a for Loopp. 78
Writing a Do-While Loop in Javap. 79
Exercise 5-6: Using a do-while Loopp. 79
Lab 5-4: Using a do-while Loopp. 80
Nesting Loopsp. 80
Exercise 5-7: Nesting Loopsp. 81
Lab 5-5: Nesting Loopsp. 82
Accumulating Totals in a Loopp. 83
Exercise 5-8: Accumulating Totals in a Loopp. 84
Lab 5-6: Accumulating Totals in a Loopp. 85
Using a Loop to Validate Inputp. 86
Exercise 5-9: Validating User Inputp. 87
Lab 5-7: Validating User Inputp. 88
Using Arrays in Java Programsp. 89
Array Basicsp. 90
Declaring Arraysp. 90
Initializing Arraysp. 92
Accessing Array Elementsp. 92
Staying within the Bounds of an Arrayp. 93
Using Constants with Arraysp. 94
Exercise 6-1: Array Basicsp. 95
Lab 6-1: Using Arraysp. 95
Searching an Array for an Exact Matchp. 96
Exercise 6-2: Searching an Array for an Exact Matchp. 98
Lab 6-2: Searching an Array for an Exact Matchp. 98
Parallel Arraysp. 99
Exercise 6-3: Parallel Arraysp. 102
Lab 6-3: Parallel Arraysp. 102
Using Methods in Java Programsp. 105
A Simple Java Methodp. 106
Exercise 7-1: Writing Simple Methodsp. 108
Lab 7-1: Writing Simple Methodsp. 108
Writing Methods that Require a Single Parameterp. 109
Exercise 7-2: Writing Methods that Require a Single Parameterp. 110
Lab 7-2: Writing Methods that Require a Single Parameterp. 111
Writing Methods that Require Multiple Parametersp. 112
Exercise 7-3: Writing Methods that Require Multiple Parametersp. 113
Lab 7-3: Writing Methods that Require Multiple Parametersp. 114
Writing Methods that Return a Valuep. 114
Exercise 7-4: Writing Methods that Return a Valuep. 116
Lab 7-4: Writing Methods that Return a Valuep. 117
Passing an Array and an Array Element to a Methodp. 117
Exercise 7-5: Passing Arrays to Methodsp. 120
Lab 7-5: Passing Arrays to Methodsp. 121
Overloading Methodsp. 122
Exercise 7-6: Overloading Methodsp. 124
Lab 7-6: Overloading Methodsp. 124
Using Java's Built-In Methodsp. 125
Exercise 7-7: Using Java's Built-in Methodsp. 125
Lab 7-7: Using Java's Built-in Methodsp. 126
Writing Control Break Programsp. 129
Accumulating Totals in Single-Level Control Break Programsp. 130
Exercise 8-1: Accumulating Totals in Single-Level Control Break Programsp. 135
Lab 8-1: Accumulating Totals in Single-Level Control Break Programsp. 135
Multiple-Level Control Break Programsp. 137
Exercise 8-2: Multiple-Level Control Break Programsp. 142
Lab 8-2: Multiple-Level Control Break Programsp. 143
Sorting Data and File Input/Outputp. 145
Sorting Datap. 146
Swapping Data Valuesp. 146
Exercise 9-1: Swapping Valuesp. 147
Lab 9-1: Swapping Valuesp. 147
Using a Bullet Sortp. 148
The main ( ) Methodp. 152
The fillArray ( ) Methodp. 152
The sortArray ( ) Methodp. 153
The displayArray ( ) Methodp. 154
Exercise 9-2: Using a Bubble Sortp. 154
Lab 9-2: Using a Bubble Sortp. 155
File Input and Outputp. 156
Importing Packages and Classesp. 156
Opening a File for Readingp. 156
Reading Data from an Input Filep. 157
Reading Data Using a Loop and EOFp. 158
Opening a File for Writingp. 158
Writing Data to an Output Filep. 159
Exercise 9-3: Opening Files and Performing File Inputp. 161
Lab 9-2: Using an Input Filep. 162
Additional Topicsp. 163
A Programmer-Defined Classp. 164
Creating a Programmer-Defined Classp. 164
Adding Attributes to a Classp. 165
Adding Methods to a Classp. 166
Exercise 10-1: Creating a Class in Javap. 170
Lab 10-1: Creating a Class in Javap. 171
Creating a Graphical User Interface (GUI)p. 172
Writing a Constructorp. 174
Writing the main ( ) Methodp. 176
Exercise 10-2: Creating a Graphical User Interface in Javap. 177
Lab 10-2: Creating a Graphical User Interface in Javap. 177
Indexp. 179
Table of Contents provided by Ingram. All Rights Reserved.


Please wait while the item is added to your cart...