Declared the totalAmount and averageSpending variables and printed them to the console.