Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
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 F:\JavaCode\LewisCode\chap06\applications> 120 130 140 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 Sum Sum Sum of of of of column column column column 0: 1: 2: 3: 243 210 169 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 Johnny Storm Sue Richards Reed Richards Ben Grimm Id # 70469 69048 26911 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 1 2 3 4 5 6 7 8 9 10 11 12 Sales 1692 2504 2469 1826 2369 3699 2383 2697 2569 1986 2692 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 Soda 1 is Soda 2 is Soda 3 is Soda 4 is (C) 1996-97 Symantec Corporation worthy. not worthy. worthy. 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 Protocol: Address : Resource: (C) 1996-97 Symantec Corporation http www.wpllabs.com /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>