Help me do the code by follow the descriptions. Import Java Scanner class

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Help me do the code by follow the descriptions. Import Java Scanner class
ageOfThreelntegers X
mpile
Undo
Cut
Сopy
Paste
Find...
Close
//Step 6: Read in an integer and store it in an int variable intNum
// Step : Add the input integer to sum
%3D
// Step 8: Display an input prompt "Enter the second integer:
3
34
// Step 9: Read in an integer and store it in intNum
35
36
// Step 10: Add the input integer to sum
37
38
39
// Step 11: Display an input prompt "Enter the third integer:
40
41
42
// Step 12: Read in an integer and store it in intNum
43
44
AS
// Step 13: Add the input integer to sum
46
47
48
// Step 14: display the integer sum of the three integers
// Sample output assuming the sum is 10
//
49
50
"The sum of the three integers is 10."
51
52
53
// Step 15: Compute and display the double average of the three integers
// Sample output assuming the average is 3.3333333333333335
//
54
55
"The average of the three integers is 3.3333333333333335."
56
57
58
59 }
60
Class compiled - no syntax errors
Bol
00
80
esc
F5
F6
F7
F2
F3
F4
F1
@
#
$
%
&
Transcribed Image Text:ageOfThreelntegers X mpile Undo Cut Сopy Paste Find... Close //Step 6: Read in an integer and store it in an int variable intNum // Step : Add the input integer to sum %3D // Step 8: Display an input prompt "Enter the second integer: 3 34 // Step 9: Read in an integer and store it in intNum 35 36 // Step 10: Add the input integer to sum 37 38 39 // Step 11: Display an input prompt "Enter the third integer: 40 41 42 // Step 12: Read in an integer and store it in intNum 43 44 AS // Step 13: Add the input integer to sum 46 47 48 // Step 14: display the integer sum of the three integers // Sample output assuming the sum is 10 // 49 50 "The sum of the three integers is 10." 51 52 53 // Step 15: Compute and display the double average of the three integers // Sample output assuming the average is 3.3333333333333335 // 54 55 "The average of the three integers is 3.3333333333333335." 56 57 58 59 } 60 Class compiled - no syntax errors Bol 00 80 esc F5 F6 F7 F2 F3 F4 F1 @ # $ % &
AverageOfThreelntegers x
Compile
Undo
Cut
Copy
Paste
Find..
Close
10 public class Average0fThreeIntegers
11 {
public static void main(String[] args)
{
final int COUNT_OF_NUMBERS = 3;
12
13
14
15
// Step 3: Declare an int variable sum with an initial value of zero
16
17
18
// Step 4: Declare a Scanner object to read input from the keyboard
19
20
21
//Step 5: Display an input prompt "Enter the first integer: '
22
23
24
// Step 6: Read in an integer and store it in an int variable intNum
25
26
27
// Step 7: Add the input integer to sum
28
29
30
// Step 8: Display an input prompt "Enter the second integer:
31
32
// Step 9: Read in an integer and store it in intNum
34
35
36
// Step 10: Add the input integer to sum
37
38
39
// Step 11: Display an input prompt "Enter the third integer: "
41
42
// Step 12: Read in an integer and store it in intNum
43
44
45
Class compiled - no syntax errors
MacBook Air
80
DII
esc
F1
F2
F3
F5
F6
F7
Fa
@
#
$
%
&
2
3
4
5
6
7
8
Transcribed Image Text:AverageOfThreelntegers x Compile Undo Cut Copy Paste Find.. Close 10 public class Average0fThreeIntegers 11 { public static void main(String[] args) { final int COUNT_OF_NUMBERS = 3; 12 13 14 15 // Step 3: Declare an int variable sum with an initial value of zero 16 17 18 // Step 4: Declare a Scanner object to read input from the keyboard 19 20 21 //Step 5: Display an input prompt "Enter the first integer: ' 22 23 24 // Step 6: Read in an integer and store it in an int variable intNum 25 26 27 // Step 7: Add the input integer to sum 28 29 30 // Step 8: Display an input prompt "Enter the second integer: 31 32 // Step 9: Read in an integer and store it in intNum 34 35 36 // Step 10: Add the input integer to sum 37 38 39 // Step 11: Display an input prompt "Enter the third integer: " 41 42 // Step 12: Read in an integer and store it in intNum 43 44 45 Class compiled - no syntax errors MacBook Air 80 DII esc F1 F2 F3 F5 F6 F7 Fa @ # $ % & 2 3 4 5 6 7 8
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Files and Directory
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education