Question: Write a program in COBOL that will use an array with 100 integer (PIC 999) entries. Initialize the array to the values 1,2,3,...,100 In other

Write a program in COBOL that will use an array with 100 integer (PIC 999) entries. Initialize the array to the values 1,2,3,...,100 In other words, the value array(1) will be 1, the value of array(2) will be 2,..., the value of array(100) will be 100 Calculate and display on the screen the sum of all the entries in the array. Calculate and display on the screen the product of the first 10 entries in the array. Calculate and display the first 10 Fibonacci numbers. You can use the array as an auxiliary data structure, if you wish. The first 2 Fibonacci numbers (if one starts at entries 1 and 2) are 1 1. The next entries are defined as the sum of the two previous entries, So the next value is 2, then 3, then 5, then 8 ...

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!