Question: write in python Write a program which adds two fraction using functions as described below: getFrac: Asks the user to enter the numerator and the

write in python

write in python Write a program which adds two fraction using functions

Write a program which adds two fraction using functions as described below: getFrac: Asks the user to enter the numerator and the denominator of the fraction and returns these integers to the calling program. addFrac: Receives numerators and denominators of two fractions as arguments and returns the numerator and denominator of the sum of the two fractions. o prnFrac: Receives the numerator and the denominator of a fraction and prints numerator/denominator to the screen. main: Asks the user to enter two fractions using the getFrac function, adds these two fractions using the addFrac function, then prints the sum to the screen using the prnFrac function. The program output should be displayed exactly as shown in the example outputs below depending on what user enters. Do not simplify the fraction. (Chry Enter numerator: 1 Enter numerator: 2 Enter denominator: 3 Enter denominator: 3 Enter numerator: 1 Enter numerator: 5 Enter denominator: 2 Enter denominator: 6 1/3+1/2 = 5/6 2/3 + 5/6 = 27/18

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!