Professional Documents
Culture Documents
Week 13 Sorting
Week 13 Sorting
Week 13
Subject name: programing fundamentals
Topic: sorting
Tool: Dev c++, online compiler and mobile
dev c++ application
Duration: 3hours
Lab objective: to enable students to use sorting
technique in c++ programming
Code/ program
Output
Sorting is any process of arranging items systematically, and has two common, yet distinct
meanings: ordering: arranging items in a sequence ordered by some criterion; categorizing:
grouping items with similar properties.
Sorting is the process of putting data in order; either numerically or alphabetically. It is often
necessary to arrange the elements in an array in numerical order from highest to lowest values
(descending order, z to a and 10 to 1) or vice versa (ascending order, a to z,
1 to 10).
Array =[12,85,36,44,11,2,5,9,6,3,]
Sorted array=[2,3,5,6,9,11,12,36,44,85,]
Array =[“dd” “ff” “gg” “aa” ]
Sorted array=[“aa” “dd” “ff” “gg”]
Link
https://www.tutorialspoint.com/cplusplus
-program-to-implement-sorted-array
https://www.softwaretestinghelp.com/sor
ting-techniques-in-cpp/