Transit Service Module Boundary
A transit information service calculates the fare for a trip based on the distance traveled and the user’s rider category (e.g., adult, senior, student).
The development team wants to create a separate module for fare calculation to simplify testing and future updates. The main program will handle user input, GPS tracking, and displaying the final cost.
Which of the following module boundaries best meets the stated program requirements?
A module that takes the user’s starting and ending GPS coordinates and returns the final fare.
A module that takes the calculated distance and the user’s rider category as inputs and returns the final fare.
A module that handles all user input, calculates the distance, determines the fare, and displays the result.
A module that takes the user’s rider category and returns the base fare, leaving the main program to apply distance multipliers.
Question Leaderboard
Not enough data yet to show leaderboard.
