Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Applied Regression Analysis And Other Multivariable Methods

Authors: David G. Kleinbaum, Lawrence L. Kupper, Azhar Nizam, Eli S. Rosenberg

5th Edition

1285051084, 978-1285963754, 128596375X, 978-1285051086

More Books

Students also viewed these Programming questions