title: Program To Find Remainder Without Using Modulo Or Operator
signature: class Solution {
  
      public Integer programToFindRemainderWithoutUsingModuloOrOperator(Integer num, Integer divisor) {
source_py: def program_to_find_remainder_without_using_modulo_or_operator(num, divisor):
      return (num - (divisor * (num // divisor)))
source_cpp: int program_to_find_remainder_without_using_modulo_or_operator(int num, int divisor) {
    return ( num - divisor * ( num / divisor ) );
  }
question_info.extension: java
question_info.entry_fn_name: programToFindRemainderWithoutUsingModuloOrOperator
question_info.entry_cls_name: Solution
question_info.test_list: [{"idx": 0, "outputs": 26, "inputs": {"num": 80, "divisor": 54}}, {"idx": 1, "outputs": 0, "inputs": {"num": 63, "divisor": 21}}, {"idx": 2, "outputs": 1, "inputs": {"num": 1, "divisor": 56}}, {"idx": 3, "outputs": 22, "inputs": {"num": 22, "divisor": 39}}, {"idx": 4, "outputs": 3, "inputs": {"num": 66, "divisor": 7}}, {"idx": 5, "outputs": 61, "inputs": {"num": 61, "divisor": 67}}, {"idx": 6, "outputs": 45, "inputs": {"num": 45, "divisor": 63}}, {"idx": 7, "outputs": 29, "inputs": {"num": 29, "divisor": 44}}, {"idx": 8, "outputs": 30, "inputs": {"num": 95, "divisor": 65}}, {"idx": 9, "outputs": 9, "inputs": {"num": 9, "divisor": 68}}]
question_info.test_code: import static java.util.Map.entry;  
  import java.util.*;
  import java.lang.*;
  // TESTING CODE 
  // ============================================
  class QuestionEvaluator {
      public static String validateSolution(Integer num, Integer divisor, Integer expected){
          try{
              Driver driver = new Driver();
              if (driver.run(num, divisor,expected)){
                  return "PASSED";
              }
              return "FAILED";
              
          } catch (Exception exception_obj){
              return exception_obj.getClass().getSimpleName();
          }
  
      }
      public static void main(String[] args) {
          String result;
          result = validateSolution(80, 54, 26);
          System.out.println(String.format("%s%s","TEST-0...",result));    
      
          result = validateSolution(63, 21, 0);
          System.out.println(String.format("%s%s","TEST-1...",result));    
      
          result = validateSolution(1, 56, 1);
          System.out.println(String.format("%s%s","TEST-2...",result));    
      
          result = validateSolution(22, 39, 22);
          System.out.println(String.format("%s%s","TEST-3...",result));    
      
          result = validateSolution(66, 7, 3);
          System.out.println(String.format("%s%s","TEST-4...",result));    
      
          result = validateSolution(61, 67, 61);
          System.out.println(String.format("%s%s","TEST-5...",result));    
      
          result = validateSolution(45, 63, 45);
          System.out.println(String.format("%s%s","TEST-6...",result));    
      
          result = validateSolution(29, 44, 29);
          System.out.println(String.format("%s%s","TEST-7...",result));    
      
          result = validateSolution(95, 65, 30);
          System.out.println(String.format("%s%s","TEST-8...",result));    
      
          result = validateSolution(9, 68, 9);
          System.out.println(String.format("%s%s","TEST-9...",result));    
      
      }
  }
  
  class Driver{
      public boolean run(Integer num, Integer divisor, Integer expected){
  
          PLACEHOLDER_CLS_NAME sol = new PLACEHOLDER_CLS_NAME();
          return validateSolution(sol.PLACEHOLDER_FN_NAME(num, divisor),expected);
      }
      
      public boolean validateSolution(Integer actual, Integer expected){
          return actual.equals(expected);
      }
  }
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
question_info.test_case_ids: 0 1 2 3 4 5 6 7 8 9
question_info.commands: java __FILENAME__