Answer:
a) 
Now we can calculate the p value since we have a right tailed test the p values is given by:

And since the
we have enough evidence to FAIL to reject the null hypothesis. So then there is not evidence to support the claim that the mean is greater than 40.
b) 
c) 
d) We want to ensure that the probability of error type II not exceeds 0.1, and for this case we can use the following formula:

The true mean for this case is
and we want
so then
represent the value on the normal standard distribution that accumulates 0.1 of the area on the right tail. And we can replace like this:

e) For this case we can calculate a one sided confidence interval given by:

And if we replace we got:

And the confidence interval would be 
And since 40 is on the confidence interval we don't have enough evidence to reject the null hypothesis on this case.
Step-by-step explanation:
Part a
We have the following data given:
represent the sample size
represent the sample mean
represent the population deviation.
We want to test the following hypothesis:
Null: 
Alternative:
The significance level provided was 
The statistic for this case since we have the population deviation is given by:

If we replace the values given we got:

Now we can calculate the p value since we have a right tailed test the p values is given by:

And since the
we have enough evidence to FAIL to reject the null hypothesis. So then there is not evidence to support the claim that the mean is greater than 40.
Part b
The p value on this case is given by:

Part c
For this case the probability of type II error is defined as the probability of incorrectly retaining the null hypothesis and is defined like this:

Where
represent the critical value for the test that accumulates 0.05 of the area on the right tail of the normal standard distribution.
The true mean on this case is assumed
, so then we can replace like this:

Part d
We want to ensure that the probability of error type II not exceeds 0.1, and for this case we can use the following formula:

The ture mean for this case is
and we want
so then
represent the value on the normal standard distribution that accumulates 0.1 of the area on the right tail. And we can replace like this:

Part e
For this case we can calculate a one sided confidence interval given by:

And if we replace we got:

And the confidence interval would be 
And since 40 is on the confidence interval we don't have enough evidence to reject the null hypothesis on this case.