Write, compile, and run a C++ program that accepts a user-entered number and calculates the square root and the reciprocal. Before calculating the square root, validate the following: 
(a) the number isn't negative, 
(b) the number is not a zero. 
If either condition occurs, display a message stating that the operation can't be calculated.