Question

Imagine you had to program an ATM at a bank. Assuming the ATM has a finite...

Imagine you had to program an ATM at a bank. Assuming the ATM has a finite amount of cash to dispense, which operation would be ideal to handle transactions?

1.Queues/FIFO

2.Stacks/LIFO

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Imagine you had to program an ATM at a bank. Assuming the ATM has a finite amount of cash to dispense, which operation would be ideal to handle transactions?
1.Queues/FIFO
2.Stacks/LIFO

Queues/LIFO (Last in First out) will be the ideal for ATM.

as it statetd that atm has limited cash so cash will withdrawn basis on First come first serve.
at end of the money those will be left who come last

Stacks is not ideal as it support Last in First out so who will come last will get cash and it not an ideal.

Add a comment
Know the answer?
Add Answer to:
Imagine you had to program an ATM at a bank. Assuming the ATM has a finite...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • The Brick Company had cash sales of $229,900 for Year 1, its first year of operation....

    The Brick Company had cash sales of $229,900 for Year 1, its first year of operation. On April 2, the company purchased 226 units of Inventory at $175 per unit. On September 1, an additional 170 units were purchased for $193 per unit. The company had 62 units on hand at the end of the year. The company's income tax rate is 40 percent. All transactions are cash transactions. Required a. The preceding paragraph describes five accounting events: (1) a...

  • You are to write a Java program using the following instructions to build a bank-ATM server...

    You are to write a Java program using the following instructions to build a bank-ATM server system with sockets. A bank holds accounts that can have deposits, withdrawals, or retrievals of balance. The bank server provides the account for transactions when a client uses and ATM machine. The ATM asks for the type of transaction and the amount (if needed), then creates a socket connection to the bank to send the transaction for processing. The bank performs the transaction on...

  • The Brick Company had cash sales of $229,400 for Year 1, its first year of operation. On April 2, the company pu...

    The Brick Company had cash sales of $229,400 for Year 1, its first year of operation. On April 2, the company purchased 208 units of inventory at $195 per unit. On September 1, an additional 156 units were purchased for $215 per unit. The company had 36 units on hand at the end of the year. The company's income tax rate is 40 percent. All transactions are cash transactions. Required a. The preceding paragraph describes five accounting events: (1) a...

  • The Brick Company had cash sales of $222,400 for Year 1, its first year of operation....

    The Brick Company had cash sales of $222,400 for Year 1, its first year of operation. On April 2, the company purchased 206 units of inventory at $170 per unit. On September 1, an additional 155 units were purchased for $187 per unit. The company had 43 units on hand at the end of the year. The company's income tax rate is 40 percent. All transactions are cash transactions. Required a. The preceding paragraph describes five accounting events: (1) a...

  • The Brick Company had cash sales of $229,600 for Year 1, its first year of operation. On April 2, the company purchased...

    The Brick Company had cash sales of $229,600 for Year 1, its first year of operation. On April 2, the company purchased 230 units of inventory at $245 per unit. On September 1, an additional 173 units were purchased for $270 per unit. The company had 65 units on hand at the end of the year. The company's income tax rate is 40 percent. All transactions are cash transactions. Required a. The preceding paragraph describes five accounting events: (1) a...

  • The Shirt Shop had the following transactions for T-shirts for Year 1, its first year of...

    The Shirt Shop had the following transactions for T-shirts for Year 1, its first year of operations: Jan. 20 Purchased 480 units @ $ 9 = $ 4,320 Apr. 21 Purchased 280 units @ $ 11 = 3,080 July 25 Purchased 360 units @ $ 14 = 5,040 Sept. 19 Purchased 170 units @ $ 16 = 2,720 During the year, The Shirt Shop sold 1,050 T-shirts for $25 each. A. Compute the amount of ending inventory The Shirt Shop...

  • The Shirt Shop had the following transactions for T-shirts for Year 1, its first year of...

    The Shirt Shop had the following transactions for T-shirts for Year 1, its first year of operations: = = Jan. 20 Apr. 21 July 25 Sept. 19 Purchased Purchased Purchased Purchased 440 units 130 units 240 units 70 units @ @ @ @ $ 9 $11 $12 $13 $3,960 1,430 2,880 910 = = During the year, The Shirt Shop sold 710 T-shirts for $18 each. Required a. Compute the amount of ending inventory The Shirt Shop would report on...

  • The Shirt Shop had the following transactions for T-shirts for Year 1, its first year of...

    The Shirt Shop had the following transactions for T-shirts for Year 1, its first year of operations: Jan. 20 Purchased Apr. 21 Purchased July 25 Purchased Sept. 19 Purchased 400 units 200 unita 280 units 90 units @ @ @ $8 - $3,200 $10 = 2,000 $13 3,640 $15 - 1,350 During the year, The Shirt Shop sold 810 T-shirts for $20 each. Required a. Compute the amount of ending inventory The Shirt Shop would report on the balance sheet,...

  • The Shirt Shop had the following transactions for T-shirts for 2018, its first year of operations:...

    The Shirt Shop had the following transactions for T-shirts for 2018, its first year of operations: Jan. 20 Purchased 490 units @ $ 8 = $ 3,920 Apr. 21 Purchased 110 units @ $ 10 = 1,100 July 25 Purchased 250 units @ $ 12 = 3,000 Sept. 19 Purchased 90 units @ $ 13 = 1,170 During the year, The Shirt Shop sold 760 T-shirts for $18 each. Required Compute the amount of ending inventory The Shirt Shop would...

  • JUNS Displayed Dew. The Shirt Shop had the following transactions for T-shirts for 2018, its first...

    JUNS Displayed Dew. The Shirt Shop had the following transactions for T-shirts for 2018, its first year of operations: Jan. 20Purchased Apr. 21 Purchased July 25 Purchased Sept. 19 Purchased 400 units 200 units 280 units 90 units EDED $ 8 - $10 = $13 = $15 = $3,200 2,000 3,640 1,350 During the year. The Shirt Shop sold 810 T-shirts for $20 each. Exercise 5-20 Part a Required a. Compute the amount of ending inventory The Shift Shop would...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT