in c++<br/>Define a class for rational numbers. A rational number is a"ratio-nal" number, composed of two integers with divisionindicated.<br/>Requirement:- two member variables: (int) numerator and (int)denominator.- two constructors: one that
<p><img alt="12.2 Fill in the missing code. String in- 9tu104u-113n8ut4-u5n; Scanner s-new Scanner(in); while (s.hasNextLine()) f String pattern - --; íf (s . findInLine (pattern) != null) { MatchResult mr