Docsity

Ada95 Package and Implementation for Array Operations: Unsorted Display and Bubble Sort, Exercises of Computer Engineering and Programming

Toggle sidebar
bg1
Problem C14. (Unified Computers and programming)
1. 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.
2. 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.
docsity.com

Partial preview of the text

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)

  1. 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.

  1. 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.

docsity.com