Write a program in C++ to transform n mixed numbers into improper fractions. A mixed number is
Question:
Write a program in C++ to transform n mixed numbers into improper fractions. A mixed number is a number consisting of a whole number and a proper fraction.
Given the mixed number:
3 3/5
The improper fraction representing this mixed number is:
18/5
Convert 3 3/5 into an improper fraction, we:
Multiply the whole number with the denominator of the properfraction.
Add the numerator of the proper fraction to the product fromstep 1 to obtain the numerator of the improper fraction.
The denominator of the improper fraction will be the same asthe denominator of the proper fraction.
The input for your program will be:
An integer value that represents the number mixed numbers totransform.
Three integer values per mixed number representing the wholenumber, the numerator, and the denominator of the mixednumber.
Given the following input:
33 3 54 1 23 1 3
The expected output is:
3 3/5 = 18/5
4 1/2 = 9/2
3 1/3 = 10/3
C++ program help