Create an array that holds 20 elements. User should enter 20 test scores, the program therefore calculates the average of all tests scores. Izf user enters test score less than 0 or above 100 an error message should display. Additionally it must display the entire array with 20 test scores and calculate the sum, average, number of passed and failed

Recommended Answers

All 3 Replies

"Sounds like homework", show us whatcha got. I could do this script for you, but you won't learn anything. And if you know it yourself, you'll be able to solve your question much faster than waiting for someone to answer it for you.

Member Avatar for lithium112

I agree, have you done any work on it yet? If so, we would like to see it so that we can help you with what you've got so far.

String[] testScore = new String[20];

this is the variable declaration of array. I know that you can do the rest.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.