A bakery tracks the daily sales of their signature chocolate cake over a week (7 days). The sales in number of cakes are as follows: 34, 28, 45, 50, 42, 38, and 31. What is the average number of cakes sold per day during this week? Round your answer to the nearest tenth. Let's think step by step and output the final answer within \boxed{}.
user