November 24, 2015

Homework Help: programming

Posted by cl on Wednesday, September 2, 2009 at 1:19am.

I am supposed to modify this program so it begins by asking the user for the number of values. The program then uses a loop to read the specified number of values and then display their average. program is below that i worked on in class. I been working on this all day and done tired everything anybody can tell me what im missing or what i left out not sure what to do next?

dim value as integer
dim average as integer
dim total as integer
for x as integer = 1 to 5
console.write("please type a value:")
value = Console.Readline()
total = total + value
console.write("The average is")
average = total / 5

Answer this Question

First Name:
School Subject:

Related Questions

More Related Questions