Write a complete Java program that do the following: 1. Get student information (first name and last name) from the user
Posted: Sun May 15, 2022 8:36 am
Write a complete Java program that do the following: 1. Get student information (first name and last name) from the user and store it in the array named studentName (first name and last name are stored in the first and last index of the studentName array). 2. Print elements of the array studentName using enhanced for statement. 3. Get student's ID from the user, store it in the array named studentID and print it 4. Find and print the sum and average of the array- studentin Typical runs of the program: enter your first and last name? Ahmad Alharb your name is Ahmad Alharbi enter your Student's ID NO 2 Your student's NO is 234567890 The sum of your student's id is 44.0 The average of your student's id in 4.888888888888889 GSP: operation complete