| about | help | code help+videos | done | prefs |
Hemorrhaging is broken down into four classes by the American College of Surgeons' advanced trauma life support (ATLS). Class 1 Hemorrhage involves loss of 10% of total blood volume. Class 2 Hemorrhage involves loss of 25% of total blood volume. Class 3 Hemorrhage involves loss of 35% of circulating blood volume. Class 4 Hemorrhage involves loss of 50% of circulating blood volume. A patient who is hemorrhaging usually needs enough blood donated to them so that they have at most a 10% blood loss, or else they will die. Additionally, if the wound causing the hemorrhaging is severe, regardless of blood loss or donation, the patient will die. Given the type of hemorrhaging hemorrhagingType, the percent of blood donated percentDonated, and whether the wound is severe or not isSevereWound, return false if the patient will die, and true is the patient will survive. Note: the maximum donation amount is 50%, and a patient will not have more blood donated to them than they have lost.willLive(4, 45, true) → false willLive(3, 15, false) → false willLive(2, 25, false) → true ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 100 Post-solution available
Copyright Nick Parlante 2017 - privacy