Answer: a)Safety stock
Explanation: Safety stock is the collection of item or goods of any particular company so that they do not face out of stock situation.This stocks helps in the situation when the sale of goods are more than expected rate and additional stock is not present to be used in the uncertain situation.
Safety stock acts as the insurance because of its extra inventory in the uncertain situation.Other options are incorrect because stock-out means the stock of items getting finished, continuous replenishment is notification about the sales on daily basis and restocking is the refilling of the items in stock upon the request when the goods get out of stock.Thus the correct option is option(a)
Answer:
def calculate_range(temperature):
high = temperature + 20
low = temperature - 30
return low, high
today_temp = 70
today_low , today_high = calculate_range(today_temp)
print('Today\'s low = {}\nToday\'s high = {}'.format(today_low, today_high))
Explanation:
The programming language used is python.
The code define the calculate_range function that takes only one parameter temperature.
The function evaluates both high and low temperature and returns a tuple containing both values.
we test the function by creating a temperature variable for today and passing it to the function and this in turn returns two values today_low and today_high.
Your question specifies no need for indexing.
There is a really simple way of unpacking tuple objects, which is used to assign the values returned by the function to separate variables.
<em>today_low , today_high = calculate_range(today_temp) </em>
Finally, today_low and today_high is printed to the screen.
check the picture to see results of running the code.
Answer:
The answer to this question is given below in the explanation section.
Explanation:
The correct matching answers for this question are given below. In this question, it is asked to identify the data type of the given scenario.
Integer short and integer long data type:
These data types can hold whole positive and negative numbers. however, you can also store positive and negative values in float and double data type also.
Boolean data type:
Boolean data type usually stores true or false values such as yer or no, true or false etc. It stores binary values i.e 1 or 0.
Float and Double data type: float and double data type can store positive and negative numbers with decimals. But, the float data type can store 4 bytes of data and sufficient for storing 7 decimal digits. while double data type has a size of 8 bytes of data and sufficient for storing 15 decimal digits.
However, for the given scenario in the question, the float data type can accomodate these values easily.