ITS C hope it helps goo luck!
I don't think some will write the whole program here, but which part are you having trouble with?
In order to prevent ports that are serving network hosts from being considered as best paths, BPDU guard should be enabled to block bpdus.
<h3>What are BPDU used for?</h3>
A bridge protocol data unit (BPDU) is known to be a kind of a data message that is known to be often transmitted in a local area network to be able to know or find loops in that given network topologies.
Hence, in the case above, In order to prevent ports that are serving network hosts from being considered as best paths, BPDU guard should be enabled to block bpdus.
See full question below
. In order to prevent ports that are serving network hosts from being considered as best paths, what should be enabled to block BPDUs?
a. BPDU filter
b. BPDU guard
c. root guard
d. BPDU drop
Learn more about ports from
brainly.com/question/10097616
#SPJ1
Answer:
D
Explanation:
I think putting hyperlink in essential pages is a good idea as it may guide a user
Answer:
Here is the Python program:
COOKIES_PER_BAG = 40 #sets constant value for bag of cookies
SERVINGS_PER_BAG = 10 #sets constant value for serving in bag
CALORIES_PER_SERVING = 300 #sets constant value servings per bag
cookies = int(input("How many cookies did you eat? ")) #prompts user to input how many cookies he or she ate
totalCalories = cookies * (CALORIES_PER_SERVING / (COOKIES_PER_BAG / SERVINGS_PER_BAG)); #computes total calories consumed by user
print("Total calories consumed:",totalCalories) #displays the computed value of totalCalories consumed
Explanation:
The algorithm is:
- Start
- Declare constants COOKIES_PER_BAG, SERVINGS_PER_BAG and CALORIES_PER_SERVING
- Set COOKIES_PER_BAG to 40
- Set SERVINGS_PER_BAG to 10
- Set CALORIES_PER_SERVING to 300
- Input cookies
- Calculate totalCalories: totalCalories ← cookies * (CALORIES_PER_SERVING / (COOKIES_PER_BAG / SERVINGS_PER_BAG))
- Display totalCalories
I will explain the program with an example:
Lets say user enters 5 as cookies he or she ate so
cookies = 5
Now total calories are computed as:
totalCalories = cookies * (CALORIES_PER_SERVING / (COOKIES_PER_BAG / SERVINGS_PER_BAG));
This becomes:
totalCalories = 5 * (300/40/10)
totalCalories = 5 * (300/4)
totalCalories = 5 * 75
totalCalories = 375
The screenshot of program along with its output is attached.