Answer: Zone
Explanation:
The zone pricing is refers to the process which establishing a price for the various types of services and products that relying upon where individuals get them.
In the zone pricing process event, if a customer purchases something from the zone A and, at that point something very similar in Zone B, then they need to pay various costs.
An organization and company need to use the zone pricing for paying the cost for the transportation. it is also used in organization for the pricing strategies.
the following C++ function will return true if the given non - negative number is multiple of 5 or 3 else it will return false.
bool function( int x ){
// variable to check if it is multiple of both or not
int number =0;
if(3%x == 0){
number++;
}
if(5%x == 0){
number++;
}
// Now returning by deciding
if( number <=1)
return true;
else
return false
}
Answer:
#here is code in Python.
#read the value n from user
n=int(input("enter the value of n:"))
#variable to store the total sum
sum_n=0
for i in range(1,n+1):
# find the sum of series
sum_n=sum_n+1/i
#print the sum
print("sum of the series is: ",sum_n)
Explanation:
Read the value of n from user. Create and initialize a variable sum_n with 0. Run a for loop to calculate sum.Initially sum_n is 0, then for value of i=1 1/i will be added to the sum_n.Then in next iteration for i=1, 1/2 added to sum_n. Similarly loop will run util i equals to n.Then sum_n will store the sum of the
series.
Output:
enter the value of n:5
sum of the series is: 2.283333333333333
Input statements allow the user to enter data that a program uses to perform necessary computations. Users enter the data when they <u>encounter the statements like the scanf() or gets() functions in the program.</u>
<u>Explanation:</u>
The scanf() is the function that is used to take inputs from the user with the help of the standard input device,i.e, the keyboard.
scanf() function is capable of taking any data type as an input, though it has to be specified first like %d for integers, %s for strings and %f for floating-point type. The gets() function can only take a string as an input.
Answer:
description=open_file.read(12)
Explanation:
A programming language in computer is a set formal languages that comprises a set of instruction which produce various kinds of output. It is used ti implement algorithms in computer programming.
In the context, description=open_file.read(12) is the statement given to the computer as input which takes a variable named as open_file containing a file object and which reads the next 12 characters into the variable named as description.