Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

BASIC program

Name: Anonymous 2011-10-02 23:37

Would you guys be able to help me with this for my programming class? Yes it's simple, but I'm just learning BASIC. New programmer.

"Write a program that:

    asks the user how many terms they wish to enter
    asks the user to enter the numbers (store in an array)
    displays the terms in order on a single line
    displays the terms in reverse order on a single line
    tells the user the sum of the numbers
    tells the user the average of the numbers
    (this may be a rounded integer - decimals are optional for this task)
    tells the user the value of the largest number
    tells the user the value of the smallest number

Additional Requirements:

    include an AppTitle (that includes your name)
    good use of clearly written comments
    indent your code (in conditional statements, and for the loop)
    good user interface - the program must clearly communicate to the user what it does and what input is required
    global variables are permitted for this assignment"

Here's what I've got so far:

;Assignment: 3.3
;Name: Connor Morhart
;Date: Oct. 2
;Program Description:
;Set up the graphics window.
Graphics(640,480,0,2)
;Set backbuffer
SetBuffer(BackBuffer())
;Apptitle
AppTitle "Assign. 3.3 - Connor Morhart"

Dim Array1(100)
TermNum = Input("How many do you wish to input?")
For IntNum=1 To TermNum
    Array1(IntNum) = Input("please type integer #" + IntNum + " " )
Next
For IntNum=1 To TermNum
    Write (Array1(IntNum)) + ","
Next
WaitKey()
End

Name: Anonymous 2011-10-02 23:47

[qoute]programming class[/quote]
[quote]BASIC[/quote]

Should quit before it's too late.

Name: Anonymous 2011-10-02 23:55

>>2
I have to take the fucking BASIC class before they let use a bigboy language in class.

Name: Anonymous 2011-10-03 0:05

>>1
BASIC programming is above our pay grade, bro.

Name: Anonymous 2011-10-03 0:17

Is it really that difficult, Connor?

Name: Anonymous 2011-10-03 0:28

>>4
Not mine. I use Lisp.

Name: Connor Morhart 2011-10-03 0:48

>>5
Not really but I don't wanna read through like 5 huge PDF files in order to understand something one of you guys could explain quite thoroughly in like six minutes.

Name: Anonymous 2011-10-03 0:50

If BASIC is so simple, why the hell do you need our help?

Name: Connor Morhart 2011-10-03 1:00

>>8
I'm not saying it's simple for me but for more experienced programmers it is.

Name: Anonymous 2011-10-03 2:25

This is that point in your life where you find out whether or not programming is your thing.  If this assignment is difficult, then programming is not your thing.  If you're just lazy and don't want to do it, then programming probably is your thing.  Either way, nobody else wants to do it for you.

Name: Anonymous 2011-10-03 2:50

If you don't understand this and don't have the will to understand it yourself, then you will fail at programming. Not helping so you fail now rather than continually using /prog/ and the internet to walk you through your education.

Name: Anonymous 2011-10-03 22:27

Visual Basic is for ``faggots''

Don't change these.
Name: Email:
Entire Thread Thread List