Question

If StudentData.txt file looks like this: 101,70 132,75 153,80 If a sub called student looks like...

If StudentData.txt file looks like this: 101,70 132,75 153,80 If a sub called student looks like this: Sub Student() Dim StudentID As Integer Dim Score As Integer Dim TotalScore As Integer Dim Counter As Integer FileOpen(1, “StudentData.txt”, OpenMode.Input) Do Until EOF(1) Input(1, StudentID) Input(1, Score) TotalScore = TotalScore + Score Counter = Counter + 1 MsgBox (TotalScore) Loop FileClose(1) End Sub What will be the display if Sub Student executes?

0 0
Add a comment Improve this question Transcribed image text
Answer #1
There will be three messages 
70, 70+75, 70+75+80

So, It displays 70, 145, 225

There will be three messages: 70, 145, 225

Add a comment
Know the answer?
Add Answer to:
If StudentData.txt file looks like this: 101,70 132,75 153,80 If a sub called student looks like...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT