Visual Basic Fractions Program (I need help)

June 2, 2009 at 05:16:38
Specs: Windows XP
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!@!

See More: Visual Basic Fractions Program (I need help)

Report •

June 2, 2009 at 08:13:50
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.


Report •

June 3, 2009 at 04:57:35
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

Report •

June 3, 2009 at 19:02:52
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.

Report •

Related Solutions

Ask Question