Write a program for determining the stability of a rectangular block with a given length and height as the width varies. Call for input data for length, height, weight (or specific weight), and fluid specific weight. Vary the width in selected increments from small values to larger values, and compute the range of widths for which the metacentric height is positive, that is, for which the design would be stable. Plot a graph of metacentric height versus width.