Online music store application, JAVA Programming

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?

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!

 

 

Posted Date: 2/25/2013 12:19:38 AM | Location : United States







Related Discussions:- Online music store application, Assignment Help, Ask Question on Online music store application, Get Answer, Expert's Help, Online music store application Discussions

Write discussion on Online music store application
Your posts are moderated
Related Questions

What is Bullseye explain with an example? This is a easy applet that draws a series of filled, concentric circles alternating red and white, instead a bullseye. import java.ap

What is Operator Overloading? A few object oriented languages, notably C++, permit you to not only overload techniques but also operators like + or -. This is very menaingful w

What is difference between object state and behavior? Ans) If you change the state of an object, you ask it to perform a behavior. An object kept its states in a field e.g. vari


Using Fork() and Exec() or Clone(), create four child processes. Load the same "Hello" program in each process after creation. This program should behave differently in each pro

QUESTION 3: Overloaded methods Write the overloaded method named average () for each of the following problems: a) The first method receives THREE (3) integer values and returns

#questionSmugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new technology, they

How we Declaring Arrays in java language? Like all other variables in Java, an array must have a exact type such as byte, int, String or double. Just variables of the appropria

Polymorphism - defines the ability of a single variable of a provided type to be used to reference objects of different types, and automatically call the method that is specific