Susan plans on studying four different subjects (Math, Scien…

Susan plans on studying four different subjects (Math, Science, French, and Social Studies) over the summer. The summer is 100 days long, and Susan will study one of the four subjects each day. A schedule consists of a plan for which subject she will study on each day. (10 points)   a) How many ways can Susan plan her schedule if there are no restrictions on the number of days she studies each of the four subjects? [5 points]   b) How many ways can Susan plan her schedule if she decides that the number of days she studies each subject will be the same? [5 points]

A tree farmer plants five new trees on his farm at the end o…

A tree farmer plants five new trees on his farm at the end of each month. Let an​ denote the total number of trees he has after n months. Initially, he has a0=50 trees. a) What is a10​? [4 Points]   b) If the farmer spends $3 per month to maintain each tree, what is the total maintenance cost he has paid after 1 year (12 months)? Provide the closed-form mathematical expression for this amount (do not calculate the actual value).(Assume that he starts maintaining trees at the beginning of each month and includes all existing trees for that month.) [6 points]  

Suppose you have a sorted array of integers (3,7,12,15,18,21…

Suppose you have a sorted array of integers (3,7,12,15,18,21,27,33,39,42,50) and you want to implement the binary search algorithm given below to find the index of a target value x. For each target value x given below, give the values for variables low and high for each call to Binary Search. Then give the final return value.    a)  x=12 b) x = 32