Question: Q. 4 Create a four-function calculator for fractions by using following formulas. Addition: a/b + c/d (a*d+ b*c)/ (b*d) Subtraction: a/b - c/d (a*d

Q. 4 Create a four-function calculator for fractions by using following formulas. Addition: a/b + c/d (a*d+ b*c)/ (b*d) Subtraction: a/b - c/d (a*d - b*c)/ (b*d) Multiplication: a/b * c/d = (a*c)/ (b*d) Division: a/b / c/d (a*d) / (b*c) The program should display above mentioned formulas first. The user should take the values of a,b,c,d from user. The program should then display the result of each process Addition, Subtraction, Multiplication, and Division on separate lines on screen. (10)
Step by Step Solution
3.42 Rating (161 Votes )
There are 3 Steps involved in it
Answer Here we use the programming l... View full answer
Get step-by-step solutions from verified subject matter experts
