I'm very new to java. My issue involves scanner. I have broken down the logic of tens down to ones but cannot breakdown change. | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

I'm very new to java. My issue involves scanner. I have broken down the logic of tens down to ones but cannot breakdown change.

it's supposed to read on control say for example: 55.21 Tens 5 Fives 1 Ones 0 Quarters 0 Dimes 2 Nickles 0 Pennies 1 [Solved] My main issue is the remainder breakdown of change, and unfortunately the textbook and lecture fail to mention this info even online research.

5th Mar 2018, 4:00 AM
Robert LeCompte
Robert LeCompte - avatar
3 Respostas
+ 3
Can you link your code with the question, without the code it's difficult to understand the point of problem : )
5th Mar 2018, 4:25 AM
Ipang
+ 3
Hi, sorry for my late reply, I'm glad you solved the case, FYI if a case/problem is closed/solved, it would be nice to edit the question title by adding a "[SOLVED] " prefix, just so people know and don't revisit a solved question As for uploading the code, first can you access your own account? in there, to the left most section is your "Codes" section, you can get there then tap on the green button with a "+" caption to create new code, if you have a code at hand you can paste it there and save it (it's important to save). Then in the code editor at the top right you can see a share button, tap on it and pick an action that suggests to copy to clipboard, then you can paste that code link in a question, or in a reply (answer). Optionally, if you were writing an answer to a question (like one you created to reply to me) you can also insert a code link, if you already have that code in your Codes bank, you see when composing an answer, there's this little button below that says "+ Insert...", it does look grayed, but it is functional, tap on it, then select "Insert Code" ā†’ second to the top right most, pick "My Codes" instead of "Trending" ā†’ Pick the code from your codes bank, then a link to the selected code will be inserted in the message body. P.S. I'm using the Android mobile app, I don't know if it works exactly the same if you're using web browser, the instructions above are the way to go in Android mobile app : )
6th Mar 2018, 9:52 AM
Ipang
+ 1
I was able to solve it due to a error in my part with on of the placements My Ints were : tens, fives, ones, quarters, dimes, nickels, pennies; double money; My error was: Tens=left/10 left=left%10 the correction required me to remove (left) from double leaving (money ) only Tens=money/10 money=money%10 with correction of words used for variable I was successful in solving my issue. Also, no idea how to upload the code, I did see you I can log onto pc... but that seems like extra work with no simple copy and past to upload
5th Mar 2018, 10:11 PM
Robert LeCompte
Robert LeCompte - avatar