djvirus
BAN USER
Questions (2)
Forum Posts (1)
Comments (1)
Reputation 10
- 0of 0 votes
AnswersForum Post0 AnswersATM Currency Dispenser
- djvirus in India
Design and implement the ATM cash dispenser. User will request for some amount and you have to return the currency note and its count.
Example1: You have the following notes in ATM
2000-1, 500-5,200-4 and 100 - 4
Input - 1700
Output: 500-3,200-1
1: You have the following notes in ATM
2000-1, 500-1,200-4 and 100 - 0
Input - 600
Output:200-3| Report Duplicate | Flag | PURGE
Microsoft Java Experienced design
1 Answer ATM Currency Dispenser
Design and implement the ATM cash dispenser. User will request for some amount and you have to return the currency note and its count.
- djvirus March 23, 2022
Example1: You have the following notes in ATM
2000-1, 500-5,200-4 and 100 - 4
Input - 1700
Output: 500-3,200-1
1: You have the following notes in ATM
2000-1, 500-1,200-4 and 100 - 0
Input - 600
Output:200-3| Flag | PURGE
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
Because of quotes. You have to do validation for quotes also.i was not able to do validation for quotes because while processing string i was not able to find the way which tells quote is starting quote or end quote.
- djvirus January 22, 2017