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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started