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

 

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

Write a method that returns a statement about dividing the 'numerator' by the 'denominator' as shown in the test data. As preconditions, you may assume that both parameters are positive.


quiz2023_09_12_SLHL_divideIt(42, 41) → "When you divide 42 by 41 you get 1 with remainder 1"
quiz2023_09_12_SLHL_divideIt(42, 40) → "When you divide 42 by 40 you get 1 with remainder 2"
quiz2023_09_12_SLHL_divideIt(7, 2) → "When you divide 7 by 2 you get 3 with remainder 1"

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

public String quiz2023_09_12_SLHL_divideIt(int numerator, int denominator) { }

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

Copyright Nick Parlante 2017 - privacy