An ATM has the denomination of Rs.2000, Rs.500, Rs.200, Rs.100. Write a code to find minimum...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
An ATM has the denomination of Rs.2000, Rs.500, Rs.200, Rs.100. Write a code to find minimum no. of notes can be disbursed by the machine for the requested amount assuming sufficient currency and all denominations are available. Input Format: A single integer represent the amount. Output Format: An integer represents the minimum number of notes can be disbursed. Example: Input: 9800 Output: Explanation: 4*2000+3*500+1*200+1*100 which gives 4+3+1+1 = 9 An ATM has the denomination of Rs.2000, Rs.500, Rs.200, Rs.100. Write a code to find minimum no. of notes can be disbursed by the machine for the requested amount assuming sufficient currency and all denominations are available. Input Format: A single integer represent the amount. Output Format: An integer represents the minimum number of notes can be disbursed. Example: Input: 9800 Output: Explanation: 4*2000+3*500+1*200+1*100 which gives 4+3+1+1 = 9
Expert Answer:
Posted Date:
Students also viewed these programming questions
-
Write a code to implement the Radix Sort. It depends on the user which sorting algorithm user wants to create? Program takes the input from the user and then store the elements in the array andthen...
-
Write a code to transmit a two bytes data from one microcontroller to another using UART and get it back from the receiver at 9600 bps. Draw schematics.
-
Write a program that receives an ASCII code (an integer between 0 and 127) and displays its character. For example, if the user enters 97, the program displays the character a. Here is a sample run:...
-
The tasks must you complete as part of building the subledger applications while implementing Oracle Accounting Hub Cloud? Explain.
-
How is a static budget adjusted to develop a flexible budget?
-
On an overcast day the directional distribution of the solar radiation incident on the earth's surface may be approximated by an expression of the form I1 = In cos , where In = 80 W/m2 sr is the...
-
Calculate the times-interest-earned ratio for Evans \& Sons, Inc., for 2018 and 2019, and comment on the company's ability to pay its current interest payments. Did the company's ability to pay its...
-
Detner International purchases 80% of the outstanding stock of Hardy Company for $1,600,000 on January 1, 2015. At the purchase date, the inventory, equipment, and patents of Hardy Company have fair...
-
The Merger of Construct Engineering and MechElec Engineers to create CEME Engineering Construct Engineering (CE) was a good solid Australian structural engineering company that had a steady flow of...
-
For adults who sailed on the Titanic on its fateful voyage, the odds ratio between gender (female, male) and survival (yes, no) was 11.4. a. What is wrong with the interpretation. The probability of...
-
Which of the following statements concerning inflows and outflows listed on the Cash Flow Statement is not correct? Planned savings for goals is treated as an outflow/expense. Charitable...
-
Joe runs up the stadium steps as an athletic drill. There are 50 steps and each one is 0.30 meters high and 0.50 meters deep. If Joe has a mass of 95 kg and runs the steps in 30 seconds, how much...
-
What do you think of the accuracy of your perceptions of the average "typical" American diet? Any surprises?Use this website "https://insteading.com/blog/food-consumption-in-america/" Do you agree...
-
The construction of a new coal mine will cost Yamada Co. Ltd. $430,000, with the expenditure occurring the next year. The investment will bring about cash flows of $200,000 annually over the...
-
Discuss how you would engage various stakeholders within the school community (e.g., parents, teachers, students, administrators).
-
what ways does hazard analysis play a role in the design and implementation of safety instrumented systems (SIS), particularly in determining Safety Integrity Levels (SILs) and developing safety...
-
The thickness of wood paneling (in cm) that a customer orders is a random variable with the x <1/8 e distribution function: 0.2 1/8 x < 1/4 F(x) = 0.8 1/4 x < 3/8 1 3/8 x Determine the following...
-
A bar of a steel alloy that exhibits the stress-strain behavior shown in Figure 6.22 is subjected to a tensile load; the specimen is 375 mm (14.8 in.) long and has a square cross section 5.5 mm (0.22...
-
The following are selected operating data for Jack- son Company's Blending Department for November 2019. Painting and packaging operations are carried out subsequently in other departments. Calculate...
-
In its first month of operations (May of 2019), Allred Company's Department 1 incurred charges of \($72,000\) for direct materials (9,000 units), \($38,700\) for direct labor, and \($13,500\) for...
-
The following data (and annotations) for March 2019 are for the work-in-process account of the first of Olympus Company's four departments used in manufacturing its only product. Assuming that...
Study smarter with the SolutionInn App