User Profile
Collapse
-
guys reply me soon,it is very urgent and i couldn.t get the output -
can of coke, check whether opened or closed, contains 5 sips
Write a Java class CanOfCoke that represents information about cans of Coke. The following information is associated with each can:
• Whether or not the can has been opened
• The number of "sips" of drink remaining in it - initially this is 5 (when the can is full), and is 0 when the can has been emptied. 2 would indicate that 3 sips have been drunk.
No activity results to display
Show More
Leave a comment: