Computing.Net > Forums > Programming > Visual Basic Fractions Program (I need help)

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)

Reply to Message Icon

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.

Thank you so much!@!



Sponsored Link
Ads by Google

Response Number 1
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.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Visual Basic Fractions Program (I need help)

simple vb6 program, i need help! www.computing.net/answers/programming/simple-vb6-program-i-need-help/6040.html

Visual Basic help www.computing.net/answers/programming/visual-basic-help/15885.html

I need Help explaining a C program www.computing.net/answers/programming/i-need-help-explaining-a-c-program/17576.html