Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need help on # 25. Use the directions above the question. Thank you. Sequentia

ID: 3569621 • Letter: I

Question

I need help on # 25. Use the directions above the question. Thank you.

Sequential file with the contents Arthur Michael Sam . 22. Write a program that will display the contents of the sequential file of Exercise 21 on the user?s screen. In Exercise 23 - 27, give the contents of the file named update after each program segment Is executed. Assume that the content of the file named original at the beginning of each program segment is A , 25 C , 20 E , 15 i??t1 that the following statements precede each program segment: Open original For Input As Given File Open update For Output As TempFile 23. Read GivenFile, Item, Number Write TempFile, Item, Number Close GivenFile, TempFile 24. While NOT EOF(GivenFile) Read GivenFile, Item, Number Write TempFile, Item, Number End While Close GivenFile, TempFile 25. While NOT EOF(GivenFile) Read GivenFile, Item, Number If Item != C Then Write TempFile, Item, Number End If End While Close GivenFile, TempFile

Explanation / Answer

In the temp file we get,

TempFile

=======

"A" 25

"E" 15

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote