The program is an illustration of functions.
<h3>What are functions?</h3>
Functions are set of program statements that are executed when called or evoked.
<h3>The main program</h3>
The function written in Python, where comments are used to explain each line of the program is as follows:
#This defines the function
def posodd_number_filter(num):
#This checks if the function is odd and positive
if num >0 and num%2 ==1:
#If yes, this returns Accepted
return "Accepted"
#If no, this returns Rejected
return "Rejected"
Read more about functions at:
brainly.com/question/14284563
Answer:
Here is the Python program:
small_container = int(input("Enter the number of small containers you recycled?"))
large_container = int(input("Enter the number of large containers you recycled?"))
refund = (small_container * 0.10) + (large_container * 0.25)
print("The total refund for returning the containers is $" + "{0:.2f}".format(float(refund)))
Explanation:
The program first prompts the user to enter the number of small containers. The input value is stored in an integer type variable small_container. The input is basically an integer value.
The program then prompts the user to enter the number of large containers. The input value is stored in an integer type variable large_container. The input is basically an integer value.
refund = (small_container * 0.10) + (large_container * 0.25) This statement computers the refund that will be recieved for returning the small and larger containers. The small containers holding one litre or less have a $0.10 deposit so the number of small containers is multiplied by 0.10. The large containers holding more than one litre have a $0.25 deposit so the number of large containers is multiplied by 0.25. Now both of these calculated deposits of containers of each side are added to return the refund that will be received for returning these containers. This whole computation is stored in refund variable.
print("The total refund for returning the containers is $" + "{0:.2f}".format(float(refund))) This print statement displays the refund in the format given in the question. The output includes a $ sign and displays exactly two decimal places by using {0:.2f} where .2f means 2 decimal places after the decimal point. Then the output is represented in floating point number using. format(float) is used to specify the output type as float to display a floating point refund value up to 2 decimal places.
Answer:
B. Assign roles and privileges to users so that only job-relevant data is accessible to the user.
Explanation:
Certain departments will require certain information for certain processes. It is not recommendable for every user to access every information of the company as it may reveal vital information.
Hence, every role and department should be given certain privileges to information according to the tasks and needs of the role.
The reason being is because of your search history. Google will remember everything you like to watch, look, play or buy things on the computer or any device with internet. Since you are interested in the things you like to do, you're computer will remember this and will display Ads made by companies, or people, which possibly may be a scam, or may give a virus. I would advise to avoid these things as much as you can.