Back to Browse

CSE 130 LAB 08 : SORT PROGRAM

3 views
Jun 15, 2024
1:06

This program will read a list of names from a file and sort them. The first part of the program will be to read the contents of a file into a list. This data will be in JSON. For example, the contents of the file languages.json might be the following: { "array": [ "Python", "C++", "Java", "C#", "Swift", "JavaScript", "PHP", "C", "Perl", "VB", "Kotlin" ] } Next the program will reorder the list so the resulting list is sorted. This must follow the algorithm discussed last week. When finished, the program will display the sorted list. Asserts Identify several places in the program which could be the source of an error or which could indicate a potential bug. Place asserts in these locations. Example The following example is a run-through of the program. In the first one, we will open the above languages.json. Record a short video demonstrating the execution of your program. The video must be no longer than two minute. Your demonstration video must cover the following test cases: Empty list: Lab08.empty.json List with one element: Lab08.trivial.json Small list: Lab08.languages.json Medium list: Lab08.states.json Large list: Lab08.cities.json As the video is recorded, mention the test case you are covering. BYU-Idaho

Download

0 formats

No download links available.

CSE 130 LAB 08 : SORT PROGRAM | NatokHD