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

 

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

Write a method that shows the result of dividing 'numerator' by 'denominator' AND explains what that result means. Do not have any lines of code that are wider than the method header. As preconditions, you may assume that numerator is non-negative and that denominator is positive. If you have lines longer than that you will need to break them up. You may use one or more helper methods. Remember to make sure each method has only one return statement. Look at the test data for examples.


test2024_03_12_APP1SLHL_divisionMeaning(0, 4) → "0/4=0 with a remainder of 0 because 0*4+0=0"
test2024_03_12_APP1SLHL_divisionMeaning(7, 3) → "7/3=2 with a remainder of 1 because 2*3+1=7"
test2024_03_12_APP1SLHL_divisionMeaning(42824, 95) → "42824/95=450 with a remainder of 74 because 450*95+74=42824"

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

public String test2024_03_12_APP1SLHL_divisionMeaning(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: 290

Copyright Nick Parlante 2017 - privacy