Design a class and member functions to compute n-interval moving average in C++.
Anonymous
Use vectors to store last n elements. Everytime a new element comes in, push_back new elements and remove the first element and compute moving average.
Check out your Company Bowl for anonymous work chats.