Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. For now, the CokeMechine only disperses Coke and no other types of Ihems 2. Prymants are entered in nies . SOSO is entered n
1. For now, the CokeMechine only disperses Coke and no other types of Ihems 2. Prymants are entered in nies . SOSO is entered n 50,SL00-entredasoo. 3. Any dsplays of change will be in dollars and cents . Any payment entered cannot be used as part of the dispensed change. For example, # the user enter 1234 (512.54) for payment, then the machine will only dispense a Coke if is has enough change for 1204 s. When restocking the machine, the entire restock request has to fite. f the endire quantity does not ft, then the restock request is rejected. UML Use the folowing UML to create the outine of your CokeMachine cless. Please note that exact names (spellings and case) should be used. CokeMachine string changelevel : int CokePrice: int inventoryLevel: int maxinventoryCapacity: int-100 CokeMachinelname:string cost int, change :int inventory int) CokeMachine t : int. change string, action: int) :bool ) int e incrementinventorylamountTood nt):bool + incrementChangelevellamountToAdd anti bool +getcokePrice): string displayMoneyamount inti:string 1. For now, the CokeMechine only disperses Coke and no other types of Ihems 2. Prymants are entered in nies . SOSO is entered n 50,SL00-entredasoo. 3. Any dsplays of change will be in dollars and cents . Any payment entered cannot be used as part of the dispensed change. For example, # the user enter 1234 (512.54) for payment, then the machine will only dispense a Coke if is has enough change for 1204 s. When restocking the machine, the entire restock request has to fite. f the endire quantity does not ft, then the restock request is rejected. UML Use the folowing UML to create the outine of your CokeMachine cless. Please note that exact names (spellings and case) should be used. CokeMachine string changelevel : int CokePrice: int inventoryLevel: int maxinventoryCapacity: int-100 CokeMachinelname:string cost int, change :int inventory int) CokeMachine t : int. change string, action: int) :bool ) int e incrementinventorylamountTood nt):bool + incrementChangelevellamountToAdd anti bool +getcokePrice): string displayMoneyamount inti:string
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started