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
How to get all the registered objects in a rmiregistry? Ans) Using list method of Naming Class.

Explain what is Multilevel Inheritance ? The Car-Motorcycle-MotorVehicle instances showed single-level inheritance. There's nothing to stop you from going next. You can describ

Explain the difference between pre-emptive scheduling and time slicing ?

What are the parts of website design? Parts of web design: There are in 3 types of elements for web design and below are there names: 1. Navigation scheme 2. Overall look and

Explain switch statement in java language? Switch statements are shorthands for a certain type of if statement. It is not common to see a stack of if statements all related

Define network organization? What are important features of network organization? Network Organization : Network organization is an inter firm organization in which is charac

1. Which of the following are not valid Java identifiers, and why? (a) wolVes (b) United(there is only one) (c) 87 (d) 5 3 (e) Real ale (f) isFound?by 2. A cla

Develop a Computer program and application. Project Description: I want a project done. It is a computer desktop application program. It is not very hard. If you need the det

Exercise 1) Lets start by query example in SPARQL: QUERY: What are the school's names that belong to the "local authority district" 00AA? NOTE 1: "Authority districts" divide UK i

Describe the java.lang package ? Each package describes a number of classes, exceptions, interfaces, and errors. For instance, in Java 1.1 the java.lang package holds these: