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.

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

1 Expert Approved Answer
Step: 1 Unlock

Answer Here we use the programming l... View full answer

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 Programming Questions!