COSC160 MIDTERM 9:30-10:45 AM Answer ALL (100 Points) Name: _____________________________________________________ 1. (5 points each) Give running time analysis of the following program segments in terms of n. Accurate answer gets full points. a. for (i = n - log n ; i < n*n; i++) cout << i; b. for (i = 0; i