<u>Answer:</u>
When leased computing resources can be increased or decreased dynamically, they are said to be Elastic resources.
<u>Explanation</u>:
Elastic resources are the resources that are leased and they can be increased or decreased based on the number of users that are using the resource simultaneously. Popular example for elastic resource is Elastic Search EC2, where 2 to 4 servers are allocated to handle the service requests dynamically depending upon the usage.
Cloud computing businesses like Google and AWS Cloud depends on elastic resources.
Answer and Explanation:
#take input from user
n = int(input("Enter any number: "))
#sum variable to store sum
sum=0
#condition to exit from loop
while n!=-999:
#adding entered number in sum variable
sum=sum+n
#take input from user
n = int(input("Enter any number : "))
#print the sum
print("sum =",sum)
output:
Enter any number: 10
Enter any number : 100
Enter any number : -999
sum = 110
Answer:
he played 13,500 games and has 37 percent win rate
Answer:
- public class Main {
-
- public static void main (String [] args) {
- int[][] myArray = {{1,5,6}, {7, 9, 2}};
- fixArray(myArray, 1, 2, 12);
-
- System.out.println(myArray[1][2]);
- }
-
-
- private static void fixArray(int[][] array, int row, int col, int value){
- array[row][col] = value;
- }
- }
Explanation:
The solution code is written in Java.
Firstly, create the method fixArray with that takes four inputs, array, row, col and value (Line 11). Within the method body, use row and col as index to address a particular element from array and set the input value to it (Line 12).
Next, we test the method in the main program using a sample array (Line 4) and we try to change the row-1 and col-2 element from 2 to 12 (Line 5).
The print statement in Line 7 will display 12 in console.