Here is another INPUT information output program. The first 3 select cases work correctly. I attempted the 4th and 7th select cases but they are not working correctly, i would appreciate any feedback i get, even if it's "I don't have a freaking clue." Could you guys help a girl out?

Thanks,

Ananda

Here is the code so far: (The NCAAdata.txt file and a more thurogh description of the program and it's perametors are attached)

'Ananda Bennett
'11/29/06
'NCAA


OPEN "c:\ncaadata.txt" FOR INPUT AS #1

'VARIABLE DESCRIPTIONS:
'Year           Columns 1-4
'Winning School Columns 6-24
'Winning Score  Columns 25-27
'Losing School  Columns 29-47
'Losing Score   Columns 48-50

'Numeric Variables:  Year, Winning Score, Losing Score
'String Variables:  Winning School, Losing School

'SPECIAL NOTES:
'The last game listed for each year is the championship game.
LET lowscore = 1000
PRINT"**********************************************************************************************************************************************************************************************"
PRINT"***** 1 - Total number of games where losing team scored more than 100 pts                                                                                                               *****"
PRINT"***** 2 - Total number of games where a team scored more than 100 pts     ***** *****"
PRINT"***** 3 - Total number of games won and lost by Kentucky (games won - games lost)*****"
PRINT"***** 4 - Lowest total points scored by both teams in a single NCAA Tournament game*****" '(include game information)
PRINT"***** 5 - Highest number of points scored by a single team in a game*****" '(include game information).
PRINT"***** 6 - Largest margin of victory*****" '(include game information)
PRINT"***** 7 - Average score of winning team and average score of losing team*****" '(avg winner - avg loser)
PRINT"***** 8 - Average points scored per game from 1975-85 versus 1985-95*****"
PRINT"***** 10 - What decade had the most total NCAA Tournament games*****" '(give all decades and the number of games played in each)
PRINT"***** 11 - List these teams: UCLA, North Carolina, Kentucky, and Kansas - With each team give the total number of appearances in NCAA Tournaments (wins and losses) and championships won*****"
PRINT"***************************************************************************"
INPUT "What information would you like search for? "; schoice

DO WHILE EOF(#1) <> -1
INPUT #1, year, winningschool$, winningscore, loosingschool$, loosingscore

SELECT CASE schoice
    CASE 1
        IF loosingscore > 100 THEN
        LET count = count + 1
        END IF

    CASE 2
        IF loosingscore > 100 THEN
        LET count = count + 2
        END IF

        'IF winningscore > 100 THEN
        'LET count = count + 1
        'END IF

    CASE 3
        IF winningschool$ = "KENTUCKY" THEN
        LET kwincount = kwincount + 1
        END IF

        IF loosingschool$ = "KENTUCKY" THEN
        LET kloosecount = kloosecount + 1
        END IF

        IF EOF(#1) = -1 THEN
        PRINT kwincount; " - " ;kloosecount

        ELSE
        END IF

    CASE 4
        LET totalscore = loosingscore + winningscore
        IF totalscore < lowscore THEN
        LET winner$ = winningschool$
        LET looser$ = loosingschool$
        LET lowestscore = lowscore
        LET lowscore = lowestscore
        PRINT "Winning school: " ;winningschool$; " Loosing school: " ;loosingschool$

        ELSE
        END IF

    CASE 7
        LET count = count + 1
        LET wscoreaverage = (winningscore + winningscore)/ count
         wscoreaverage
    PRINT wscoreaverage; " " ;winningscore; " + " ;winningscore; "/ " ;count


END SELECT
LOOP
CLOSE #1
Attachments
1939,OREGON,56,TEXAS,41
1939,OKLAHOMA,50,UTAH STATE,39
1939,VILLANOVA,42,BROWN,30
1939,OHIO STATE,64,WAKE FOREST,52
1939,OREGON,55,OKLAHOMA,37
1939,OHIO STATE,53,VILLANOVA,36
1939,OREGON,46,OHIO STATE,33
1940,INDIANA,48,SPRINGFIELD,24
1940,DUQUESNE,30,WESTERN KENTUCKY,29
1940,SOUTHERN CALIFORNIA,38,COLORADO,32
1940,KANSAS,50,RICE,44
1940,INDIANA,39,DUQUESNE,30
1940,KANSAS,43,SOUTHERN CALIFORNIA,42
1940,INDIANA,60,KANSAS,42
1941,WISCONSIN,51,DARTMOUTH,50
1941,PITTSBURGH,26,NORTH CAROLINA,20
1941,ARKANSAS,52,WYOMING,40
1941,WASHINGTON STATE,48,CREIGHTON,39
1941,WISCONSIN,36,PITTSBURGH,30
1941,WASHINGTON STATE,64,ARKANSAS,53
1941,WISCONSIN,39,WASHINGTON STATE,34
1942,DARTMOUTH,44,PENN STATE,39
1942,KENTUCKY,46,ILLINOIS,44
1942,STANFORD,53,RICE,47
1942,COLORADO,46,KANSAS,44
1942,DARTMOUTH,48,KENTUCKY,28
1942,STANFORD,46,COLORADO,35
1942,STANFORD,53,DARTMOUTH,38
1943,GEORGETOWN,55,NYU,36
1943,DEPAUL,46,DARTMOUTH,35
1943,TEXAS,59,WASHINGTON,55
1943,WYOMING,53,OKLAHOMA,50
1943,GEORGETOWN,53,DEPAUL,49
1943,WYOMING,58,TEXAS,54
1943,WYOMING,46,GEORGETOWN,34
1944,DARTMOUTH,63,CATHOLIC,38
1944,OHIO STATE,57,TEMPLE,47
1944,IOWA STATE,44,PEPPERDINE,39
1944,UTAH,45,MISSOURI,35
1944,DARTMOUTH,60,OHIO STATE,53
1944,UTAH,40,IOWA STATE,31
1944,UTAH,42,DARTMOUTH,40
1945,NYU,59,TUFTS,44
1945,OHIO STATE,45,KENTUCKY,37
1945,ARKANSAS,79,OREGON,76
1945,OKLAHOMA STATE,62,UTAH,37
1945,NYU,70,OHIO STATE,65
1945,OKLAHOMA STATE,68,ARKANSAS,41
1945,OKLAHOMA STATE,49,NYU,45
1946,OHIO STATE,46,HARVARD,38
1946,NORTH CAROLINA,57,NYU,49
1946,OKLAHOMA STATE,44,BAYLOR,29
1946,CALIFORNIA,50,COLORADO,44
1946,NORTH CAROLINA,60,OHIO STATE,57
1946,OKLAHOMA STATE,52,CALIFORNIA,35
1946,OKLAHOMA STATE,43,NORTH CAROLINA,40
1947,HOLY CROSS,55,NAVY,47
1947,CCNY,70,WISCONSIN,56
1947,TEXAS,42,WYOMING,40
1947,OKLAHOMA,56,OREGON STATE,54
1947,HOLY CROSS,60,CCNY,45
1947,OKLAHOMA,55,TEXAS,54
1947,HOLY CROSS,58,OKLAHOMA,47
1948,KENTUCKY,76,COLUMBIA,53
1948,HOLY CROSS,63,MICHIGAN,45
1948,KANSAS STATE,58,WYOMING,48
1948,BAYLOR,64,WASHINGTON,62
1948,KENTUCKY,60,HOLY CROSS,52
1948,BAYLOR,60,KANSAS STATE,52
1948,KENTUCKY,58,BAYLOR,42
1949,ILLINOIS,71,YALE,67
1949,KENTUCKY,85,VILLANOVA,72
1949,OKLAHOMA STATE,40,WYOMING,39
1949,OREGON STATE,56,ARKANSAS,38
1949,KENTUCKY,76,ILLINOIS,47
1949,OKLAHOMA STATE,55,OREGON STATE,30
1949,KENTUCKY,46,OKLAHOMA STATE,36
1950,CCNY,56,OHIO STATE,55
1950,N. CAROLINA STATE,87,HOLY CROSS,74
1950,BAYLOR,56,BRIGHAM YOUNG,55
1950,BRADLEY,73,UCLA,59
1950,CCNY,78,N. CAROLINA STATE,73
1950,BRADLEY,68,BAYLOR,66
1950,CCNY,71,BRADLEY,68
1951,KANSAS STATE,61,ARIZONA,59
1951,BRIGHAM YOUNG,68,SAN JOSE STATE,61
1951,OKLAHOMA STATE,50,MONTANA STATE,46
1951,WASHINGTON,62,TEXAS A&M,40
1951,ILLINOIS,79,COLUMBIA,71
1951,N. CAROLINA STATE,67,VILLANOVA,62
1951,KENTUCKY,79,LOUISVILLE,68
1951,ST. JOHN'S,63,CONNECTICUT,52
1951,KANSAS STATE,64,BRIGHAM YOUNG,54
1951,OKLAHOMA STATE,61,WASHINGTON,57
1951,ILLINOIS,84,N. CAROLINA STATE,70
1951,KENTUCKY,59,ST. JOHN'S,43
1951,KANSAS STATE,68,OKLAHOMA STATE,44
1951,KENTUCKY,76,ILLINOIS,74
1951,KENTUCKY,68,KANSAS STATE,58
1952,KENTUCKY,82,PENN STATE,54
1952,ST. JOHN'S,60,N. CAROLINA STATE,49
1952,ILLINOIS,80,DAYTON,61
1952,DUQUESNE,60,PRINCETON,49
1952,KANSAS,68,TCU,64
1952,ST. LOUIS,62,NEW MEXICO STATE,53
1952,SANTA CLARA,68,UCLA,59
1952,WYOMING,54,OKLAHOMA CITY,48
1952,ST. JOHN'S,64,KENTUCKY,57
1952,ILLINOIS,74,DUQUESNE,68
1952,KANSAS,74,ST. LOUIS,55
1952,SANTA CLARA,56,WYOMING,53
1952,ST. JOHN'S,61,ILLINOIS,59
1952,KANSAS,74,SANTA CLARA,55
1952,KANSAS,80,ST. JOHN'S,63
1953,LEBANON VALLEY,80,FORDHAM,67
1953,HOLY CROSS,87,NAVY,74
1953,NOTRE DAME,72,EASTERN KENTUCKY,57
1953,DEPAUL,74,MIAMI(OHIO),72
1953,SEATTLE,88,IDAHO STATE,77
1953,SANTA CLARA,81,HARDIN-SIMMONS,56
1953,LSU,89,LEBANON VALLEY,76
1953,HOLY CROSS,79,WAKE FOREST,71
1953,NOTRE DAME,69,PENNSYLVANIA,57
1953,INDIANA,82,DEPAUL,80
1953,WASHINGTON,92,SEATTLE,70
1953,SANTA CLARA,67,WYOMING,52
1953,OKLAHOMA STATE,71,TCU,54
1953,KANSAS,73,OKLAHOMA CITY,65
1953,LSU,81,HOLY CROSS,73
1953,INDIANA,79,NOTRE DAME,66
1953,WASHINGTON,74,SANTA CLARA,62
1953,KANSAS,61,OKLAHOMA STATE,55
1953,INDIANA,80,LSU,67
1953,KANSAS,79,WASHINGTON,53
1953,INDIANA,69,KANSAS,68
1954,PENN STATE,62,TOLEDO,50
1954,NOTRE DAME,80,LOYOLA(N.O.),70
1954,NAVY,85,CONNECTICUT,80
1954,N. CAROLINA STATE,75,GEORGE WASHINGTON,73
1954,LASALLE,76,FORDHAM,74
1954,BRADLEY,61,OKLAHOMA CITY,55
1954,IDAHO STATE,77,SEATTLE,75
1954,SANTA CLARA,73,TEXAS TECH,64
1954,PENN STATE,78,LSU,70
1954,NOTRE DAME,65,INDIANA,64
1954,NAVY,69,CORNELL,67
1954,LASALLE,88,N. CAROLINA STATE,81
1954,BRADLEY,76,COLORADO,64
1954,OKLAHOMA STATE,51,RICE,45
1954,SOUTHERN CALIFORNIA,73,IDAHO STATE,59
1954,SANTA CLARA,73,COLORADO STATE,50
1954,PENN STATE,71,NOTRE DAME,63
1954,LASALLE,64,NAVY,48
1954,BRADLEY,71,OKLAHOMA STATE,57
1954,SOUTHERN CALIFORNIA,66,SANTA CLARA,65
1954,LASALLE,69,PENN STATE,54
1954,BRADLEY,74,SOUTHERN CALIFORNIA,72
1954,LASALLE,92,BRADLEY,76
1955,MARQUETTE,90,MIAMI(OHIO),79
1955,PENN STATE,59,MEMPHIS STATE,55
1955,LASALLE,95,WEST VIRGINIA,61
1955,CANISIUS,73,WILLIAMS,60
1955,VILLANOVA,74,DUKE,73
1955,BRADLEY,69,OKLAHOMA CITY,65
1955,SEATTLE,80,IDAHO STATE,63
1955,SAN FRANCISCO,89,WEST TEXAS STATE,66
1955,MARQUETTE,79,KENTUCKY,71
1955,IOWA,82,PENN STATE,53
1955,LASALLE,73,PRINCETON,46
1955,CANISIUS,73,VILLANOVA,71
1955,BRADLEY,81,SMU,79
1955,COLORADO,69,TULSA,59
1955,OREGON STATE,83,SEATTLE,71
1955,SAN FRANCISCO,78,UTAH,59
1955,IOWA,86,MARQUETTE,81
1955,LASALLE,99,CANISIUS,64
1955,COLORADO,93,BRADLEY,81
1955,SAN FRANCISCO,57,OREGON STATE,56
1955,LASALLE,76,IOWA,73
1955,SAN FRANCISCO,62,COLORADO,50
1955,SAN FRANCISCO,77,LASALLE,63
1956,CONNECTICUT,84,MANHATTAN,75
1956,TEMPLE,74,HOLY CROSS,72
1956,DARTMOUTH,61,WEST VIRGINIA,59
1956,CANISIUS,79,N. CAROLINA STATE,78
1956,MOREHEAD STATE,107,MARSHALL,92
1956,WAYNE STATE,72,DEPAUL,63
1956,SMU,68,TEXAS TECH,67
1956,OKLAHOMA CITY,97,MEMPHIS STATE,81
1956,SEATTLE,68,IDAHO STATE,66
1956,TEMPLE,65,CONNECTICUT,59
1956,CANISIUS,66,DARTMOUTH,58
1956,IOWA,97,MOREHEAD STATE,83
1956,KENTUCKY,84,WAYNE STATE,64
1956,SMU,89,HOUSTON,74
1956,OKLAHOMA CITY,97,KANSAS STATE,93
1956,UTAH,81,SEATTLE,72
1956,SAN FRANCISCO,72,UCLA,61
1956,TEMPLE,60,CANISIUS,58
1956,IOWA,89,KENTUCKY,77
1956,SMU,84,OKLAHOMA CITY,63
1956,SAN FRANCISCO,92,UTAH,77
1956,IOWA,83,TEMPLE,76
1956,SAN FRANCISCO,86,SMU,68
1956,SAN FRANCISCO,83,IOWA,71
1957,SYRACUSE,82,CONNECTICUT,76
1957,CANISIUS,64,WEST VIRGINIA,56
1957,NORTH CAROLINA,90,YALE,74
1957,PITTSBURGH,86,MOREHEAD STATE,85
1957,NOTRE DAME,89,MIAMI(OHIO),77
1957,OKLAHOMA CITY,76,LOYOLA(N.O.),55
1957,IDAHO STATE,68,HARDIN-SIMMONS,57
1957,SYRACUSE,75,LAFAYETTE,71
1957,NORTH CAROLINA,87,CANISIUS,75
1957,KENTUCKY,98,PITTSBURGH,92
1957,MICHIGAN STATE,85,NOTRE DAME,83
1957,OKLAHOMA CITY,75,ST. LOUIS,66
1957,KANSAS,73,SMU,65
1957,CALIFORNIA,86,BRIGHAM YOUNG,59
1957,SAN FRANCISCO,66,IDAHO STATE,51
1957,NORTH CAROLINA,67,SYRACUSE,58
1957,MICHIGAN STATE,80,KENTUCKY,68
1957,KANSAS,81,OKLAHOMA CITY,61
1957,SAN FRANCISCO,50,CALIFORNIA,46
1957,NORTH CAROLINA,74,MICHIGAN STATE,70
1957,KANSAS,80,SAN FRANCISCO,56
1957,MORTH CAROLINA,54,KANSAS,53
1958,MARYLAND,86,BOSTON COLLEGE,63
1958,MANHATTAN,89,WEST VIRGINIA,84
1958,DARTMOUTH,75,CONNECTICUT,64
1958,MIAMI(OHIO),82,PITTSBURGH,77
1958,NOTRE DAME,94,TENNESSEE TECH,61
1958,OKLAHOMA STATE,59,LOYOLA(N.O.),42
1958,SEATTLE,88,WYOMING,51
1958,IDAHO STATE,72,ARIZONA STATE,68
1958,TEMPLE,71,MARYLAND,67
1958,DARTMOUTH,79,MANHATTAN,62
1958,KENTUCKY,94,MIAMI(OHIO),70
1958,NOTRE DAME,94,INDIANA,87
1958,OKLAHOMA STATE,65,ARKANSAS,40
1958,KANSAS STATE,83,CINCINNATI,80
1958,SEATTLE,69,SAN FRANCISCO,67
1958,CALIFORNIA,54,IDAHO STATE,43
1958,TEMPLE,69,DARTMOUTH,50
1958,KENTUCKY,89,NOTRE DAME,56
1958,KANSAS STATE,69,OKLAHOMA STATE,57
1958,SEATTLE,66,CALIFORNIA,62
1958,KENTUCKY,61,TEMPLE,60
1958,SEATTLE,73,KANSAS STATE,51
1958,KENTUCKY,84,SEATTLE,72
1959,WEST VIRGINIA,82,DARTMOUTH,68
1959,BOSTON UNIVERSITY,60,CONNECTICUT,58
1959,NAVY,76,NORTH CAROLINA,63
1959,LOUISVILLE,77,EASTERN KENTUCKY,63
1959,MARQUETTE,89,BOWLING GREEN,71
1959,DEPAUL,57,PORTLAND,56
1959,IDAHO STATE,62,NEW MEXICO STATE,61
1959,WEST VIRGINIA,95,ST. JOSEPH'S,92
1959,BOSTON UNIVERSITY,62,NAVY,55
1959,LOUISVILLE,76,KENTUCKY,61
1959,MICHIGAN STATE,74,MARQUETTE,69
1959,KANSAS STATE,102,DEPAUL,70
1959,CINCINNATI,77,TCU,73
1959,ST. MARY'S,80,IDAHO STATE,71
1959,CALIFORNIA,71,UTAH,53
1959,WEST VIRGINIA,86,BOSTON UNIVERSITY,82
1959,LOUISVILLE,88,MICHIGAN STATE,81
1959,CINCINNATI,85,KANSAS STATE,75
1959,CALIFORNIA,66,ST. MARY'S,46
1959,WEST VIRGINIA,94,LOUISVILLE,79
1959,CALIFORNIA,64,CINCINNATI,58
1959,CALIFORNIA,71,WEST VIRGINIA,70
1960,DUKE,84,PRINCETON,60
1960,WEST VIRGINIA,94,NAVY,86
1960,NYU,78,CONNECTICUT,59
1960,OHIO,74,NOTRE DAME,66
1960,WESTERN KENTUCKY,107,MIAMI(FLA),84
1960,DEPAUL,69,AIR FORCE,63
1960,CALIFORNIA,71,IDAHO STATE,44
1960,OREGON,68,NEW MEXICO STATE,60
1960,UTAH,80,SOUTHERN CALIFORNIA,73
1960,DUKE,58,ST. JOSEPH'S,56
1960,NYU,82,WEST VIRGINIA,81
1960,GEORGIA TECH,57,OHIO,54
1960,OHIO STATE,98,WESTERN KENTUCKY,79
1960,CINCINNATI,99,DEPAUL,59
1960,KANSAS,90,TEXAS,81
1960,CALIFORNIA,69,SANTA CLARA,49
1960,OREGON,65,UTAH,54
1960,NYU,74,DUKE,59
1960,OHIO STATE,86,GEORGIA TECH,69
1960,CINCINNATI,82,KANSAS,71
1960,CALIFORNIA,70,OREGON,49
1960,OHIO STATE,76,NYU,54
1960,CALIFORNIA,77,CINCINNATI,69
1960,OHIO STATE,75,CALIFORNIA,55
1961,PRINCETON,84,GEORGE WASHINGTON,67
1961,ST. BONAVENTURE,86,RHODE ISLAND,76
1961,WAKE FOREST,97,ST. JOHN'S,74
1961,LOUISVILLE,76,OHIO,70
1961,MOREHEAD STATE,71,XAVIER(OHIO),66
1961,HOUSTON,77,MARQUETTE,61
1961,ARIZONA STATE,72,SEATTLE,70
1961,SOUTHERN CALIFORNIA,81,OREGON,79
1961,ST. JOSEPH'S,72,PRINCETON,67
1961,WAKE FOREST,78,ST. BONAVENTURE,73
1961,OHIO STATE,56,LOUISVILLE,55
1961,KENTUCKY,71,MOREHEAD STATE,64
1961,KANSAS STATE,75,HOUSTON,64
1961,CINCINNATI,78,TEXAS TECH,55
1961,ARIZONA STATE,86,SOUTHERN CALIFORNIA,71
1961,UTAH,91,LOYOLA-MARYMOUNT,75
1961,ST. JOSEPH'S,96,WAKE FORES

The 4th thru 7th are calculated values from all the scores in the file. You can't print them out in the case statement, instead print them out after all the rows in the file have been read. You will probably have to add another case statement to do that.

For example, #4

Lowest total points scored by both teams in a single NCAA Tournament game (include game information

You need to have a variable that keeps track of the row with the lowest score. Than after all rows have been read, using another case statement print out the required information.

I really hate asking this but could someone do this for me? I absolutely despise programing. I don't want to be a programer! The only reason i'm taking it is because it's required for the Web Technologies degree. I have checked with the other curiculum and I will not have any other programing classes. This is my last program before the final. If I don't get a C or higher i won't pss. I had all intentions of finishing the program myself but mmy dad's PC unexpectedly had to go get repaired this week. I don't have any other PC'S available because all we have are Macs. I can't go to the public library tonight because I don't have someone available to take me. (i'm a quadrapelegic so I can't do anything without some assistance. Please! I'm begging for help! If you help me, after this class is over, i will never post on this part of the forum again.

Thanks,

Ananda

>>I really hate asking this but could someone do this for me? I absolutely despise programing

Nope. If you don't want to do it then drop the class and take something else, such as basket weaving, that you might enjoy better. No point in doing something that you hate.

>>i'm a quadrapelegic

Quadriplegia, also known as tetraplegia, is a symptom in which a human experiences paralysis of all four limbs, although not necessarily total paralysis.

If that is true, how do you do computer programming? If have seen films on TV about quadrapelegic using a computer with something in the mouth to control the keyboard, but it is highly unlikely they can program computers.

but it is highly unlikely they can program computers.

I wouldn't be so sure! There's a device in development that can interface with a human brain (motor control area), and someone whos paralysed (or just interested in the idea) can move a mouse around and select things. With a bit of work on the resolution of the device; i suppose you could map a full keyboard ^_- Just a brain controlled mouse would be convenient.

I wouldn't be so sure! There's a device in development that can interface with a human brain (motor control area), and someone whos paralysed (or just interested in the idea) can move a mouse around and select things. With a bit of work on the resolution of the device; i suppose you could map a full keyboard ^_- Just a brain controlled mouse would be convenient.

I said it is highly unlikely, and you just reinforced my statement. If that device is still under development than it is next to impossible for the general public to have it. But it has great possibilities for those that need it.

>>I really hate asking this but could someone do this for me? I absolutely despise programing

Nope. If you don't want to do it then drop the class and take something else, such as basket weaving, that you might enjoy better. No point in doing something that you hate.

If I don't pass this class I can't get my degree. Trust me, i wouldn't take this class unless it was absolutely necessary.I would love to be basket weaving instead.

>>i'm a quadrapelegic


If that is true, how do you do computer programming? If have seen films on TV about quadrapelegic using a computer with something in the mouth to control the keyboard, but it is highly unlikely they can program computers.

I am a C1/C2 quadrapelegic from a brain stem stroke in the year 2000. My computer interface is a joystick that I push with my chin. It "talks" to the computer via an infrared display module that is attached to my chair. That enables me to move the mouse as effortlessly as you do. As for typing and clicking, Google "Keystrokes". You can see my chin switch in the pictures on my homepage: www.homepage.mac.com/rosiebennett


Ananda :twisted:

This article has been dead for over six months. Start a new discussion instead.