Question: I need help with writing this code, please. Write a C++ program that that does the following. 1. It uses a global named constant GOLDEN_RATIO
I need help with writing this code, please.
Write a C++ program that that does the following. 1. It uses a global named constant GOLDEN_RATIO to store the value of the golden ratio. It uses the named constant in your calculations. It should calculate this constant only once. 2. It prompts the user for the index of a term of the Fibonacci sequence and it computes and displays the term as shown in the sample run. 3. Further, your program prompts the user for the index of the last term of the Fibonacci series, F0 +F1 + +Fk and it computes and displays the value of the summatory function. Include relevant preprocessor directives. You may assume that the user's inputs are non-negative; your program need not check to determine whether the user inputs a negative number.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
