jeudi 12 mars 2015

Asking for input of integers, into a list of int (no arrays allowed)



How would I take a list of integers inputted by the user, in one method, and be able to call on that method and calculate the max and min value, as well as the average, in separate methods?


The problem is to: Asks the user to enter the number of students in a class. Using a loop, write a program that takes the exam grades of all the students entered one by one. Create a menu to display the following options: 1. Minimum grade 2. max grade. 3. average. etc


NO ARRAYS ALLOWED USE SEPARATE METHODS




Aucun commentaire:

Enregistrer un commentaire