65 767
Assignments Done
99,4%
Successfully Done
In October 2018

Answer to Question #51198 in C for Anitha Reddy

Question #51198
Q. Write a C program that uses queue to simulate customers arriving at a bank. Just before opening, customers arrive prepared to do business at the bank, and they get in line. The tellers come to their station, and begin to service these customers one at a time.

Create a structure that represents a customer and his transaction that has the following properties:
Name, bakingActivities(deposit, withdrawl), accountNumber, and amount.

Provide the following operations:
Enqueue(), which means get into the line.
Dequeue(), which means take the first object from the queue. Prints out customer’s name followed by “served” string when dequeue a customer.
Count(), which will tell how many items are in the queue.
Expert's answer

Not answered

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions