This is a code for homework that I have and I am having a problems with func3
This is a code for homework that I have and I am having a problems with func3 on my code it say line 50 func3
identifier not found and also on line 50 I have
cout << “The number ” << ranNum << ” is ” << func3 (ranNum) << endl;
The third set of << says no operator “<<” matches these operands. ATTACHMENT PREVIEW Download attachment//**begin #include fles************#include<iostream>// provides access to cin and cout#include<time.h>// provides access to time() For srand()//–end oF #include fles———–//———————————-usingnamespacestd;//———————————-//**begin Function prototypes*******intFunc1(int[]);boolFunc2();//–end oF Function prototypes——//———————————-//**begin global constants**********constintArraySize = 10;//–end oF global constants———//———————————-//**begin main program**************intmain(){// seed random number generatorsrand(time(NULL));// create and initialize variablesstringmyString;intmyInt;boolmyBool;intmyIntArray[ArraySize];// initialize the array with random numbers 1-100For(int&i : myIntArray){i = (rand() % 100) + 1;}// calling the FunctionsFor(inti = 0; i < 4; i++){myInt = Func1(myIntArray);cout<<“Value returned by Func1 was “<<myInt<<endl;}cout<<“±lipping a coin. The result is “<<(Func2() ?”Heads.”:”Tails.”)<<endl;For(inti = 0; i < 4; i++){intranNum = rand() % 3;cout<<“The number “<<ranNum<<” is “<<Func3 (ranNum) << endl;}// Wait For user input to close program when debugging.cin.get();return0;}//–end oF main program————-//———————————-//**begin Function defnitions******intFunc1(int[]){returnrand()% ArraySize;

View the Answer}boolfunc2(){returnrand() % 2 ?true:false;}stringfunc3(intanInt){switch(anInt){case0:return”ZERO.”;break;case1:return”ONE.”;break;case2:return”TWO.”;break;default:break;}return”Not Found.”;}//–end of function de±nitions——
