Question: Pplease post script in Matlab Depending on the numerator and denominator of a proper fraction, if you convert it to a decimal number you might

Pplease post script in Matlab Depending on the numerator and denominator ofPplease post script in Matlab

Depending on the numerator and denominator of a proper fraction, if you convert it to a decimal number you might end up having repeating decimals. For example: 5= 0.3333 ...= 0.3 or 1423 = 0.14373737... = 0.1437 9900 Note that in the second fraction 14 and 37 are the non-repeating and repeating decimals respectively. Now, consider a general case in which none of the repeating or non-repeating decimals is zero. Let's assume that A is an m digit number representing the non-repeating decimals and B is an n digit number representing the repeating decimals. For example for 0.1437, A, m, B, and n are 14, 2, 37, and 2 respectively. Given A, m, B, and n , write program to find the numerator and denominator of a proper fraction representing the following numbers: 0.587, 0.56743 This problem has 5 points (2 points for algebra, 1 point for choice of variable and com- menting your code, 2 points for correct output). Depending on the numerator and denominator of a proper fraction, if you convert it to a decimal number you might end up having repeating decimals. For example: 5= 0.3333 ...= 0.3 or 1423 = 0.14373737... = 0.1437 9900 Note that in the second fraction 14 and 37 are the non-repeating and repeating decimals respectively. Now, consider a general case in which none of the repeating or non-repeating decimals is zero. Let's assume that A is an m digit number representing the non-repeating decimals and B is an n digit number representing the repeating decimals. For example for 0.1437, A, m, B, and n are 14, 2, 37, and 2 respectively. Given A, m, B, and n , write program to find the numerator and denominator of a proper fraction representing the following numbers: 0.587, 0.56743 This problem has 5 points (2 points for algebra, 1 point for choice of variable and com- menting your code, 2 points for correct output)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!