The machine holds six items numbered 1 through 6, with prices $1.25, $.75, $.90, $.75, $1.50, and $.75, respectively. The input to your program is an integer and a floating-point number representing an item number and a sum of money. If the money is enough to buy the item, your program should print: Thank you for buying item X. Your change is Y. If the money inserted is insufficient, then your program should say so. The following display give...
The answer to the question is available in the PDF file https://assignmentexpert.com/https://assignmentexpert.com/homework-answers/programming-answer-36890.pdf
Comments
Leave a comment