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

 

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

Write a method that accepts two complex numbers and returns their product. You may need to do some research about powers of i.


multiplyComplex("42-5i", "42+5i") → "1789+0i"
multiplyComplex("10+2i", "10-2i") → "104+0i"
multiplyComplex("1+1i", "1+1i") → "0+2i"

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

public String multiplyComplex(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: 440

Copyright Nick Parlante 2017 - privacy