Help for this page

Select Code to Download


  1. or download this
    $fee = determine_maximum_fee();
    
    sub determine_total_fee {
    
  2. or download this
      $fee = ($tfee / 100 + $sfee/100 + 0.0000001) * 100
    
  3. or download this
      $mfee = 200 if ($fee >= 100);
    
  4. or download this
      $fee = $mfee if $mfee;
    
  5. or download this
      return $fee;
    }
    
  6. or download this
    use constant BREAK_POINT => 100;
    use constant BONUS_FEE   => 200;
    
    my $total_fee = $tfee+$rfee >= BREAK_POINT ? BONUS_FEE : $tfee+$rfee;