Friday
May 24, 2013

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
next
console.write("The average is")
average = total / 5
console.write(average)

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

Programming in c++ - Write a program in c++ that inputs a number [1-12] from the...
Programming - Write a pseudocode program that asks the user for an integer ...
programming logic - The program will accept user input to store the student'...
computer science - in one the chapter 3 programming challenges you were asked to...
programming logic and design - The Daily Gazette accepts classified ads in ...
devry - A small startup software developer company needs to create a program ...
computer programming - : Create a program like KBC game show where program ask ...
C Programming - Write a program that prompts the user to enter a temperature, ...
Program Logic Design - create a flowchart that shows the logic for a program ...
computer science /use java language - write the program that inputs a string ...

For Further Reading

Search
Members
Community