Suppose a cashier asks you to write a function that calculat…
Suppose a cashier asks you to write a function that calculates the minimum number of coins he/she needs for reimbursing the remaining balance of the customer. For example, the cashier needs to pay back $27.65 to the customer, and he/she can only use quarter, dime, and penny. What combination of these coins should he/she use to minimize the number of coins?
Read DetailsWrite a function that gets two parameters (arguments) from t…
Write a function that gets two parameters (arguments) from the user and if both of them are integers, it returns the result of the first parameter to the power second parameter (X**Y). If both parameters are strings, the function concatenates them (‘X’+’Y’) and returns the result, otherwise, it returns an error message and gets two new inputs.
Read Details