Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please help with structure from C language Class. this is all one problem. #incl

ID: 659644 • Letter: P

Question

Please help with structure from C language Class. this is all one problem.

#include <stdio.h>

Homework 11 Due Wednesday, May 6 by 11 : 59 pm Define a structure type to represent a fraction (obviously, there must be two fields: numerator and denominator). Write the following functions get fraction, which inputs a fraction and returns it to the caller. reduce fraction, which takes a fraction and returnsthe corresponding fraction reduced to the lowest terms. Hint: Recall and usethe gcd (greatest common divisor) function from HW6. multiply fractions, which takes two fractions and returns the fraction which is the product (reduced to the lowest terms) of the two fractions divide fractions, which takes two fractions and returns the fraction which is quotient of the two factions (reduced to the lowest terms) print fraction, which takes a fraction and to outputs it. Write a main function, which uses the functions above to input two fractions, reduce them to the lowest terms, prints resulting fractions, computes their product and quotient, and prints the results.

Explanation / Answer

#include<stdio.h>
#include<conio.h>

void multiply_frac (fraction f1, fraction f2);