Create a class called CRational for performing arithmetic with fractions. Write a program to test your class. Use integer variables to represent the Private instance variables of the class—mNumerator and mDenominator. The class should store the fraction in reduced form (i.e., the fraction

2/4

would be stored in the object as 1 in the mNumerator and 2 in the mDenominator). Provide Public methods for each of the
following:
a) Addition of two CRational numbers. The result is stored in reduced form.
b) Subtraction of two CRational numbers. The result is stored in reduced form.
c) Multiplication of two CRational numbers. The result is stored in reduced form.
d) Division of two CRational numbers. The result is stored in reduced form.
e) Returning CRational numbers in the form mNumerator/mDenominator (i.e., a string with this format).
f) Returning CRational numbers in floating-point format. (Consider providing formatting capabilities that enable the
user of the class to specify the number of digits of precision to the right of the decimal point.)


```

1

2

3

4

5

6 Rational Numbers

7

Please define the difference between shareware and freeware.

What will be an ideal response?

Computer Science & Information Technology

A file ____ is used by Windows to determine the file type.

A. name B. extension C. format D. version

Computer Science & Information Technology

Irene is working in a database that organizes city court case information. Irene must find court cases in either one of two cities. Irene should use the Filter by Form ________ condition

A) query B) AND C) sort D) OR

Computer Science & Information Technology