Choosing how to earn college credit? CLEP vs AP guide
| preferred AP College board partner for AP classes
hard

Transit Service Module Boundary

Mark
< Prev
Next >

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

A module that takes the user’s starting and ending GPS coordinates and returns the final fare.

B

A module that takes the calculated distance and the user’s rider category as inputs and returns the final fare.

C

A module that handles all user input, calculates the distance, determines the fare, and displays the result.

D

A module that takes the user’s rider category and returns the base fare, leaving the main program to apply distance multipliers.

Hint
Did You Know?
Explain Why
Explain All Answers
Check Answer
Show Correct Answer
Report Question

Question Leaderboard

Not enough data yet to show leaderboard.

No comments yet. Be the first to comment!

AI Tutor

How can I help?

APFIVE © 2020.
Email: apfive@apfive.org|Instagram: @_apfive_|Privacy Policy|