| Title | Vending Machine |
| Catalog Type | SLCItem |
| Persistent ID | https://pawscomp2.sis.pitt.edu/pcex/index.html?lang=JAVA&set=artihmetic.vending_machine |
| Platform Name | PCEX |
| Features | — |
| Description | Suppose we have a vending machine that gives change. A customer selects an item for purchase and inserts a bill into the vending machine. The vending machine dispenses the purchased item and gives change. We will assume that all item prices are multiples of 25 cents, and the machine gives all change in dollar and quarters. Construct a program that computes how many dollars and quarters to return to the customer. |
| Keywords | arithmetic operators, constants, operators, primitive data types, variables |
| Author | Roya Hosseini |
| Institution | University of Pittsburgh |
| Iframe URL | https://pawscomp2.sis.pitt.edu/pcex/index.html?lang=JAVA&set=artihmetic.vending_machine |
| Protocol | PITT, HTML |
| Protocol URL | |
| License | MIT |
| Programming Language | Java |
| Natural Language | en |