Answer:
// program in Python to check perfect number
#function to find number is perfect or not
def is_Perfect_Number(n):
#total variable
tot = 1
i = 2
#sum of all divisor of number
while i*i<=n:
if n%i==0:
tot = tot + i + n/i
if tot == n and n != 1:
return 1
i = i+1
return 0
#read until user enter a perfect number
while True:
#read integer
num = int(input("Input an integer: "))
#call the function
if(is_Perfect_Number(num)):
print(num,"is perfect number")
#if perfect number break
break
else:
print(num,"is not a perfect number")
#ask again
print("try again.")
Explanation:
Read number from user and then call the function is_Perfect_Number() with parameter "num".This will find the sum of all divisor of number.If sum is equal to number then it will return 1 else return 0.If the number is not perfect then it will again ask to enter a number until user enter a perfect number.
Output:
Input an integer: 24
24 is not a perfect number
try again.
Input an integer: 28
28 is perfect number
In order to derive the probability of stock outs, divide the total value of the stock outs by the number of requests demanded. The resulting figure must then be multiplied by 100.
<h3>What is a stock out?</h3>
In business, a stock out refers to a condition where in a certain item or items are no longer available in stock.
The formula can be sated simply as:
Probability of Stock outs = (No of stock outs/ number of demand requests) x 100
Thus Number of Stock outs = Total probability of stock outs * total number of demand requests.
<h3>What is the formula for the Total Cost?</h3>
The formula for Total Cost is given as:
Total Fixed Cost + Total Variable Cost;
TC = TFC + TVC
Learn more about stock outs at:
brainly.com/question/16209393
#SPJ1
Light Amplification by Stimulated Emission of Radiation
Answer:
the author makes an emotional connection between you and the character
Explanation:
short version:you feel the characters emotion