Fraction
Fraction
Code: Lab2-PRO192
Title
Handling fractions program.
Program Specifications
Design a program that allows users to input the number of list fractions. Generate random integer in number
range input. Display sorted fractions list.
Fraction class contains numerator, denominator attributes, constructor, getter/setter methods for each
attribute.
All fractions are stored in a Array list.
Function details:
1. Display a screen to prompt users to input a positive integer number.
o Users run the program, display a screen to ask users to enter a positive integer number.
2. Display:
o Generate list random fractions (with number of element that user just inputted).
Guidelines:
- Use Random class to create a random number.