Question: Save Output Test Cases Docs Assignment Grade More points Status: Not Submitted 2.4.6 Add Fractions Submit + Continue 1 public class AddFractions extends Console Program

 Save Output Test Cases Docs Assignment Grade More points Status: Not

Save Output Test Cases Docs Assignment Grade More points Status: Not Submitted 2.4.6 Add Fractions Submit + Continue 1 public class AddFractions extends Console Program 2-{ 3 public void run 4 { 5 int name 6 } 7 } In this program you will ask the user for 4 integers that represent two fractions. First ask for the numerator of the first and then the denominator. Then ask for the numerator and denominator of the second. Your program should add the two fractions and print out the result. For example, a sample program run might look like this What is the numerator of the first fraction? 1 What is the denominator of the first fraction? 2 What is the numerator of the second fraction? 2 What is the denominator of the second fraction? 5 The sum of 1/2 + 2/5 - 9/10 Note: you do not need to reduce these fractions. Remember, if you have two fractions you add them with: a ad + bc --- b d bd

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!