Advertisement
nio_kasgami

fun coding

Sep 2nd, 2015
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.13 KB | None | 0 0
  1. Chapter_page = 34
  2. Numberchapter = 9
  3.  
  4. Days_efficience = 3
  5.  
  6. Total_day_year = 306
  7.  
  8. Total_month = 12
  9.  
  10. Total_day_month = 30
  11.  
  12. def total_page_for_volume
  13.   Chapter_page * Numberchapter
  14. end
  15.  
  16. def call_result
  17.   msgbox_p("it's equal " + total_page_for_volume.to_s + " pages.")
  18.   msgbox_p("it's equal " + total_page_for_all_volume.to_s + " pages.")
  19.   msgbox_p("it's equal " + calcule_efficience.to_s + " days.")
  20.   msgbox_p("it's equal " + calcule_total_years.to_s + " years.")
  21.   msgbox_p("it's equal " + calcule_one_volume_time.to_s + " days.")
  22.   msgbox_p("it's equal " + calcule_month.to_s + " months.")
  23.   msgbox_p("it's equal " + calcule_total_months.to_s + " months.")
  24. end
  25.  
  26. def total_page_for_all_volume
  27.   total_page_for_volume * 16
  28. end
  29.  
  30. def calcule_efficience
  31.   total_page_for_all_volume / Days_efficience
  32. end
  33.  
  34. def calcule_total_years
  35.   calcule_efficience / Total_day_year
  36. end
  37. def calcule_one_volume_time
  38.   total_page_for_volume / Days_efficience
  39. end
  40.  
  41. def calcule_month
  42.   calcule_one_volume_time / Total_day_month
  43. end
  44.  
  45. def calcule_total_months
  46.   total_page_for_all_volume / Total_day_month
  47.   end
  48.  
  49.  
  50.  
  51.  
  52.  
  53. call_result
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement