#include &lt;iostream&gt;    using namespace std;    struct Time &#123;        int hours;        int minutes;        int seconds;    &#125;;    int toSeconds&#40;Time now&#41;;    int main&#40;&#41;    &#123;        Time t;        t.hours = 5;        t.minutes = 30;        t.seconds = 45;        cout &lt;&lt; &quot;Total seconds: &quot; &lt;&lt; toSeconds&#40;t&#41; &lt;&lt; endl;        return 0;    &#125;    int toSeconds&#40;Time now&#41;    &#123;        return 3600 * now.hours + 60 * now.minutes + now.seconds;    &#125;
A. 19845
B. 20000
C. 15000
D. 19844
Answer:A
#include &lt;iostream&gt;    using namespace std;    struct Time &#123;        int hours;        int minutes;        int seconds;    &#125;;    int toSeconds&#40;Time now&#41;;    int main&#40;&#41;    &#123;        Time t;        t.hours = 5;        t.minutes = 30;        t.seconds = 45;        cout &lt;&lt; &quot;Total seconds: &quot; &lt;&lt; toSeconds&#40;t&#41; &lt;&lt; endl;        return 0;    &#125;    int toSeconds&#40;Time now&#41;    &#123;        return 3600 * now.hours + 60 * now.minutes + now.seconds;    &#125;
A. 19845 B. 20000 C. 15000 D. 19844
Explanation:In this program, we are just converting the given hours and minutes into seconds.