Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Vending Machine

807588Mar 20 2009 — edited Mar 27 2009
Hello guys!

This is the first programming course that i'm taking.It seems hard but it is powerfull. I have hard time designing a program for this assignment:

Write an algorithm that accepts from the keyboard the item price (Price) of the purchase
(assumed be less than 20$) and produces as output the number of coins to return as
remaining change (Change) (The available coins are: 10$, 5$, 1$, 50C, 20C, 10C,
5C).

It looks like that this assignment is missing something.Isn't it?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 24 2009
Added on Mar 20 2009
92 comments
382 views