Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
-1 votes
2 answers
5k views

Using an Array to find Minimum, Maximum, and Average in Java

We are just starting to code in Java in our intro to programming class and I am hung up on where I've gone wrong with this particular assignment. The goal is to create a program that enters 15 test ...
javabeginner's user avatar
1 vote
2 answers
352 views

Statistics of an array

I need a program to evaluate Min, Max, Avg and Geometric avg of any number of integers. This is what I've come up with so far. Min and Max were working just fine until I added the Avg. Now Min and Avg ...
nero's user avatar
  • 33
0 votes
2 answers
107 views

How do I find the highest, lowest and total average of all the students in this Array of students

I was of to a good start but got stuck trying to find the lowest and highest grade of the array.I also have to find the average grade of the whole array. They told this website was the best place to ...
Jason Makrawsky's user avatar
0 votes
3 answers
3k views

Trying to return min, max, and average values of an array

I'm running into difficulty trying to produce the min, max, and average values of an array. I seem to be able to return the min value without any problem, however my attempts to produce the three ...
Jeremy Wilson's user avatar
0 votes
2 answers
384 views

Javascript: Calculating Min/Max/Average

I wrote this code in my html site, in Javascript, but is not working right. Most times it seems to ignore some entries and just randomly selects which is the min/max value. Also, when I tried to ...
SpK's user avatar
  • 33
1 vote
3 answers
355 views

Java arrays code in max and min

My project is about finding the average, minimum and maximum of students' grades and their standing, but it keeps showing me an error on the output. Here are the names and the grades: Students: Alia ...
Grim Grim's user avatar
-1 votes
1 answer
47 views

This function only prints out the last value entered into the array

I need this function to print out the max, min, and average of all of the values entered into the array. I've run into the problem that the program will only print out the last value entered for the ...
Millet123's user avatar
0 votes
2 answers
2k views

How to display a max, min, and average result from an array in c#?

Basically I have to write a program that asks a user to name the amount of players on their football team, list their names and how many goals they have scored. The output should then be "the top ...
user3634115's user avatar
0 votes
2 answers
2k views

Finding the min max and average of an array

I need to find the min, max, and average of the balances. I have done this before using for loops, but never with a while loop. Is there a way to pull the min max and average straight from the array ...
MingZhou's user avatar
0 votes
1 answer
310 views

Calculate max, min, and average for every column in a 2D array

I'm calculating the average,min,max for each column. The 16th column value is coming wrong for max and min. Average is working perfectly fine, but wrong only for the last column with large arrays -- I ...
mark rammmy's user avatar
  • 1,498
-1 votes
2 answers
10k views

How to find Max, Min, and Average of Array java

I"m having trouble with part D-finding the max and min from the average.Need help being able to calculate the min and max after it has been averaged. I need to write a program where I get a sample ...
user3073375's user avatar
0 votes
2 answers
292 views

Finding the max and min values in array of five times

I'm supposed to find the minimum and maximum values in the array, but I can't seem to figure out why the answers aren't correct. For example if I entered "1 2 3 4 5" as my five times, it told me 1 was ...
hello's user avatar
  • 5
1 vote
2 answers
32k views

Pseudocode for min, max and avg temperatures

I'm not a experienced programmer (yet), but I'm applying to a school that has several coding courses. In the entrance examination however, there may be solvable problems that must be written in ...
user1775611's user avatar