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

 

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

Write a method that accepts two arrays of integers and an array of operations. The operations could include "+", "-", or "*". Return an array of the results of performing the operations on the corresponding values in the same indices of the number arrays. Look at the test data for examples.


test2021_02_25_APP1SLHL_mathOperations([20], ["*"], [5]) → [100]
test2021_02_25_APP1SLHL_mathOperations([20], ["+"], [5]) → [25]
test2021_02_25_APP1SLHL_mathOperations([20], ["-"], [5]) → [15]

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

public int[] test2021_02_25_APP1SLHL_mathOperations(int[] first, String[] oper, int[] last) { }

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

Copyright Nick Parlante 2017 - privacy