subject

I've asked this question 24 hrs ago. i got no response. can someone me to solve this problem? i've to submit it tomorrow before 7 am. i'm using java language.

write a program that determines the change to be dispensed from a vending machine. an item in the machine can cost between 25 cents and a dollar, in 5 cents increments (25,30,35,,95 or 100), and the machine accepts only a single bill to pay for the item.

for example, a possible dialogue with the user might be

enter the price of the item

(from 25 cents to a dollar, in 5-cent increment) : 45

you bought an item for 45 cents and gave me a dollar

so your change is :

2 quarters
0 dimes, and
1 nickel.

input validation: display the change only if a valid price is entered (no less than 25 cents, no more than 100 cents, and an integer multiple of 5 cents.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 00:10
How does access indicates that a filter has been applied to a specific column
Answers: 1
question
Computers and Technology, 22.06.2019 05:30
Agood flowchart alludes to both the inputs and outputs you will need to receive and give to the user. true or false?
Answers: 3
question
Computers and Technology, 22.06.2019 10:40
Nims is applicable to all stakeholders with incident related responsibilities. true or false
Answers: 1
question
Computers and Technology, 23.06.2019 04:00
In a word processing program, such as microsoft word, which feature to you choose the desired picture enhancement?
Answers: 2
You know the right answer?
I've asked this question 24 hrs ago. i got no response. can someone me to solve this problem? i'v...
Questions
question
Mathematics, 19.04.2020 02:58
question
Mathematics, 19.04.2020 02:58
question
Mathematics, 19.04.2020 03:00
question
Biology, 19.04.2020 03:02
Questions on the website: 13722359