Uploaded by 13 Trần Hoàng Phúc

Lab5-new

advertisement
PRO192 Lab5
Type:
Code:
LOC:
Slot(s):
ShortAssignment
Lab5
150
1
Title
Create a Java console program to manage fractions.
Program Specifications
Write a Java program define the Fraction class with the operations addition and subtraction, multiplication and division
of fractions, inverses, and simple.
Then declare and initialize the fraction list with the number of fractions and the fraction values entered from the
keyboard.
Build a menu that allows users to select actions to perform.
Be sure to check the input data format. In addition, the program needs to be arranged according to the MVC model. If
the program does not fulfill this requirement, it will not be considered.
Note:
This is an open-minded exercise and I do not make specific requirements, so if your code duplicates another student's
code in the class, you will all receive 0 points for this Lab.
Download