Question: C programming task: Fraction sum 1. Implement the function fracsum which calculates the sum of two fractions. 2. fracsum takes four integers as its parameter.
C programming
task: Fraction sum
1. Implement the function fracsum which calculates the sum of two fractions.
2. fracsum takes four integers as its parameter.
-the first two parameters are the numerator and denominator of the first number.
-the latter two parameters are the numerator and denominator of the second number.
3. The function returns the sum of these numbers as a floating point number with double precision.
For example, if we call the fracsum function as follows:

it performs the following calculation:
Although there are two ways to solve that fraction, in this exercise you must first calculate the value of each fraction as a floating point, and then add those floats together.
fracsum(1, 2, 1, 3); 1 1 3 |. 2 6
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts

