The program we have to to make in class is a fractions program. We can make this however way we want. What we have to do is make a program that can take TWO fractions and do all of the operations to those 2 fractions. (Add,subtract,multiply,divide) We could choose to do option buttons or whatever we want to choose the operator. We have 3 days of class left and this is my final exam. I can not figure this out at all. Please help me with this. Me and 5 other students have been trying for 3 days and we don't know what to do.

~~Make a program that takes 2 fractions and can perform all of the operations on those 2 fractions.`i was thinking of using text boxes for the fractions and option buttons to choose the operator, but it could be done anyway.

Thank you so much!@!

The best way to do it is to convert the fracions to decimal numbers. Do the necessary operations and convet back to a fraction. I take t ou do know how to convert a fraction to a decimal number.

Stuart

I know how to convert a fraction to a decimal but not a decimal to a fraction. Could you please help. We've searched the web and can't find any code that works

Converting decimals to fractions is difficult. Do it as fractions numerator and denominator and do the operations as if you were doing it manually. Then reduce as necessary. This problem has been done in application like MathCAD and in several programming languages. I remember BASIC applications in magazines in the 80's.

Ask Your Question

Weekly Poll

Do you think Google should sell budget phones in the US?

Discuss in The Lounge

Poll History