I am sorry again I have exam tomorrow this program like that exam questions I think so so I need to learn how I can do it program if someone help me and thank you so much

Question:Train stations often provide ticket machines that print a ticket when a customer inserts the correct money for their fare.Ticket machines works by customers inserting money into them,and then requesting ticket to be printed.A machine keeps a running total of the amount of money it has collected throughout its operation.In real life,It is of the the case that a ticket machine offers a selection of different types of ticket from which customers choose the one they want.

If this is an exam, I assume your teacher has taught you something on how to do this. Try coding first. No one here will do it for you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.