A factory produces 50 widgets per hour. If the factory operates 8 hours a day, how many widgets can it produce in a week (7 days)? Additionally, if each widget is sold for $5, what is the total revenue generated from selling all the widgets produced in one week? Let's think step by step and output the final answer within \boxed{}.
user