Computers and Technology

Assume that type money, a structured type with two int fields, dollars and cents, has been declared . also assume the availability of a function named normalize that receives a money argument and returns a "normalized" money value (i. e. one that is equivalent to the argument but where the cents values is between 0 and 99).now write the definition of a function named addmoney that receives two money arguments and returns their sum , in normalized form. so if the equivalent of $1.85 and $2.19 is passed the function would return the equivalent of $4.04.

answer
Answers: 2

Similar questions

Do you know the correct answer?
Assume that type money, a structured type with two int fields, dollars and cents, has been declared...

Questions in other subjects: