Answer:
1. Input array of 100 numbers
mx = 0
for (int i = 0; i < 100; i++)
if (arr[i] > mx)
mx = arr[i]
Output mx
2. Input array of 100 numbers
mx = 0
for (int i = 0; i < 100; i++)
if (arr[i] > mx)
mx = arr[i]
mx = mx * 0.9
3. Input three numbers
if(firstNumber > secondNumber) {
swap(firstNumber, secondNumber)
}
if (firstNumber > thirdNumber) {
swap(firstNumber, thirdNumber)
}
if (secondNumber > thirdNumber) {
swap(secondNumber, thirdNumber)
}
output firstNumber, secondNumber, thirdNumber
Explanation:
I don't quite understand what you are asking but if you are asking if word, spelling and grammar checkers are always 100% accurate then that is false :)
Answer:
Answer is in the provided screenshot! This was a lot of fun to make!
Explanation:
We need to create a new Array which has to be the size of amount * original - as we now that we are going to have that many elements. Then we just iterate through all the values of the new array and set them equal to each of the elements in order.
Ignore the code in my main function, this was to print to the terminal the working code - as you can see from the output at the bottom!
Answer:
-8 and 735
Explanation:
Since the sea is a body of water (fluid) it takes the same properties as a fluid does which means filling an area and finding a leveled point. This is why we use the sea as a starting elevation point for Earth's land and it is given a numerical value of 0. Since it starts at 0 any land above Sea Level is in the positives while land below Sea Level is in the negatives. Therefore Since New Orleans is 8 feet below sea level its numerical value elevation is -8. The highest point in Chicago is 735 feet above sea level which makes its numerical value 735
Answer:
identifying/acknowledging
Explanation: