Here is a sample that may help. It is far from perfect but should give you an idea how to proceed. Ideally you would have another function that is called to do the printing, but you can leave that for the next assignment.
fun main(args: Array<String>) {
val total = 10.88
var change = Dollar(total);
change = Quarter(change);
println("")
}
fun Dollar(myChange: Double): Double{
val dollars = Math.floor(myChange)
val remainder = myChange - dollars;
print(dollars)
print(" Dollar")
if (dollars != 1.0)
print("s");
print(", ")
return remainder
}
fun Quarter(myChange: Double): Double{
val quarters = Math.floor(myChange / 0.25)
val remainder = myChange - (quarters * 0.25);
print(quarters)
print(" Quarter")
if (quarters != 1.0)
print("s");
print(", ")
return remainder
}