Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Visual Basic Fractions Program (I need help)
Name: TuRbi Date: June 2, 2009 at 05:16:38 Pacific OS: Windows XP Subcategory: General
Comment:
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.
Name: StuartS Date: June 2, 2009 at 08:13:50 Pacific
Reply:
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
0
Response Number 2
Name: TuRbi Date: June 3, 2009 at 04:57:35 Pacific
Reply:
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
0
Response Number 3
Name: wizard-fred Date: June 3, 2009 at 19:02:52 Pacific
Reply:
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.
Summary: hi guys, i would appreciate it if u guys can tell me the entire code for this small program, i know its a bit much to ask, but ive tried everything and was stuck too many times. the program is due soo...
Summary: HI everyone, I need some VB help.I'm quite new to VB so I don't know much. I have an old book about it, that's how I learned the basics. I have been using batchfiles to programming before, even though...
Summary: I need help explaining this program, its functions and declarations. I took C++ but we never actually learned anything like this, and I need this program :S:S I would be more than grateful if you co...