B the services provided by the provider
Answer:
see explaination
Explanation:
#include<stdio.h>
/* Your solution goes here */
//Impllementation of SwapArrayEnds method
void SwapArrayEnds(int sortArray[],int SORT_ARR_SIZE){
//Declare tempVariable as integer type
int tempVariable;
if(SORT_ARR_SIZE > 1){
tempVariable = sortArray[0];
sortArray[0] = sortArray[SORT_ARR_SIZE-1];
sortArray[SORT_ARR_SIZE-1] = tempVariable;
}
}
int main(void) {
const int SORT_ARR_SIZE = 4;
int sortArray[SORT_ARR_SIZE];
int i = 0;
sortArray[0] = 10;
sortArray[1] = 20;
sortArray[2] = 30;
sortArray[3] = 40;
SwapArrayEnds(sortArray, SORT_ARR_SIZE);
for (i = 0; i < SORT_ARR_SIZE; ++i) {
printf("%d ", sortArray[i]);
}
printf("\n");
return 0;
}
Please go to attachment for the program screenshot and output
answer:
1.The program comes to a line of code containing a "function call".
2.The program enters the function (starts at the first line in the function code).
3.All instructions inside of the function are executed from top to bottom.
4.The program leaves the function and goes back to where it started from.
5.Any data computed and RETURNED by the function is used in place of the function in the original line of code.
Answer:
current_price = int(input("Enter current price: "))
last_months_price = int(input("Enter last month's price: "))
print("This house is $%d. The change is a $%d since last month." % (current_price, current_price - last_months_price))
print("The estimated monthly mortgage is $%d." % int(current_price*0.045/12))
Explanation:
- Ask the user to enter the values for <em>current_price</em> and <em>last_months_price</em>.
- Print the current price.
- Calculate change from last month (current_price - last_months_price) and print it.
- Calculate the mortgage (using given formula (current_price * 0.051) / 12) and print it.