Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Help with qbasic homework?

Description:"Design an algorythym that will read a series of integers. The first integer is special, as it indicates how many more integers will follow. Your algorythym is to calculate the sum and average of the integers, excluding the first integer, and display these values to the screen.

CLS

INPUT numberofvalues

count = 0

DO UNTIL numberofvalues = count

count 1 = count

LOOP

How can I make the amount of inputs I have be equal to numberofvalues, and then how do I add them together?

2 Answers

Relevance
  • 1 decade ago
    Favorite Answer

    I'll venture it in pseudo code...

    input "number of intergers"; ttl

    Do while ttl >0

    lc = lc +1

    Input "enter intergers";i(lc)

    sum = sum +i(lc)

    avg = sum / lc

    ttl = ttl -1

    loop

    Print "sum =";sum

    Print "avg = ";avg

    32767 END

    Hope it helps

    Source(s): Basic, Fortran, Cobol, Pascal, VB, 8088 Assembly (Machine language) InstantExe (great program BTW)
  • 1 decade ago

    I see that no one has given you an answer so i will so the best that I can .circut city has the best designed program that I have been able to find .i suggest that you give them a call to see if they have a layaway program or just go ahead andget one because it sounds like you will have problems with this in the future

Still have questions? Get your answers by asking now.