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

 

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

Write a method that accepts to Strings representing complex numbers. Return a String that represents the sum of those two complex numbers.


addComplex("0+0i", "3+6i") → "3+6i"
addComplex("84722+429i", "4124+2142i") → "88846+2571i"
addComplex("-7-3i", "0+0i") → "-7-3i"

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

public String addComplex(String num1, String num2) { }

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: 350

Copyright Nick Parlante 2017 - privacy