Ask your own question, for FREE!
Computer Science 16 Online
OpenStudy (anonymous):

Write a program that asks the user to enter 13 integers. Each integer must be less than 125. (Ask user again if integer is not less than 125.). Then print the average of these integers, and the largest integer of these integers.

OpenStudy (bibby):

create a place to store the integers. an array or list of some sort. create some kind of loop mechanism that restarts if the integer entered is over 125 print the sum of the list/13

OpenStudy (anonymous):

Can you code the program please.

OpenStudy (anonymous):

@bibby

OpenStudy (bibby):

what language

OpenStudy (anonymous):

Java

OpenStudy (bibby):

you're going to have to help me. ``` package averagerrr; public class avg { public static void main(String[] args) { //add an array to accept 13 members //loop over the 13 members and start accepting input //check the input to make sure it's under 125 } } ```

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!