+612 9045 4394
 
CHECKOUT
Java Programming for Engineers : Mechanical Engineering - Julio Sanchez

Java Programming for Engineers

Mechanical Engineering

Paperback Published: 20th June 2002
ISBN: 9780849308109
Number Of Pages: 360

Share This Book:

Paperback

RRP $392.99
$271.80
31%
OFF
or 4 easy payments of $67.95 with Learn more
Ships in 7 to 10 business days

While teaching Java programming at Minnesota State University, the authors noticed that engineering students were enrolling in Java programming courses in order to obtain basic programming skills, but there were no Java books suitable for courses intended for engineers. They realized the need for a comprehensive Java programming tutorial that offers basic programming skills that can be applied in the field of engineering. With this in mind, the authors developed Java Programming for Engineers in order to meet the needs of both engineers and engineering students.
The text uses the personal computer as a development platform and assumes no prior programming experience or knowledge. The only skills expected of the reader are basic keyboarding and user-level familiarity with the PC. Topics covered range from mathematical expressions to linear systems to engineering graphics. Chapters on problem solving skills and the designing of engineering applications walk readers through real word problems they might encounter.
Divided into two parts, Part 1 is a description of the Java language, of the fundamentals of object orientation, input and output operations, and error handling. Part 2 is about Java programming for engineers. It starts with computer number systems, fixed- and variable-precision numeric data, mathematical programming in Java as could be of interest to engineers, and concludes with an overview of Java Graphics.

