有人可以幫忙 解答這5題嗎??
學校作業
1. Create an array containing numbers between 1 and 100 randomly and its length will be one
hundred. Please note you are not supposed to use range and shuffle functions in your
answer.
2. Answers below functions with above array in question 1.
a) Remove(int x) : Remove elements which contain ‘x’. e.g. [1, 2, 3, 4, 5] Remove(3) => [1, 2, 4,
5]
b) Max() : Return most biggest number in the Array. [1, 2, 3, 4, 5] => 5
Please note you are not supposed to use sort and rsort functions in your answer.
c) Numerous() : Return the most numerous number in the Array. [1, 2, 3, 3, 4]=> 3
Please note you are not supposed to use array_count_values function in your answer.
d) Shuffle(), Shuffle the Array. [1, 2, 3, 4, 5] => [2, 3, 1, 4, 5]
Please note you are not supposed to use Shuffle function in your answer.