1) Write a C program using a function name totalamount () that accepts 4 integer arguments name limasen, sepuluhsen, duapuluhsen and limapuluhsen, which represent the number of 5 cents (RM0.05), 10...


1) Write a C program using a function name totalamount () that accepts 4 integer arguments name limasen, sepuluhsen, duapuluhsen and limapuluhsen, which represent the number of 5 cents (RM0.05), 10 cents (RM0.10), 20 cents(RM0.20) and 50 cents (RM0.50) in a bank. The function should determine and return the total amount in Malaysian Ringgit value in two decimal places.


a-write coding that function with return value - display in main(),


b- write coding that function without return value - display output in function definition )




Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here