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.
0
Expert's answer

Answer in progress...

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 the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS