Question 1. Write a function which calculates and returns the n'th Fibonacci number where n is taken as a parameter: int
Posted: Thu Jun 02, 2022 8:25 am
Question 1. Write a function which calculates and returns the n'th Fibonacci number where n is taken as a parameter: int fibonacci(int n) Also, write a main function which reads an integer from the user, then calls this "fibonacci" function and prints the method's return value. NOTE: Fibonacci numbers are defined as Fo=0, F₁=1, F= F-1+Fk-2 (Fibonacci numbers: 0112358...). Input Output Question 2. In this question, the outline of the main method is given. You are supposed to write the functions named "isLower", "isUpper", "isDigit", "toLower", "toUpper", and "print Digit" and call them in main method as seen below: int main() { char ch; std::cin>>ch; while(ch!=''){ if(/*call isLower function"){ std::cout<</*call to Upper function"/; } else if(/*call isUpper function*/){ std::cout<</"call toLower function"/; } else if(/*call isDigit function*/){ /*call printDigit function"/; } else if(ch=''){ std::cout<<""; } std::cin>> ch;