A program sorts string data using different sorting methods. The text file Data.txt stores string data items. Each data item is on a new line in the text file. The function ReadData (): - has a local array of strings that can store 45 items - reads each line of data and stores it in the array - returns the array. Write program code for the function ReadData (). Save your program as Question1_N24. Copy and paste the program code into part 1(a) in the evidence document.

Computer Science
IGCSE&ALevel
CAIE
Exam No:9618_w24_qp_41 Year:2024 Question No:1(a)

Answer:





Knowledge points:

20.1 Programming Paradigms
20.2 File Processing and Exception Handling

Solution:

Download APP for more features
1. Tons of answers.
2. Smarter Al tools enhance your learning journey.
IOS
Download
Android
Download
Google Play
Download