Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 22nd European Conference Adbis 2018 Budapest Hungary September 2 5 2018 Proceedings Lncs 11019

Authors: Andras Benczur ,Bernhard Thalheim ,Tomas Horvath

1st Edition

3319983970, 978-3319983974

More Books

Students also viewed these Databases questions

Question

How to find if any no. is divisble by 4 or not ?

Answered: 1 week ago

Question

Explain the Pascals Law ?

Answered: 1 week ago

Question

What are the objectives of performance appraisal ?

Answered: 1 week ago

Question

Organizing Your Speech Points

Answered: 1 week ago