Adjust_Test_Scores.java
F:\JavaCode\LewisCode\chap06\applications>java Adjust_Test_Scores
Symantec Java! JustInTime Compiler Version 210.053 for JDK 1.1.2
Copyright (C) 1996-97 Symantec Corporation
Enter 10 grades:
87
67
75
45
90
67
78
79
80
50
Average = 71.8
Original Adjusted
87 91
67 71
75 79
45 49
90 94
67 71
78 82
79 83
80 84
50 54
F:\JavaCode\LewisCode\chap06\applications>
Array_Test.java
F:\JavaCode\LewisCode\chap06\applications>java Array_Test
Symantec Java! JustInTime Compiler Version 210.053 for JDK 1.1.2
Copyright (C) 1996-97 Symantec Corporation
Original array:
11 22 33 44 55
The value of num is 11
The value of num is now 1234
After passing one element:
11 22 33 44 55
After changing individual elements:
11 22 77 44 88
After attempting to change a reference:
11 22 77 44 88
After copying each array element:
99 99 99 99 99
After returning a reference:
99 9876 99 99 99
F:\JavaCode\LewisCode\chap06\applications>
Basic_Array.java
F:\JavaCode\LewisCode\chap06\applications>java Basic_Array
Symantec Java! JustInTime Compiler Version 210.053 for JDK 1.1.2
Copyright (C) 1996-97 Symantec Corporation
0 10 20 30 40 999 60 70 80 90 100 110 120 130 140
F:\JavaCode\LewisCode\chap06\applications>
Beatles.java
F:\JavaCode\LewisCode\chap06\applications>java Beatles
Symantec Java! JustInTime Compiler Version 210.053 for JDK 1.1.2
Copyright (C) 1996-97 Symantec Corporation
[Paul, Pete, John, George]
[Paul, John, George, Ringo]
F:\JavaCode\LewisCode\chap06\applications>
Children.java
F:\JavaCode\LewisCode\chap06\applications>java Children
Symantec Java! JustInTime Compiler Version 210.053 for JDK 1.1.2
Copyright (C) 1996-97 Symantec Corporation
Joshua
Bethany
Megan
Eric
F:\JavaCode\LewisCode\chap06\applications>
Money.java
F:\JavaCode\LewisCode\chap06\applications>java Money
Symantec Java! JustInTime Compiler Version 210.053 for JDK 1.1.2
Copyright (C) 1996-97 Symantec Corporation
1 penny
1 dime
1 dollar
rallod 1
F:\JavaCode\LewisCode\chap06\applications>
Multi-Array_Test.java
F:\JavaCode\LewisCode\chap06\applications>java Multi_Array_Test
Symantec Java! JustInTime Compiler Version 210.053 for JDK 1.1.2
Copyright (C) 1996-97 Symantec Corporation
28 84 47 72
69 26
91 40 28
42 34 37
13 26 57 35
Sum of column 0: 243
Sum of column 1: 210
Sum of column 2: 169
Sum of column 3: 107
F:\JavaCode\LewisCode\chap06\applications>
Presidents.java
F:\JavaCode\LewisCode\chap06\applications>java Presidents
Symantec Java! JustInTime Compiler Version 210.053 for JDK 1.1.2
Copyright (C) 1996-97 Symantec Corporation
Enter 5 Presidents:
Johnson
Carter
Roosevelt
Washington
Wilson
The names you entered, in reverse:
Wilson
Washington
Roosevelt
Carter
Johnson
F:\JavaCode\LewisCode\chap06\applications>
Primes.java
F:\JavaCode\LewisCode\chap06\applications>java Primes
Symantec Java! JustInTime Compiler Version 210.053 for JDK 1.1.2
Copyright (C) 1996-97 Symantec Corporation
The first few prime numbers:
2 3 5 7 11 13 17 19
F:\JavaCode\LewisCode\chap06\applications>
Reverse_Numbers.java
F:\JavaCode\LewisCode\chap06\applications>java Reverse_Numbers
Symantec Java! JustInTime Compiler Version 210.053 for JDK 1.1.2
Copyright (C) 1996-97 Symantec Corporation
The size of the array is: 10
Number 0: 34
Number 1: 45
Number 2: 56
Number 3: 67
Number 4: 78
Number 5: 89
Number 6: 90
Number 7: 11
Number 8: 12
Number 9: 24
Numbers in reverse:
24 12 11 90 89 78 67 56 45 34
F:\JavaCode\LewisCode\chap06\applications>
Roll_Call.java
F:\JavaCode\LewisCode\chap06\applications>java Roll_Call
Symantec Java! JustInTime Compiler Version 210.053 for JDK 1.1.2
Copyright (C) 1996-97 Symantec Corporation
The search found the following member:
Reed Richards 26911
Member Id #
Johnny Storm 70469
Sue Richards 69048
Reed Richards 26911
Ben Grimm 89696
F:\JavaCode\LewisCode\chap06\applications>
Sales_Analysis.java
F:\JavaCode\LewisCode\chap06\applications>java Sales_Analysis
Symantec Java! JustInTime Compiler Version 210.053 for JDK 1.1.2
Copyright (C) 1996-97 Symantec Corporation
End of the Year Report
Month Sales
1 1692
2 2504
3 2469
4 1826
5 2369
6 3699
7 2383
8 2697
9 2569
10 1986
11 2692
12 2536
Total sales: 29422
Average sales: 2451
Best month was 6 with revenue 3699
F:\JavaCode\LewisCode\chap06\applications>
Soda_Survey.java
F:\JavaCode\LewisCode\chap06\applications>java Soda_Survey
Symantec Java! JustInTime Compiler Version 210.053 for JDK 1.1.2
Copyright (C) 1996-97 Symantec Corporation
Soda 1 is worthy.
Soda 2 is not worthy.
Soda 3 is worthy.
Soda 4 is not worthy.
F:\JavaCode\LewisCode\chap06\applications>
URL_Tokens.java
F:\JavaCode\LewisCode\chap06\applications>java URL_Tokens
Symantec Java! JustInTime Compiler Version 210.053 for JDK 1.1.2
Copyright (C) 1996-97 Symantec Corporation
Protocol: http
Address :
Resource: /vision.html
F:\JavaCode\LewisCode\chap06\applications>
Voltaire.java
F:\JavaCode\LewisCode\chap06\applications>java Voltaire
Symantec Java! JustInTime Compiler Version 210.053 for JDK 1.1.2
Copyright (C) 1996-97 Symantec Corporation
Characters: 69
Tokens: 12
Use,
do
not
abuse;
neither
abstinence
nor
excess
renders
a
man
happy.
F:\JavaCode\LewisCode\chap06\applications>
ZZ_Top.java
F:\JavaCode\LewisCode\chap06\applications>java ZZ_Top
Symantec Java! JustInTime Compiler Version 210.053 for JDK 1.1.2
Copyright (C) 1996-97 Symantec Corporation
[ZZ Top's Greatest Hits, 6, Cheap Sunglasses, [Gibbons, Hill], 15.95]
[ZZ Top's Greatest Hits, 6, Cheap Sunglasses, [Gibbons, Hill, George], 15.95]
song size: 5
authors size: 3
song begins: ZZ Top's Greatest Hits
authors begins: Gibbons
song ends: 15.95
authors ends: George
[ZZ Top's Greatest Hits, 6, Cheap Sunglasses, [Gibbons, Hill, Frank], 15.95]
[]
F:\JavaCode\LewisCode\chap06\applications>