The design and implementation of an ada95 package to accept and store 9 integers in a 1-dimensional array, display the unsorted array as a 3x3 matrix in both row-major and column-major orders, and sort the array using the bubble sort algorithm. Students are required to submit a hard copy of their algorithm, the ada95 code listing for the package and test program, and an electronic copy of their code.
Download Ada95 Package and Implementation for Array Operations: Unsorted Display and Bubble Sort and more Exercises Computer Engineering and Programming in PDF only on Docsity!
Problem C14. (Unified Computers and programming)
Design an Ada95 package to: a. Accept 9 integers and store them in a 1-dimensional array b. Display the unsorted array as a 3x3 matrix assuming: i. Data is in row-major order ii. Data is in column-major order c. Sort the array using the bubble sort algorithm.
Turn in a hard copy of your algorithm.
Implement your package in Ada95 and write a test program to demonstrate its functionality. Turn in a hard copy of your code listing (package and test program) and an electronic copy of your code.