Answer:
The solution is implemented using C++
int getRowTotal(int a[][5], int row) {
int sum = 0;
for(int i =0;i<5;i++)
{
sum += a[row][i];
}
return sum;
}
Explanation:
This defines the getRow function and the parameters are arr (the 2 d array) and row and integer variable
int getRowTotal(int arr[][5], int row) {
This defines and initializes sum to 0
int sum = 0;
This iterates through the row and adds the row items
<em> for(int i =0;i<5;i++) {
</em>
<em> sum += arr[row][i];
</em>
<em> }
</em>
This returns the calculated sum
return sum;
}
Those are referred to peripherals.
Answer:
Resource Polling is the correct answer to the given question .
Explanation:
The Resource pooling is used in cloud computing frameworks that describe a situation where companies offer temporary and flexible resources to different clients .In the resource polling the programs can be changed to fit the needs of each client without making any adjustments visible to the client.
The main function of resource pooling that it grants a service provider the opportunity to dynamically allocate common physical resources to different clients based on the utilization criteria of each client.
Answer:
a=input("Amount in pennies")
b=int(a)
dollars=0
dimes= 0
quarters=0
nickels=0
pennies = 0
dollars = int(b/100)
b= b- dollars *100
quarters=int(b/25)
b=b-quarters*25
dimes = int(b/10)
b = b -dimes*10
nickels=int(b/5)
b=b - nickels * 5
pennies = b
print(dollars)
print(dimes)
print(nickels)
print(pennies)
Explanation:
The required program is in answer section. Note, the amount is entered in pennies.
Answer:
The first line has a spelling error