Write specifications documentation for a function that


The price of an item that you want to buy is given by two integers as priceDollars dollars and priceCents cents.

You pay for it in cash by giving the clerk payDollars dollars and payCents cents.

Write specifications (documentation) for a function that computes the change, if any, that you should receive.

The correct change should be passed back in two function parameters as changeDollars and changeCents (that are passed by reference).

Include a statement of purpose, the pre- and postconditions, and a description of the parameters, Be precise in the relationship between the inputs and outputs (don't just say, "the correct change is computed").

Do not write code to implement the function. Just write the specifications. Do not using floating point. Money is not subject to round-off error.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write specifications documentation for a function that
Reference No:- TGS02897300

Expected delivery within 24 Hours