PRG/211 PRG211 PRG 211 WEEK 4 DISCUSSION 4

PRG 211 WEEK 4 DISCUSSION 4

Supporting Activity: Visual Logic Exercise - Arrays

Supporting Activity: Visual Logic Exercise - Arrays

Exercise 5-2 on page 92 of the Guide to Visual Logic book:

5-2. Above Average. 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.             

(See the screen shot within the exercise on page 92)

Note: Assume that the numbers entered are valid numbers.  In other words - there's no need to validate them for this exercise.

 

Answer Detail

Get This Answer

Invite Tutor