Thursday
September 18, 2014

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 - Write a pseudocode program that asks the user for an integer ...
computer science - in one the chapter 3 programming challenges you were asked to...
programming - Write a program which allows user to enter 10 student names and ...
programming - Using Raptor, create a condition loop that will ask the user for ...
programming logic and design - The Daily Gazette accepts classified ads in ...
Programming in c++ - Write a program in c++ that inputs a number [1-12] from the...
devry - A small startup software developer company needs to create a program ...
Programming and Design - Draw the hierarchy chart and design the logic for a ...
programming - Create the logic for a program that continuously prompts a user ...
programming pseudocode - Create the logic for a program that continuously ...

Search
Members