-  [JOIN IRC!]


[Return]
Posting mode: Reply
Name
Subject   (reply to 673)
Message
File
Password  (for post and file deletion)
¯\(°_O)/¯
  • Supported file types are: BMP, GIF, JPG, PNG
  • Maximum file size allowed is 10000 KB.
  • Images greater than 400x400 pixels will be thumbnailed.
  • Currently 317 unique user posts. View catalog

  • Blotter updated: 2015-09-02 Show/Hide Show All


File 141608847845.jpg - (7.19KB , 200x139 , 1414530671121s.jpg )
673 No. 673
so I'm writing a candy machine program in c++ for a class. I've got it to give the correct amount of change, but the assignment also requires that I display the coin change (quarters, dimes, nickels. would put dollars but I made to where the machine won't accept 5's or weird change, so there's no way to be able to get back more than 95 cents)

I'm pretty sure the first step here is to multiply it by 100 and change it to an integer and then work with it. after that I'm stumped.

not looking for a code answer, rather a logic hint


Delete post []
Password  
Report post
Reason