Computers and Technology

Ihave the following assignment for computer science class that is due tomorrow. can someone me to solve the code? i'm a beginner, so i don't have enough experience to solve the problem.

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.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 05:00, brylove603
Pls do you believe that the use of 3d animation has grown in feature films over the last few years? if so, do you think the trend will continue? what are the forces driving this trend?
Answers: 2
image
Computers and Technology, 22.06.2019 19:00, detrickboucicaut
The fourth generation of computers emerged between 1970s and 1980s. which technological advancement brought about this generation of computers? which computer architecture was used most in this generation?
Answers: 3
image
Computers and Technology, 23.06.2019 15:30, jokerr6323
1. ask the user how many questions are in the quiz. 2. ask the user to enter the key (that is, the correct answers). there should be one answer for each question in the quiz, and each answer should be an integer. e. g., 34 7 13 100 81 3 9 10 321 12 might be the key for a 10-question quiz. you will need to store the key in an array. 3. ask the user to enter the answers for the quiz to be graded. there needs to be one answer for each question. note that these answers do not need to be stored; each answer can simply be compared to the key as it is entered. 4. when the user has entered all of the answers to be graded, print the number correct and the percent correct. 5. add a loop so that the user can grade any number of quizzes with a single key. after the results have been printed for each quiz, ask "grade another quiz? (y/n)." note: you only have one array (the key). you are not creating a new key for each set of quiz answers.
Answers: 3
image
Computers and Technology, 23.06.2019 16:00, keyonaemanieevans
Helen is having a meeting with her colleagues in her company. they are working on the goals and objectives for the coming year. they want to ensure that these goals and objectives of the processes involved are properly evaluated. which system can helen and her colleagues apply to evaluate this? helen and her colleagues require a blank to evaluate the goals and objectives.
Answers: 2
Do you know the correct answer?
Ihave the following assignment for computer science class that is due tomorrow. can someone me to s...

Questions in other subjects:

Konu
Mathematics, 04.11.2020 01:00
Konu
Mathematics, 04.11.2020 01:00
Konu
Health, 04.11.2020 01:00