Welcome to Westonci.ca, where you can find answers to all your questions from a community of experienced professionals. Connect with a community of experts ready to help you find accurate solutions to your questions quickly and efficiently. Get precise and detailed answers to your questions from a knowledgeable community of experts on our Q&A platform.
Sagot :
Answer:
Get the actual price of the item and convert it to cents, also get and convert the amount paid to cents.
subtract the actual price of the item from the paid amount ( which is in cents), if the result is greater than zero, covert the result back to dollars and output the result.
Explanation:
The program converts the actual price of the item and the amount paid to cents (where a dollar is equal to 100 cents). The variables are subtracted to get the change to be refunded, the result is converted back to dollars as the actual change to be paid.
We appreciate your time on our site. Don't hesitate to return whenever you have more questions or need further clarification. Thank you for visiting. Our goal is to provide the most accurate answers for all your informational needs. Come back soon. Stay curious and keep coming back to Westonci.ca for answers to all your burning questions.