The update program is an illustration of the file manipulation processes, where files are read and updated
The program written in QBASIC, where comments are used to explain each line is as follows:
REM This opens a new file for output
OPEN "NEW.DAT" FOR OUTPUT AS #2
REM This is repeated until the end of the file
WHILE NOT EOF(1)
REM This inputs the item details
INPUT #1, N$, R, Q
REM This updates the rate by 10%
NEWRATE = R + 10 / 100 * R
REM This writes the inputs to the file
WRITE #2, N$, NEWRATE, Q
WEND
REM This closes the files
CLOSE #1, #2
REM This deletes the Data.dat file
KILL "DATA.DAT"
REM This renames the NEW.DAT to the Data.dat file
NAME "TEMP.DAT" AS "DATA.DAT"
REM The program ends here
END
Read more about file manipulation at:
https://brainly.com/question/25324400