Prefacep. xv
Java Language Fundamentalsp. 1
Java Programmingp. 3
Introducing Javap. 3
The Portability Issuep. 4
Java as a programming languagep. 5
Java Codep. 9
Your First Java Programp. 15
Installing the JDKp. 15
Selecting an Editorp. 15
The HelloJava Programp. 16
Java language rulesp. 16
Creating the HelloJava Programp. 21
How Computers Store Informationp. 25
Storing Text and Numbersp. 25
Number Systemsp. 25
Binary numbersp. 26
Hex numbersp. 27
Computer memoryp. 28
Character datap. 28
Numeric datap. 31
Storing and Naming Datap. 35
A Data-Processing Machinep. 35
What is Computer Data?p. 35
Identifiersp. 36
Creating and using variables and constantsp. 37
Java variable typesp. 38
Declaring a variablep. 38
Java stringsp. 39
Java constantsp. 40
Classification of Java Datap. 40
Numeric datap. 40
Character datap. 41
Boolean datap. 42
Type Conversionsp. 42
Implicit conversionsp. 43
Type-castingp. 43
Declaring literalsp. 44
Performing Input and Outputp. 45
Input and Outputp. 45
Data Inputp. 45
Data Outputp. 47
Escape charactersp. 47
A Sample Programp. 49
Introducing Arraysp. 51
A New Data Typep. 51
Java Arraysp. 51
Creating an arrayp. 52
The array bracketsp. 53
Accessing array elementsp. 54
The size of an arrayp. 55
Multi-dimensional arraysp. 56
Ragged arraysp. 57
Initializing multi-dimensional arraysp. 59
Java Operatorsp. 63
The Action Elementp. 63
Operatorsp. 63
Operator actionp. 64
The Assignment Operatorp. 65
The two sides of an assignmentp. 65
Arithmetic Operatorsp. 66
The remainder operatorp. 67
Concatenationp. 68
Increment and Decrementp. 68
Relational Operatorsp. 70
Other Java Operatorsp. 71
Logical Operationsp. 71
Manipulating bitsp. 72
The & operatorp. 76
The operatorp. 77
The ^ operatorp. 78
The ** operatorp. 79
The [left angle bracket, right angle bracket and double right angle bracket] operatorsp. 79
The compound assignment operatorsp. 81
Operator hierarchyp. 82
Associativity rulesp. 82
Directing Program Flowp. 85
Simple Decisionsp. 85
Java Decisions Constructsp. 85
The if constructp. 86
Statement blocksp. 87
The nested ifp. 87
The else constructp. 88
The dangling elsep. 89
Else-if clausep. 90
The switch constructp. 91
Conditional Expressionsp. 95
Controlling Program Flowp. 97
Repetition in Programsp. 97
Loops and iterationsp. 97
Elements of a program loopp. 98
For Loopp. 99
Compound statement in loopsp. 102
While loopp. 103
Do-While Loopp. 104
Programming with Loopsp. 107
Java Loop Constructsp. 107
Selecting a Loop Constructp. 107
Direct Flow Controlp. 110
Using break in loopsp. 110
The continue keywordp. 111
The labeled breakp. 112
Program Building Blocksp. 115
The Java Subprogramp. 115
Modules and Methodsp. 115
The Elements of a Methodp. 116
Declarationp. 116
Access specifierp. 117
Modifierp. 117
Return typep. 117
Method namep. 118
Parameter listp. 118
Using Methodsp. 119
The Method Callp. 119
Returning from a Methodp. 120
Arguments and Parametersp. 121
Methods and Global Variablesp. 122
Passing by Value and by Referencep. 124
Object-Oriented Programmingp. 125
Classes and Objectsp. 125
The Why and Wherefore of OOp. 125
Object-Oriented Fundamentalsp. 126
From Problem to Solutionp. 127
Learning about Classes and Objectsp. 128
The fundamental principlesp. 128
Encapsulationp. 129
Inheritancep. 129
Modeling with Classesp. 131
Polymorphism and Abstract Classesp. 133
A classification examplep. 134
Object-Oriented Codingp. 137
Working with Classes and Objectsp. 137
Thinking Objectsp. 137
Object instantiationp. 139
Field variables and method variablesp. 140
Object variables and class variablesp. 141
Building Objectsp. 141
The default constructorp. 142
Overloading the constructorp. 142
Using Inheritancep. 147
Inheritance and Data Abstractionp. 147
Java Inheritancep. 147
Extending class functionalityp. 148
Polymorphismp. 149
Modeling with inheritancep. 150
Abstraction and Inheritancep. 155
Programming with abstract classesp. 155
Object Compositionp. 161
An Alternative to Inheritancep. 161
Inheritance Drawbacksp. 161
Reusing Class Functionalityp. 162
The new mind setp. 162
Thinking object compositionp. 163
Aggregationp. 167
Objects as Parametersp. 168
Acquaintance Associationsp. 171
Combining Inheritance and Compositionp. 174
Arrays of objectsp. 174
Dynamic Bindingp. 175
I/O Programmingp. 179
Java Input and Outputp. 179
Obtaining and Transmitting Datap. 179
Character datap. 180
java.io Packagep. 182
Streamsp. 182
Java InputStream classp. 183
Java OutputStream classp. 185
Standard Streamsp. 186
The Keyin Classp. 187
Flushing the input streamp. 188
Obtaining character datap. 188
Obtaining numeric datap. 190
Handling Errorsp. 193
Program Errorsp. 193
Error Typesp. 193
Hardware and software errorsp. 193
Algorithmic errorsp. 194
Exceptionsp. 194
Bullt-in exception handlingp. 195
Java's approachp. 195
Java exception classesp. 196
Advertising exceptionsp. 197
Exceptions Programmingp. 198
Java exception processingp. 199
Raising exceptionsp. 199
Handling exceptionsp. 200
Throwing exceptionsp. 202
Java Programming for Engineersp. 205
Computer Number Systemsp. 207
The Hindu-Arabic Numeralsp. 207
Computer Number Systemsp. 208
Radix or basep. 208
Types of Numbersp. 209
Whole numbersp. 209
Signed numbersp. 209
Rational and irational numbersp. 210
Real and complex numbersp. 211
Storage of Numerical Datap. 211
Computer word sizep. 212
Representing Integersp. 213
Sign-magnitude integersp. 213
Radix-complement integersp. 215
Diminished-radix integersp. 216
Representing Fractional Numbersp. 217
Fixed-point representationsp. 219
Floating-point representationsp. 220
Standardized floating-point formatsp. 220
Binary-Coded Decimals (BCD)p. 221
Floating-point BCDp. 221
Fixed-Precision Numeric Datap. 223
Java Numeric Data Typesp. 223
Primitive Data Typesp. 223
IEEE 754 Standardp. 224
Numeric Data Encodingp. 225
Roundingp. 227
Interval arithmeticp. 227
Treatment of infinityp. 228
Not a number (NaN)p. 230
Signaling and quiet NaNsp. 230
Exceptionsp. 231
Invalid operation exceptionp. 231
Division by zero exceptionp. 232
Overflow exceptionp. 232
Underflow exceptionp. 233
Inexact result exceptionp. 234
IEEE 754 in Javap. 234
java.lang Class Doublep. 235
MAX_VALUEp. 235
MIN_VALUEp. 235
NaNp. 235
NEGATIVE_INFINITYp. 235
POSITIVE_INFINITYp. 236
java.lang Class Floatp. 236
MAX_VALUEp. 236
MIN_VALUEp. 237
NaNp. 237
NEGATIVE_INFINITYp. 237
POSITIVE_INFINITYp. 237
Java Numeric Truncationp. 238
Variable-Precision Numeric Datap. 241
High-Precision Arithmeticp. 241
BigDecimal Numbersp. 241
BigDecimal constructorsp. 242
Using the BigDecimal constructorsp. 242
BigDecimal scale operationsp. 243
BigDecimal point operationsp. 244
BigDecimal comparisons and conversionsp. 245
BigDecimal rounding controlsp. 247
BigDecimal Arithmeticp. 248
A sample programp. 249
The BigInteger Classp. 250
BigInteger numbersp. 250
BigInteger constructorsp. 251
BigInteger methodsp. 252
A sample programp. 255
Fundamental Operationsp. 257
Calculator Operationsp. 257
Java Floating-Point Mathp. 257
Strict and non-strict mathp. 258
Java Basic Arithmeticp. 259
Numeric constantsp. 259
Absolute valuep. 260
Maximum and minimump. 261
Rounding controlsp. 261
IEEE-style remainderp. 262
Exponential Functionp. 263
Trigonometric Functionsp. 266
Calculating trigonometric functionsp. 267
Hyperbolic functions and arc-functionsp. 269
Cartesian and polar coordinatesp. 270
Logarithmic Functionsp. 272
Calculating antilogarithmsp. 273
Random Numbersp. 274
Producing pseudo-random numbersp. 275
Java Math for Engineersp. 277
Java Numerical Primitivesp. 277
Factorialp. 277
Evaluating Numeric Resultsp. 278
Floating-point errorsp. 279
Comparing Floating-Point Numbersp. 280
Comparisons in IEEE 754p. 281
Weighted comparisonsp. 283
Bit-by-Bit operationsp. 284
Conversion Operationsp. 288
Integer and fractional partsp. 289
Solving Trianglesp. 290
Pythagoras' theoremp. 290
Side-angle problemsp. 290
Solving Quadratic equationsp. 291
Introducing Computer Graphicsp. 295
Developing Graphical Applicationsp. 295
Origin of Computer Graphicsp. 295
Text-based and graphical systemsp. 296
Event-Driven Programmingp. 298
Event manager and event handlerp. 299
The Main Windowp. 299
Controlsp. 300
Java Graphicsp. 301
The Greatest Challengep. 301
Applets and applicationsp. 301
The Java Foundation Classesp. 302
AWTp. 302
Swingp. 302
Java 2Dp. 303
The Frame Conceptp. 304
AWT frame classp. 304
Window classp. 304
Container classp. 306
The Java Graphics Applicationp. 310
The ActiveFrame classp. 310
The Display Contextp. 313
The update() and paint() methodsp. 314
Manipulating fontsp. 314
Displaying Graphic Imagesp. 317
Vector and Raster Graphicsp. 317
The frame originp. 317
Color and Java graphicsp. 319
RGB color designationp. 319
The Java Graphics Classp. 320
Vector-Based Drawingp. 323
Transformationsp. 325
Raster Graphicsp. 329
The image objectp. 329
Displaying the bitmapp. 329
Indexp. 333
Table of Contents provided by Rittenhouse. All Rights Reserved.

ISBN: 9780849308109
ISBN-10: 0849308100
Series: Mechanical Engineering
Audience: Professional
Format: Paperback
Language: English
Number Of Pages: 360
Published: 20th June 2002
Publisher: CRC PR INC
Country of Publication: US
Dimensions (cm): 23.42 x 15.55  x 1.88
Weight (kg): 0.5
Edition Number: 1