Question: HELP IN JAVA: Write a program that will input integers (numerator and denominator) from a file (lab20.in) , create fractions from these integers, and store

HELP IN JAVA: Write a program that will input integers (numerator and denominator) from a file (lab20.in) , create fractions from these integers, and store these fractions in an array. It will then ask the user for two integers (numerator and denominator), create a fraction from these, and search the array for this fraction (using binary search). I am giving you the file below but when coding you will not always know the amount of objects in a file.

lab20.in:

1 4 5 16 3 8 50 100 11 12 4 3 3 2 13 8 50 25 9 4 11 4 59 20 90 30

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!