id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

jebbert@volusia.k12.fl.us > add
prev  |  next  |  chance

Write a method that returns the sum (in reduced fraction form) of the two fraction input parameters (where "fraction" is a string as described in the reduce problem). You might want to copy and paste the reduce method into your code as a helper method.


add("1/2", "1/4") → "3/4"
add("7/10", "1/5") → "9/10"
add("7/23", "5/17") → "234/391"

...Save, Compile, Run (ctrl-enter)

public String add(String fract1, String fract2) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 440

Copyright Nick Parlante 2017 - privacy