Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

7. Define cultural space.

Answered: 1 week ago

Question

What are the advantages and disadvantages of leasing ?

Answered: 1 week ago

Question

Name is needed for identifying organisms ?

Answered: 1 week ago

Question

7. Where Do We Begin?

Answered: 1 week ago