Function Name Spreadingfire Parameters Square Miles Fire Int Endangerment Limit Int Retur Q43903268


Function name: spreadingFire (). Parameters: square miles on fire (int), endangerment limit (int) Returns: string Description: More fires are starting to pop up in the forests of California. Given the square miles of fire and the endangerment limit (the number of square miles that are on fire that poses risk), write a function to determine which kind of extinguishing method should be employed. For every 100 square miles over the endangerment limit, the danger level increases by 1. For each case, return the danger level and extinguishing method. If the danger level is between 1 and 4, the extinguishing method is “Firebreak and Airdrop.” If the danger level surpasses 4, return “Evacuate and Full Protocol”. If the square miles of fire is less than 100 miles over the endangerment level, return “Proceed with caution”. Note: Danger Level does not go below 0. For example, if a fire had burned 250 square miles in a forest with a 50 square mile endangerment level, the danger level would be 2, and the function would return “Danger Level: 2; Firebreak and Airdrop”. Test Cases: >>> spreadingFire (250, 50) ‘Danger Level: 2; Firebreak and Airdrop’ >>> spreadingFire(775, 35) ‘Danger Level: 7; Evacuate and Full Protocol’ Show transcribed image text Function name: spreadingFire (). Parameters: square miles on fire (int), endangerment limit (int) Returns: string Description: More fires are starting to pop up in the forests of California. Given the square miles of fire and the endangerment limit (the number of square miles that are on fire that poses risk), write a function to determine which kind of extinguishing method should be employed. For every 100 square miles over the endangerment limit, the danger level increases by 1. For each case, return the danger level and extinguishing method. If the danger level is between 1 and 4, the extinguishing method is “Firebreak and Airdrop.” If the danger level surpasses 4, return “Evacuate and Full Protocol”. If the square miles of fire is less than 100 miles over the endangerment level, return “Proceed with caution”. Note: Danger Level does not go below 0.
For example, if a fire had burned 250 square miles in a forest with a 50 square mile endangerment level, the danger level would be 2, and the function would return “Danger Level: 2; Firebreak and Airdrop”. Test Cases: >>> spreadingFire (250, 50) ‘Danger Level: 2; Firebreak and Airdrop’ >>> spreadingFire(775, 35) ‘Danger Level: 7; Evacuate and Full Protocol’
Expert Answer
Answer to Function name: spreadingFire (). Parameters: square miles on fire (int), endangerment limit (int) Returns: string Descri…
OR