The number N of cars produced at a certain factory in 1 day after t hours of operation is given by N(t)=700t-10t^2, 0(less than or equal to) t (less than or equal to) 10. If the cost C (in dollars) of producing N cars is C(N)=30,000+5000N, find the cost of C as a function of the time of operation of the factory.