subject

Once upon a time there was a country called plusplusland. the monetary system they used there was simple: the currency name was the "plussar" and their central bank issued five different banknotes of values 50, 20, 10, 5 and 1 plussar. your task is to write a program for the atms of plusplusland. the program should find the minimal number of banknotes needed to deliver any amount of money to the client. the treasury minister has asked you personally to do this. he expects your code to print the values of all the needed banknotes in a row – this is the format accepted by all atms in plusplusland. your program will require the use of an integer array combined with different loops to process the currency. test your code using the sample data provided input125example output50 50 20 5example input127example output50 50 20 5 1 1example input49example output20 20 5 1 1 1 1(hint: here is an array that maybe for all known banknotes ordered from the most valuable to the leastint banknotes[] = {50, 20, 10, 5, 1} and then use your skill with array related processing combining different kinds of loops)

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:10
Which activity should be part of a long-term plan to positively affect yourhealth? oa. wearing regular clothing when handling toxinsob. not worrying about secondhand smokeoc. avoiding excessive exposure to sunlightod. drinking only well water
Answers: 1
question
Computers and Technology, 23.06.2019 11:00
How should you specify box sizes on a web page if you want the boxes to vary according to the font size of the text they contain? a. in pixels b. in inches c. as percentages d. in em units
Answers: 2
question
Computers and Technology, 23.06.2019 19:30
What are loans to a company or government for a set amount of time
Answers: 1
question
Computers and Technology, 23.06.2019 22:50
An environmental protection agency study of 12 automobiles revealed a correlation of 0.47 between engine size and emissions. at 0.01 significance level, can we conclude that there is a positive association between the variables? what is the p value? interpret.
Answers: 2
You know the right answer?
Once upon a time there was a country called plusplusland. the monetary system they used there was si...
Questions
question
Social Studies, 24.11.2019 06:31
question
Geography, 24.11.2019 06:31
question
Mathematics, 24.11.2019 06:31