A program sorts string data using different sorting methods. The function Bubble () takes an array of strings as a parameter and sorts the data into ascending alphabetical order, using a bubble sort. The bubble sort uses CompareStrings () to compare each string. The function returns the sorted list. (i) Write program code for Bubble (). Save your program. Copy and paste the program code into part 1(d)(i) in the evidence document. (ii) Write program code to amend the main program to: - call Bubble () with the unsorted array as a parameter - call FormatArray () with the sorted array and output the returned string. Save your program. Copy and paste the program code into part 1(d)(ii) in the evidence document. (iii) Test your program. Take a screenshot of the output. Save your program. Copy and paste the screenshot into part 1(d)(iii) in the evidence document.

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

Answer:







Knowledge points:

19.1 Algorithms
20.1 Programming Paradigms

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