Java Programming for Engineers

Free Download

Authors:

Edition: 1

Series: Mechanical engineering

ISBN: 9780849308109, 0-8493-0810-0

Size: 2 MB (2440322 bytes)

Pages: 337/337

File format:

Language:

Publishing Year:

Category:

Julio Sanchez, Maria P. Canton9780849308109, 0-8493-0810-0

As professors at Minnesota State University, the authors developed this book after realizing the need for a Java programming book specifically intended for engineering students. Java Programming for Engineers offers basic programming skills that can be applied in the engineering field. The tutorial 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. It offers supplementary materials through the CRC Web site.

Table of contents :
JAVA Programming for Engineers……Page 2
Table of Contents……Page 5
Preface……Page 15
Introducing Java……Page 18
The Portability Issue……Page 19
Java is object-oriented……Page 20
Java is strongly-typed……Page 21
Java uses libraries……Page 22
Java is an interpreted language……Page 23
Communicating with an alien intelligence……Page 24
Flowcharting……Page 25
Selecting an Editor……Page 30
Java language rules……Page 31
The program header……Page 32
The HelloJava code……Page 34
Creating the HelloJava Program……Page 36
Number Systems……Page 40
Binary numbers……Page 41
Hex numbers……Page 42
Character data……Page 43
Numeric data……Page 46
What is Computer Data?……Page 49
Identifiers……Page 50
Creating and using variables and constants……Page 51
Declaring a variable……Page 52
Java strings……Page 53
Numeric data……Page 54
Character data……Page 55
Type Conversions……Page 56
Type-casting……Page 57
Declaring literals……Page 58
Data Input……Page 59
Escape characters……Page 61
A Sample Program……Page 63
Java Arrays……Page 64
Creating an array……Page 65
The array brackets……Page 66
Accessing array elements……Page 67
The size of an array……Page 68
Multi-dimensional arrays……Page 69
Ragged arrays……Page 70
Initializing multi-dimensional arrays……Page 72
Operators……Page 75
Operator action……Page 76
The two sides of an assignment……Page 77
Arithmetic Operators……Page 78
The remainder operator……Page 79
Increment and Decrement……Page 80
Relational Operators……Page 82
Logical Operations……Page 83
Manipulating bits……Page 84
The & operator……Page 88
The | operator……Page 89
The ^ operator……Page 90
The , and >> operators……Page 91
The compound assignment operators……Page 93
Associativity rules……Page 94
Java Decisions Constructs……Page 96
The if construct……Page 97
The nested if……Page 98
The else construct……Page 99
The dangling else……Page 100
Else-if clause……Page 101
The switch construct……Page 102
Conditional Expressions……Page 106
Loops and iterations……Page 108
Elements of a program loop……Page 109
For Loop……Page 110
Compound statement in loops……Page 113
While loop……Page 114
Do-While Loop……Page 115
Selecting a Loop Construct……Page 117
Using break in loops……Page 120
The continue keyword……Page 121
The labeled break……Page 122
Modules and Methods……Page 125
Declaration……Page 126
Return type……Page 127
Parameter list……Page 128
The Method Call……Page 129
Returning from a Method……Page 130
Arguments and Parameters……Page 131
Methods and Global Variables……Page 132
Passing by Value and by Reference……Page 134
The Why and Wherefore of OO……Page 135
Object-Oriented Fundamentals……Page 136
From Problem to Solution……Page 137
The fundamental principles……Page 138
Inheritance……Page 139
Modeling with Classes……Page 141
Polymorphism and Abstract Classes……Page 143
A classification example……Page 144
Thinking Objects……Page 146
Object instantiation……Page 148
Field variables and method variables……Page 149
Building Objects……Page 150
Overloading the constructor……Page 151
Java Inheritance……Page 156
Extending class functionality……Page 157
Polymorphism……Page 158
Modeling with inheritance……Page 159
Programming with abstract classes……Page 164
Inheritance Drawbacks……Page 170
The new mind set……Page 171
Thinking object composition……Page 172
Aggregation……Page 176
Objects as Parameters……Page 177
Acquaintance Associations……Page 180
Arrays of objects……Page 183
Dynamic Binding……Page 184
Obtaining and Transmitting Data……Page 188
Character data……Page 189
Streams……Page 191
Java InputStream class……Page 192
Java OutputStream class……Page 194
Standard Streams……Page 195
The Keyin Class……Page 196
Obtaining character data……Page 197
Obtaining numeric data……Page 199
Hardware and software errors……Page 201
Exceptions……Page 202
Java’s approach……Page 203
Java exception classes……Page 204
Advertising exceptions……Page 205
Exceptions Programming……Page 206
Raising exceptions……Page 207
Handling exceptions……Page 208
Throwing exceptions……Page 210
The Hindu-Arabic Numerals……Page 214
Radix or base……Page 215
Signed numbers……Page 216
Rational and irrational numbers……Page 217
Storage of Numerical Data……Page 218
Computer word size……Page 219
Sign-magnitude integers……Page 220
Radix-complement integers……Page 222
Diminished-radix integers……Page 223
Representing Fractional Numbers……Page 224
Fixed-point representations……Page 226
Standardized floating-point formats……Page 227
Floating-point BCD……Page 228
Primitive Data Types……Page 230
IEEE 754 Standard……Page 231
Numeric data encoding……Page 232
Interval arithmetic……Page 234
Treatment of infinity……Page 235
Signaling and quiet NaNs……Page 237
Invalid operation exception……Page 238
Overflow exception……Page 239
Underflow exception……Page 240
IEEE 754 in Java……Page 241
NEGATIVE_INFINITY……Page 242
MAX_VALUE……Page 243
POSITIVE_INFINITY……Page 244
public static double floor(double a)……Page 245
public static int round(float a)……Page 246
BigDecimal Numbers……Page 248
Using the BigDecimal constructors……Page 249
SetScale() method……Page 250
BigDecimal point operations……Page 251
public int compareTo(BigDecimal val)……Page 252
public String toString()……Page 253
BigDecimal rounding controls……Page 254
BigDecimal Arithmetic……Page 255
A sample program……Page 256
BigInteger numbers……Page 257
BigInteger(int bitLength, int certainty, Random rnd)……Page 258
BigInteger methods……Page 259
A sample program……Page 262
Java Floating-Point Math……Page 264
Strict and non-strict math……Page 265
public static final double E……Page 266
public static double abs(double a)……Page 267
public static double floor(double a)……Page 268
IEEE-style remainder……Page 269
public static double pow(double a, double b)……Page 270
Trigonometric Functions……Page 273
Calculating trigonometric functions……Page 274
Hyperbolic functions and arc-functions……Page 276
Cartesian and polar coordinates……Page 277
Logarithmic Functions……Page 279
Calculating antilogarithms……Page 280
Random Numbers……Page 281
public static double random()……Page 282
Factorial……Page 284
Evaluating Numeric Results……Page 285
Floating-point errors……Page 286
Comparing Floating-Point Numbers……Page 287
Comparisons in IEEE 754……Page 288
Weighted comparisons……Page 290
public static long doubleToLongBits(double value)……Page 291
public static long doubleToRawLongBits(double value)……Page 292
public static double longBitsToDouble(long bits)……Page 293
Conversion Operations……Page 295
Integer and fractional parts……Page 296
Side-angle problems……Page 297
Solving Quadratic Equations……Page 298
Origin of Computer Graphics……Page 301
Text-based and graphical systems……Page 302
Event-Driven Programming……Page 304
The Main Window……Page 305
Controls……Page 306
Applets and applications……Page 307
Swing……Page 308
Java 2D……Page 309
Window class……Page 310
Container class……Page 312
The ActiveFrame class……Page 316
The Display Context……Page 319
Manipulating fonts……Page 320
The frame origin……Page 323
RGB color designation……Page 325
The Java Graphics Class……Page 326
Vector-Based Drawing……Page 329
Transformations……Page 331
Displaying the bitmap……Page 335

Reviews

There are no reviews yet.

Be the first to review “Java Programming for Engineers”
Shopping Cart
Scroll to Top