lundi 16 novembre 2020

Coin counting java program [closed]

I'm a beginner at java and I need to create a coin sorting program. The program should enable a user to check how many coins of a certain denomination can be exchanged given an input value in pennies. It also needs to be able to allow the user to determine how many coins can be exchanged if the user wishes to exclude a certain denomination. Here is my code so far, I'm stuck on how I can allow the user to select which denomination of pennies they wish to exclude, example they only want to see 1 pound coins etc. If anyone has any pointers I would really appreciate it.

enter image description here

Aucun commentaire:

Enregistrer un commentaire