Answer:
The solution code is written in Python
- input_numbers = [5, 7, 1, 12, 9, 34, 22, 97, 112]
-
- evenVec = []
- oddVec = []
-
- for x in input_numbers:
- if x % 2 == 0:
- evenVec.append(x)
- else:
- oddVec.append(x)
-
- num2D = [evenVec, oddVec]
-
- print(num2D)
Explanation:
Let's create a sample input numbers that mixed with odd and even values (Line 1)
Next, create evenVec and oddVec variables to hold the even and odd numbers from the input_numbers (Line 3 - 4).
Create a for-loop to traverse through the input_numbers and check if current number, x, is divisible by 2 using the modulus operator %. If so, x % 2 will be evaluated to 0 and append the current x to evenVec or else append to oddVec (Line 6 - 10).
Next, create a variable num2D to hold the two dimensional arrays with first column is evenVec and second column is oddVec (Line 12).
When printing the num2D (Line 14), we shall get
[[12, 34, 22, 112], [5, 7, 1, 9, 97]]
Solution:
initial = float(eval(input('Enter the monthly saving amount: ')))
x = (1 + 0.00417)
month_one = initial * x
month_two = (initial + month_one) * x
month_three = (initial + month_two) * x
month_four = (initial + month_three) * x
month_five = (initial + month_four) * x
month_six = (initial + month_five) * x
print('The sixth month value is: '+str(month_six))
Don't forget the saving amount, and initialize the balance with that amount. Inside the loop, work out and add the interest and then add the saving amount for the next month.
balance = 801
for month in range(6):
balance = balance * (1.00417)
print(balance)
Complex scientific research is usually done using A Mainframe Computer.
<h3>What is a Mainframes computer?</h3>
Mainframes are a type of computer that generally are comprehended for their large size, amount of storage, processing power and high level of reliability. They are primarily used by large organizations for mission-critical applications requiring high volumes of data processing. In general, there are a few characteristics of mainframes that are common among all mainframe vendors:
Nearly all mainframes have the ability to run (or host) multiple operating systems. Mainframes can add or hot swap system capacity without disruption. Mainframes are designed to handle very high volume input and output (I/O) and emphasize throughput computing. A single mainframe can replace dozens or even hundreds of smaller servers.
Thus, Mainframe Computer is the answer.
To learn more about Mainframe Computer click here:
brainly.com/question/14480599
#SPJ1