Find solutions for your homeworkFind solutions for your homeworkengineeringcomputer sciencecomputer science questions and answerscode needs to be in c++ please you will build a class that is capable of reading in a text file of integers, storing them in a vector, providing various statistical results from these integers. create a class called stats which contains the following: .private: a vector of integers .private: a string for the name of the file .you may have any otherQuestion: Code Needs To Be In C++ Please You Will Build A Class That Is Capable Of Reading In A Text File Of Integers, Storing Them In A Vector, Providing Various Statistical Results From These Integers. Create A Class Called Stats Which Contains The Following: .Private: A Vector Of Integers .Private: A String For The Name Of The File .You May Have Any OtherThis question hasn't been solved yetAsk an expertCode needs to be in C++ PleaseYou will build a class that is capable of reading in a text file of integers, storing them in a vector, providing various statistical results from these integers.Create a class called Stats which contains the following:.private: a vector of integers.private: a string for the name of the file.you may have any other private variables you need.constructor - a null constructor that creates an empty vector with a capacity of 100 and empty filename (an empty string is "").constructor - takes the name of a file located in the current directory which contains integers one per line; load the integers into the vector and store the name of the file.method - capacity - returns capacity of the vector.method - count - returns the count of integers in the vector.method - countEven - returns the count of integers that are even.method - countOdd - returns the count of integers that are odd.method - countFib - returns the count of the integers that are in the Fibonacci Sequence (up to the 50th number of the sequence).method - avgAll - returns the average of all the integers as a floating point value.method - avgEven - returns the average of all the integers that are even as a floating point value.method - avgOdd - returns the average of all the integers that are odd as a floating point value.method - avgFib - returns the average of all the integers that are in the Fibonacci Sequence.note: if there are no numbers for a given average, return the float value of 0.0A main program won't be submitted, just the Stat class files (.cpp and .h)Here is how the tests will correlate to your grade:.Your code passes the compile test which will attempt to create an object of Stat, no file I/O.Your code passes the file I/O test which will attempt to create an object of Stat from a text file.Your count() and capacity methods work as expected.Your avgAll() works as expected.Your avgEven() and avgOdd work as expected.Your avgFib works as expected for up to the 10th Fibonacci number, which is 144.Your avgFib works as expected for up to the 48th Fibonacci number, which is 12586269025Please include a main program for testing purposes along with the .h and .cpp files. Thank you!