Write a complete Java program that do the following: 1. Get student information (first name and last name) from the user

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Write a complete Java program that do the following: 1. Get student information (first name and last name) from the user

Post by answerhappygod »

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- studentID.
Typical runs of the program:
Note: Your answer should have the code as text as well as the screenshot of the program output (using your own student’s name and ID as part of your answer). Otherwise, zero marks will be awarded.
Write A Complete Java Program That Do The Following 1 Get Student Information First Name And Last Name From The User 1
Write A Complete Java Program That Do The Following 1 Get Student Information First Name And Last Name From The User 1 (44.34 KiB) Viewed 34 times
Question One (2 2 Marks) 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-studentID. Typical runs of the program: enter your first and last name? Ahmad Alhambi your name is Ahmad Alharbi enter your student's ID NO 0 Your student's NO is 234567890 The sum of your student's id is 44.0 The average of your student's id is 4.888888888888889 ----GRASP: operation complete. Note: Your answer should have the code as text as well as the screenshot of the program output (using your own student's name and ID as part of your answer). Otherwise, zero marks will be awarded.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply