Juliet C. answered 03/19/23
Multiple semesters of teaching C++ intro to programming courses
As a partial answer addressing what might be the harder part of the question, you can call the method good() on the cin object after attempting to read in a double, which returns true if reading the double was successful and false if it was not successful, e.g.
For the calculation part of the answer, you can use the fact that the input is the area of the square and the formula for area of a square is side * side or side2. Look at the math library for the square root function.