Question: C++ programming hine and a to Submlsslon You should submit 3 files Code2 xxxxxxxxxx.cpp Assumptions 1. For now, the CokeMachine only dispenses Coke and no

 C++ programming hine and a to Submlsslon You should submit 3 C++ programming

hine and a to Submlsslon You should submit 3 files Code2 xxxxxxxxxx.cpp Assumptions 1. For now, the CokeMachine only dispenses Coke and no other types of tems 2. Payments are entered in pennies-$o.s0 is entered as 50, $1.00 is entered as 100. . Any displays of change will be in dollars and cents 4. Any payment entered cannot be used as part of the dispensed change. For example,if the user enter 1234 ($12.54) for payment, then the machine wil only dispense a Coke if is has enough change for 1204. When restocking the machine, the entire restock request has to fit. If the entire quantity does not fit, then the restock request is rejected. 5. UML Use the following UML to create the outline of your CokeMachine class. Please note that exact names (spellings and case) should be used changeLevel: int maxChangeCapacity: int-5000 CokePrice: int inventoryLevel: int maxinventoryCapacity: int 100 +CokeMachine(name:string, cost: int,change: int, inventory + getMachineName(): string + buyACoke(payment: int, change: string, action: int): bool + getinventoryLevel): int y): int + incrementinventory(amountToAdd: int): bool + getChangeLevel0): string l(amountToAdd: int): bool pacity): string + getCokePrice(): string + displayMoney/amount: int): stri

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!