Question: MUST BE DONE IN C NOT C++ a program that takes three command line arguments. The first is an integer. The second is r, i,

MUST BE DONE IN C NOT C++ a program that takes three command line arguments.

The first is an integer. The second is "r", "i", or "c". The third is a file name.

Open the file. It should be a text file with an integer in it. Read the integer. (Error checking of file and params is not necessary) Add the two numbers together into a value N. Compute the Nth fibonacci number using one of the three methods (as specified on the command line):

i - iterative

r - recursive

c - recursive with cache (cache the results, and use those if present rather than recursing)

Output the result.

Execute this several times with the "time" command and upload a spreadsheet of your findings (no explanations needed, just headings and enough to see what you did.)

MUST BE DONE IN C NOT C++

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 Programming Questions!