Design a program that displays the sum of the integer numeric values stored in two arrays, in a tabular format. The design defines two arrays of the same size (each array has 10 elements). One array stores odd integer numeric values (the first element of the array (at index 0) stores the value 1, … etc). Another array stores even integer numeric values (the first element of the array (at index 0) stores the value 2, …, etc). Program Requirements: • The program displays a title (appropriate for the case being solved). • The program displays on a single line three headings (i.e., labels) – to identify the corresponding odd, even, and sum values. • The program displays the triplets (i.e., the three numeric values – odd, even, and sum), one triplet per line of output, for a total of 10 output lines. • The indices of the arrays are zero-based. • The arrays are dimensioned to contain 10 elements (not 11 eleven elements – NOTE: In Visual Logic if the size of the array is set to 10, the array will have a capacity to store 11 elements). • The program uses modules.

Title: Program Design for Displaying the Sum of Integer Numeric Values in Two Arrays

Introduction:
The purpose of this program design is to create a program that displays the sum of the integer numeric values stored in two arrays. The program will present the values in a tabular format, providing details of odd, even, and sum values.

Program Requirements:
1. Title Display: The program will begin by displaying a title that accurately reflects the purpose or case being addressed.
2. Heading Labels: On a single line, the program will display three headings or labels to identify the corresponding odd, even, and sum values.
3. Triplet Display: The program will display the triplets (odd, even, and sum values) with each triplet on a separate line. There will be a total of 10 output lines.
4. Zero-based Indices: The indices of both arrays will be zero-based, meaning the first element will be stored at index 0.
5. Array Size: The arrays will be dimensioned to contain 10 elements each, and not 11 elements. Note that in Visual Logic, if the size of the array is set to 10, the array will have a capacity to store 11 elements.
6. Module Usage: The program will utilize modules to enhance code modularity and reusability.

Program Design:
1. Initialize the arrays:
– Declare two arrays of size 10 each to store the odd and even integer values.
– Initialize the odd array with odd values starting from 1, as the first element will have the value 1, followed by 3, 5, and so on.
– Initialize the even array with even values starting from 2, as the first element will have the value 2, followed by 4, 6, and so on.

2. Display the title:
– Print the title that accurately reflects the purpose of the program.

3. Display the heading labels:
– Print the labels for odd, even, and sum values on a single line.

4. Calculate and display the triplets:
– For each index from 0 to 9, do the following:
a. Retrieve the odd value from the odd array at the current index.
b. Retrieve the even value from the even array at the current index.
c. Calculate the sum of the odd and even values.
d. Display the odd, even, and sum values in a tabular format on separate lines.

5. End of program.

Conclusion:
This program design provides a step-by-step outline for creating a program that displays the sum of integer numeric values stored in two arrays. By following this design, the program will meet the specified requirements and deliver the expected output in a tabular format. By utilizing modules, the program will also benefit from improved code modularity and reusability.

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Click Here to Make an Order Click Here to Hire a Writer