Question help

Joined
Feb 15, 2023
Messages
2
Reaction score
0
The train passengers enter the station they want to go to, and the app tells them the nearest trains.
Define variables such as: leave, platform, arrive, and station.
The variables will change according to the destination of The passenger.
Please note, the train has 50 passengers, So Use a nested loop.

The nearest trains:
station A, leaves 14:05, platform 3, arrives 16:15
station A, leaves 14:09, platform 2, arrives 15:39
station A, leaves 14:35, platform 3, arrives 16:45
station B, leaves 14:51, platform 1, arrives 17:01
station c, leaves 14:05, platform 3, arrives 14:22
station C, leaves 14:35, platform 3, arrives 14:52
station D, leaves 14:16, platform 1, arrives 15:31
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top