The answer is B Okay good luck and dont...mess it up
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:
=A1<=A14
Explanation:
complex formula in excel is which contain more than 1 mathematical operators . An order of mathematical operations are important to understand
there are different type of operators
- Arithmetic operators
- Comparison operators
- Text operators
- Operators reference
here Comparison operator is an example of complex formula . Comparison operator returns TRUE/FALSE it is use to compare two values
= Equal to
< Less than
> Greater than
>= Greater than or Equal to
<= Less than or Equal to
Protocal
I need to make this 20 charaters so ye
(Disclaimer: I am not a professional, so it might not be the most concise answer possible, but I did run the Python script and it works)
Answer:
user_input = input("What food do you have in your refrigerator? ").lower()
count = 0
while True:
if user_input != 'apples':
count += 1
print(f'You have a {user_input} with a total of {count} food(s)\n')
user_input = input("What food do you have in your refrigerator? ")
else:
break