+ 10
I have a challenge for some beginners! Make a cash register with a working change machine
For example, If I bought a peice of gum that was 13 cents with a 20 dollar bill the output should say, Your change is: $19.87 Have fun writing. (I know I "did" a year or two ago)
9 Respostas
+ 3
This problem seemed interesting to me so I gave it a try.Bonus it can show the nth prime number so if you want the 1000th one just input 1000.
Edit:
Thank you so much for choosing my answer as best answer!đ
https://code.sololearn.com/cPaPJmpAGgER/?ref=app
+ 10
https://code.sololearn.com/c56CE68Hb10t/?ref=app
+ 8
@Coming In Second I like more bonus round.đ
+ 6
Is the quantity of that item also considerable?
https://code.sololearn.com/cO19a9ZXNnmk/?ref=app
+ 5
@Coming In Second- bonus round
https://code.sololearn.com/cXAlUAUUImt2/?ref=app
+ 3
Its supposed to be a challenge, It teaches you brain storming and how to use math functions in Java
+ 3
@Kulanga Are you up for a bonus round?
Now instead of printing a single number have your code print currency to the output.
Example: $20 - $13.40
//Your change is: 6 Dollars 2 Quarters 1 Dime
+ 1
@Kulanga Kaushani Heres another bonus question, Write a program to print the 1000th prime number
0
Is this really for beginners? I like it though.