Im suppose to write a program that accepts five input values and stores them into an array. The program should then display the average of the five numbers. Finally, the program should display all the numbers in the array that are larger than the average of the five numbers. I understand everything except how to display all the numbers in the array that are larger than the average of the five numbers. I cannot seem to figure this part out. Any help would be thankful.
suzyq888
0
Newbie Poster
Recommended Answers
Jump to PostIn pseudo code, you could create a listbox then do
for each item in the array if item > average then add item to the listbox end if next
Do you know how to use a listbox? If not then you could also use a multiline …
All 4 Replies
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
rishif2
57
Posting Whiz in Training
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
rishif2
57
Posting Whiz in Training
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.