Question
There is the following arrays containing the details of 5 students ID's, names and marks they have obtained in a test. String [] studentIDs =
There is the following arrays containing the details of 5 students ID's, names and marks they have obtained in a test.
String [] studentIDs = {"s3123456", "s3654321","s3234567","s3234556","s3874567"}; String [] studentNames= {"Clara", "Ben", "Oliver", "Merlin", "Hunter"}; int [] studentMarks= {62, 54, 84,76,79};
copy the above lines of code into the main() method of your editors/IDE's
What it needs i. Print all the student's ID's, names and marks using a loop. ii. Print the average mark of the class (Note: irrespective of what marks are in the studentMarks[] array, the average should be calculated and printed)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started