Explain the java statements label a, b, c, d below Import java. Util. Scanner. U
ID: 3675774 • Letter: E
Question
Explain the java statements label a, b, c, d below Import java. Util. Scanner. Util { public static void main (Straing[]args) { int x. y. z; a double average; Scanner scan =new Scanner( System in; b System. out. printin("Enter an integer value"); X=scan. nextlnt(); System out. println("Enter another integer value"); y - scan nextlnt (); System. out. Println("Enter a third integer value"); z = scan. Nextlnt(); average - (x + y + z) / 3; c System. out. Println ("The result of my calculation is " + average); d} }Explanation / Answer
a) these are the integer varibles.
b) New Scanner object being created to generate input field at run time.
c) Programe to read next line of the text entered in scanner inpute at run time.
d) It will print the value of "average"
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.