# Arup Guha
# 6/16/2025
# Code for SI@UCF OOP Python Quiz #1

def q1():

    totalsec = int(input("How many seconds for the run?\n"))
    numMin = totalsec//60
    numSec = totalsec%60
    print("Your run took",numMin,"minutes and", numSec,"seconds")

def q2():
    a = int(input("What is the first term of your arithmetic sequence?\n"))
    d = int(input("What is the common difference of your arithmetic sequence?\n"))
    n = int(input("How many terms I your arithmetic sequence?\n"))

    total = 0
    
    for i in range(n):
        total += a
        a += d

    print("The sum of the terms in your arithmetic sequence is", total)

q1()
q2()

    
