a certain library assesses fines for overdue books as follows . on the first day that a book is overdue , the total fine is $ 0.05 . for each additional day that the book is overdue , the total fine is either increased by $ 0.30 or doubled , whichever results in the lesser amount . what is the total for a book on the fifth day it is overdue ?
1 st day fine - 0.05 2 nd day fine - 0.05 * 2 = 0.1 ( as doubling gives lower value ) 3 rd day fine - 0.1 * 2 = 0.2 ( as doubling gives lower value ) 4 th day fine - 0.2 * 2 = 0.4 ( as doubling gives lower value we add 0.3 this time ) 5 th day fine - 0.4 + 0.3 = 0.7 ( as doubling gives higher value we add 0.3 this time ) answer : b .
add(multiply(multiply(multiply(0.05, const_2), const_2), const_2), 0.3)