A developer working on a time management application wants to make total hours for each timecard available to application users. A timecard entry has a Master-Detail relationship to a timecard. Which approach should the developer use to accomplish this declaratively?
(A) A roll-up Summary field on the Timecard Object that calculates the total hours fromtimecard entries for that timecard
(B) A process builder process that updates a field on the timecard when a timecard entry iscreated
(C) An apex trigger that sues an aggregate query to calculate the hours for a given timecard andstores it in a custom field.
(D) A visualforce page that calculates the total number of hours for a timecard and displays it onthe page.