1. Give reasons why the following Function call statements are illegal: (a) interest (rate =0.05, 5000,3)
(b) interest(5000,prin 300,cc=2)
(c) interest(5000, principal= 300, cc =2)
(d) interest (500, time=2, rate= 0.05)
2. Give reasons why the following Function call statements are legal:
(a) interest (prin=3000,cc=5)
(b) interest(rate= 20.12,prin=5000, cc=4)
(c) interest(cc=4, rate=0.12, prin =5000)
(d) interest (5000, rate=0.05)
Share
0 Replies