Question: Java Programming Question For this Lab you need to create two classes, Fraction and Fraction Test. Here is the UML class diagram of the Fraction

Java Programming Question

Java Programming Question For this Lab you need to create two classes,Fraction and Fraction Test. Here is the UML class diagram of the

For this Lab you need to create two classes, Fraction and Fraction Test. Here is the UML class diagram of the Fraction class you need to implement: Fraction numerator: int denominator: int Fraction() Fraction(num int, denum int) add .. multiply .. subtract toString After your Fraction class is completed and is compiled without any errors, implement Fraction Test program to test the Fraction class. Your program should: Ask the user for the numerator and denominator of two fractions. Create two Fraction objects with the user input. Add, multiply and subtract these two fractions (using the Fraction methods) and display the results. Repeat until the user asks you to stop. Make sure the inputs are positive integer numbers. Marking Scheme: [5 marks] Fraction class . O [5 marks] FractionTest program

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!