Java
An online music store offers all songs for 3$ each. The store requires members to prepay any amount of money they wish, and then download as many songs accordingly. You are required to write a program that would ask the user for the amount that he/she will pay, then display a message indicating how many songs that user will be able to purchase as well as how much funds will remain in the account after that. For this assignment, assume that the user will always enter a valid integer value that is >= 0, and within the limit of the integer range.
Here is an example of how your program should behave (the value (shown in bolded italic for clarification purpose only) is entered by the user):
How much money do you wish to prepay?
80
With this amount, you will be able to purchase 26 songs.
You will then have 2$ left as a credit on your account.
Thanks for Shopping at Best Music Store!