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

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.

Typology: Exercises

2011/2012

Uploaded on 07/20/2012

savitri_85
savitri_85 🇮🇳

4

(5)

70 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

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