Write a program to evaluate greatest common divisors and least common multiple of integers without gcd function.

Nice try!

Find an upper-class student to give you one-on-one tutoring for your homework.

Posted on Dec 02, 2009

Hi,

a 6ya expert can help you resolve that issue over the phone in a minute or two.

best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.

the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).

click here to download the app (for users in the US for now) and get all the help you need.

goodluck!

Posted on Jan 02, 2017

Are you sure that is the correct term?

It is usually the greatest common divisor - the number which will divide into two numbers neither being zero, without remainder. For instance the highest common divisor of 12 and 16 is 4.

It is usually the greatest common divisor - the number which will divide into two numbers neither being zero, without remainder. For instance the highest common divisor of 12 and 16 is 4.

Nov 06, 2014 | Office Equipment & Supplies

Use this http://www.calculatorsoup.com/calculators/math/percent-to-fraction-calculator.php

**OR** to work it out yourself.....#

### How to convert percent to fraction

1% = 1/100

So in order to convert percent to fraction, divide the percent by 100% and reduce the fraction.

For example 56% is equal to 56/100 with gcd=4 is equal to 14/25:

56% = 56/100 = 14/25

- Divide the percent by 100 to get decimal number.
- Count the number of digits (d) to the right of the decimal point of the decimal number.Example: 2.56 has 2 digits to the right of the decimal point, so d=2.
- Calculate the factor (f) for making the decimal number an integer:
*f*= 10*to power d*

Example:

*f*= 10 power 2 = 100

- Multiply and divide the decimal number x by the factor f:
*x***f*/*f*=*y*/*f*

Example:

2.56 * 100 / 100 = 256 / 100

- Find the greatest common divisor (gcd) of the fraction.
Example:

gcd(256,100) = 4

- Reduce the fraction by dividing the numerator and denominator by the gcd value:
Example:

256 / 100 = (256/4) / (100/4) = 64/25

1% = 1/100

So in order to convert percent to fraction, divide the percent by 100% and reduce the fraction.

For example 56% is equal to 56/100 with gcd=4 is equal to 14/25:

56% = 56/100 = 14/25

Sep 07, 2014 | Office Equipment & Supplies

Please the reformulate the problem(?) with more care. Capital P is a different entity than p. Are you trying to factor out the polynomial (an algebra problem where the **Greatest** Common Factors have no meaning), or are you trying to find the GCF of certain positive integers (an arithmetic problem)?

Feb 19, 2014 | Computers & Internet

Press MATH right-arrow 9 3 8 4 , 3 7 2 ) ENTER

Feb 27, 2013 | Texas Instruments TI 84 Plus Graphics...

There is not much that can be done to figure out how to write 0.9676244435451234 as a fraction, except to literally use what the decimal portion of your number, the .9676244435451234, means.

Since there are 16 digits in 9676244435451234, the very last digit is the "10000000000000000th" decimal place.

So we can just say that .9676244435451234 is the same as 9676244435451234/10000000000000000.

We can reduce this fraction to lowest

terms by dividing both the numerator and denominator by -2.14748e+09.

Why divide by -2.14748e+09? -2.14748e+09 is the **Greatest Common Divisor (GCD)**

or **Greatest Common Factor (GCF)** of the numbers 9.67624e+15 and 1e+16.

So, this fraction reduced to lowest terms is

Jul 27, 2011 | Office Equipment & Supplies

There are no such buttons, You'll find the lcm (least common multiple) and gcd (greatest common divisor) functions in the MATH NUM menu. Press MATH, right-arrow, and select the desired function.

Jul 07, 2011 | Texas Instruments TI-84 Plus Silver...

By fraction I understand that the numerator and denominator are both integers. The way to simplify it by hand is to look for the greatest common divisor of the numerator and denominator and simplify by it.

For example 15/27=(3x5)/(3x9). The greatest common divisor of 15 and 27 is 3. Simplifying by 3, you get 5/9

For example 15/27=(3x5)/(3x9). The greatest common divisor of 15 and 27 is 3. Simplifying by 3, you get 5/9

May 22, 2011 | Office Equipment & Supplies

To graph a greatest integer function, follow these steps:

1.) Press Y= 2.) Press MATH, then scroll to the right one column and select "int(" 3.) Enter your function inside of the parentheses, and make sure to put a closing parentheses at the end of the function you are inputting. 4.) After you have closed the parentheses to the "int(" command, add 1 to the end of the equation. This is because the "int(" command tells the calculator to take the lowest integer of the value inside of it. If you add one, then instead of .68 becoming 0, it becomes 1, and 1.724 becomes 2, etc.

1.) Press Y= 2.) Press MATH, then scroll to the right one column and select "int(" 3.) Enter your function inside of the parentheses, and make sure to put a closing parentheses at the end of the function you are inputting. 4.) After you have closed the parentheses to the "int(" command, add 1 to the end of the equation. This is because the "int(" command tells the calculator to take the lowest integer of the value inside of it. If you add one, then instead of .68 becoming 0, it becomes 1, and 1.724 becomes 2, etc.

Feb 27, 2011 | Texas Instruments TI-83 Plus Calculator

Here is one solution. You might consider adding more robust error handling.

if the decimal numbers passed to the div function are multiples i will be a non-zero number of that multiple otherwise i will be zero.

Dim i As Integer

i = div(12, 0)

If i = 0 Then

'not multiple

' do this

Else

' is multiple

' do something else

End If

Function div(ByVal numerator As Object, ByVal denominator As Object) As Integer

dim n , d decimal

Dim result As Decimal

Dim remainder As Decimal

If IsNumber(numerator) Is True _

And IsNumber(denominator) Is True Then

If numerator <> 0 Then

n = numerator

d = denominator

Else

GoTo error1

End If

Else

GoTo error1

End If

result = Decimal.divide(n, d)

remainder = Decimal.remainder(n, d)

If remainder = 0 Then

div = result

Else

div = 0

End If

Exit Function

error1:

msgbox("Numbers must be non-zero numerics", , "Multiple check error")

div = 0

End Function

End Function

if the decimal numbers passed to the div function are multiples i will be a non-zero number of that multiple otherwise i will be zero.

Dim i As Integer

i = div(12, 0)

If i = 0 Then

'not multiple

' do this

Else

' is multiple

' do something else

End If

Function div(ByVal numerator As Object, ByVal denominator As Object) As Integer

dim n , d decimal

Dim result As Decimal

Dim remainder As Decimal

If IsNumber(numerator) Is True _

And IsNumber(denominator) Is True Then

If numerator <> 0 Then

n = numerator

d = denominator

Else

GoTo error1

End If

Else

GoTo error1

End If

result = Decimal.divide(n, d)

remainder = Decimal.remainder(n, d)

If remainder = 0 Then

div = result

Else

div = 0

End If

Exit Function

error1:

msgbox("Numbers must be non-zero numerics", , "Multiple check error")

div = 0

End Function

End Function

Aug 06, 2008 | Computers & Internet

The greatest integer function (also called a step function) is actually a piecewise defined function with a special definition. The function has the notation f(x)=||x|| or f(x)=[[x]] when it is written, but the TI-83 and the TI-84 designate this function by using f(x)=int(x) and is found in the MATH NUM menu. This function is the greatest integer less than or equal to x. So, f(1)=1 and f(1.4)=1. Since this is a piece-wise function you should use DOT mode.

Mar 21, 2008 | Texas Instruments TI-84 Plus Calculator

88 people viewed this question

Usually answered in minutes!

×