Write a menu-driven C++ program that uses user-defined functionsarrays, and a random number generator.
Upon program execution, the screen will be cleared and the menushown below will appear at the top of the screen and centered. Themenu items are explained below.
Help Smallest Quit
H or h ( for Help ) option will invoke a function named help()which will display a help screen. The help screen(s) should guidethe user how to interact with the program, type of data to be used,and what results would the program produce. Each help screen shouldremain on the monitor until the user strikes any key. Once the usercompletes
OR
OR