Qbasicnews.com

Full Version: write a programm to calculate mean and standarc deviation
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Quote:write a programm to calculate mean and standarc deviation

Looks like an assignment problem Wink.
Code:
OPEN "Textbook.txt" FOR CompSci AS #1 LEN=LEN(APageInTheChaptersCoveringThisHomeworkAssignment$)
OPEN "Brain.duh" FOR OUTPUT AS #2
DO
     Page% = Page% + 1
     GET #1, Page%, RelevantMaterial$
     'repetition is the key!
     PRINT #2, RelevantMaterial$
     PRINT #2, RelevantMaterial$
     PRINT #2, RelevantMaterial$
     PRINT #2, RelevantMaterial$
LOOP UNTIL EOF(1)
CLOSE #2
CLOSE #1
rotflmao :rotfl:
Code:
REM Assignment Problem
a$ = "Do your homework yourself, we can help but not do it for you"
print a$