Answer:
The value of myArray2[index2] when index1 = 12 is 30
Explanation:
In the source code, the formula for myArray2[index2] is;
myArray2[index2] = index2 + index3 + myArray1[index1],
myArray1[index1] = index1 * 2,
index2 = index % 10 (equal to the remainder) and
index3 = index % 8
When index1 increases to 12 in the for-loop statement, the "myArray1[index1]" is equal to 24, index2 is equal to 2 and index3 is 4. The total sum is equal to 30 and assigned to "myArray2[index2]".
Answer:
<h2> <u>NETWORK</u> <u>TOPOLOGY</u> .</h2>
This tefers to how nodes are connected to the network.
Types of topology.
- Physical topology.
- Logical topology.
In physical topology,nodes are connected physically using wires(cables).
Types of physical topology include:
- Bus topology
- Tree topology
- Hybrid topology
- Star topology
- Ring topology.
Hope it helps you,any question so far...comment !!!
Answer:
The correct loop is as follows:
for year in range(starting_tuitionYear, ending_tuitionYear, increment):
tuition = startingTuition + rate * startingTuition
startingTuition = tuition
print('Tuition for the year of ' + str(year)+ ' is ' + str(tuition));
Explanation:
Required
The correction to the attached program
Some variables are not needed; so, I've removed the redundant variables.
The main error in the program is in the loop;
After the tuition for each year has been calculated, the startTuition of the next year must be set to the current tuition
<em>See attachment for complete program</em>
I think it’s a form,if wrong please don’t be mad