Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Chapter_page = 34
- Numberchapter = 9
- Days_efficience = 3
- Total_day_year = 306
- Total_month = 12
- Total_day_month = 30
- def total_page_for_volume
- Chapter_page * Numberchapter
- end
- def call_result
- msgbox_p("it's equal " + total_page_for_volume.to_s + " pages.")
- msgbox_p("it's equal " + total_page_for_all_volume.to_s + " pages.")
- msgbox_p("it's equal " + calcule_efficience.to_s + " days.")
- msgbox_p("it's equal " + calcule_total_years.to_s + " years.")
- msgbox_p("it's equal " + calcule_one_volume_time.to_s + " days.")
- msgbox_p("it's equal " + calcule_month.to_s + " months.")
- msgbox_p("it's equal " + calcule_total_months.to_s + " months.")
- end
- def total_page_for_all_volume
- total_page_for_volume * 16
- end
- def calcule_efficience
- total_page_for_all_volume / Days_efficience
- end
- def calcule_total_years
- calcule_efficience / Total_day_year
- end
- def calcule_one_volume_time
- total_page_for_volume / Days_efficience
- end
- def calcule_month
- calcule_one_volume_time / Total_day_month
- end
- def calcule_total_months
- total_page_for_all_volume / Total_day_month
- end
- call_result
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement