course – Computer Programming -Java
Write a java program that do the following: A. declare an array of integers and initialize it with your own Student ID digits (each element of the array should have one digit). B. Using an enhanced for loop, print the array elements. C. Ask the user to input an integer number and store it in a suitable variable. D. using a traditional for loop, count how many elements in your array matches the user input. E. Print the result of the count. F. show a screenshot of the output Note: Write your code in here as a text, a screenshot of the code will not be accepted. Typical run 1 Typical run 2 Probleme de Decin Conic Progress leer . App a m 10.0.2 My ID is: 103199188 Please input one integer digit: Problems – lavadoc Dederation Consoles Progress cominated Main Class Application Program – 10:02 My ID is: 103199188 Please input one integer digit: There are 2 matche/s There are 3 matche/s Typical run 3 til de Console terminated Mainless love Application Program Files Java re-1002 My ID is: 103199188 Please input one integer digit: There are o matche/s Show transcribed image text Write a java program that do the following: A. declare an array of integers and initialize it with your own Student ID digits (each element of the array should have one digit). B. Using an enhanced for loop, print the array elements. C. Ask the user to input an integer number and store it in a suitable variable. D. using a traditional for loop, count how many elements in your array matches the user input. E. Print the result of the count. F. show a screenshot of the output Note: Write your code in here as a text, a screenshot of the code will not be accepted.
Typical run 1 Typical run 2 Probleme de Decin Conic Progress leer . App a m 10.0.2 My ID is: 103199188 Please input one integer digit: Problems – lavadoc Dederation Consoles Progress cominated Main Class Application Program – 10:02 My ID is: 103199188 Please input one integer digit: There are 2 matche/s There are 3 matche/s Typical run 3 til de Console terminated Mainless love Application Program Files Java re-1002 My ID is: 103199188 Please input one integer digit: There are o matche/s
Expert Answer
Answer to Write a java program that do the following: A. declare an array of integers and initialize it with your own Student ID d…