ADVANCED CONCEPTS A patient who has been prescribed enalapril (Vasotec) has developed a persistent nonproductive cough. What is your best action?
Sam is a boy scout leader taking a group of scouts on a hike…
Sam is a boy scout leader taking a group of scouts on a hike up a moutain to a camping site. He observes that the hiking group keeps getting spread out because one boy, Joshua, walks more slowly than the others. To keep the group moving together, Sam puts Joshua at the head of the line. This change illustrates which key principle of Theory of Constraints operations management?
ADVANCED CONCEPTS A 33-year-old female patient is currently…
ADVANCED CONCEPTS A 33-year-old female patient is currently taking captopril (Capoten) and metoprolol (Lopressor) to control her blood pressure. She tells you that she plans to become pregnant. What should you teach the patient about the use of this drug during pregnancy?
ADVANCED CONCEPTS A patient who is taking nicardipine (Carde…
ADVANCED CONCEPTS A patient who is taking nicardipine (Cardene) develops skin lesions, itching, fever, and achy joints. What is your best first action?
Given each of the 2 subtyping scenarios below, should the co…
Given each of the 2 subtyping scenarios below, should the code compile? In other words, would the given subtyping still satisfy a client code that uses the supertype? You should answer “Yes” or “No”, then support your answer (in the context of a client code that uses the supertype). class A { public Iterator merge(Iterator itr) throws Exception { … } } class B { public Iterator merge(Iterator itr) throws RuntimeException { … } } B extends A. A extends B.
BASIC CONCEPTS Morphine and hydromorphone (Dilaudid) are two…
BASIC CONCEPTS Morphine and hydromorphone (Dilaudid) are two types of opioid receptor agonists used for pain management. Hydromorphone is a more potent drug than morphine, and lower doses are needed to control pain. How do actions at receptor sites explain this difference?
What is the output of the println() calls below: …
What is the output of the println() calls below: String s1 = new String(“abc”); String s2 = new String(“abc”); String s3 = new String(“abc”).intern(); String s4 = new String(“abc”).intern(); String s5 = “abc”; String s6 = “abc”; System.out.println(s1 == s2); System.out.println(s1 == s3); System.out.println(s1 == s5); System.out.println(s3 == s4); System.out.println(s3 == s5); System.out.println(s5 == s6);
Consider the code below. // A typical account has a balanc…
Consider the code below. // A typical account has a balance that is a result of summing a sequence of transactions (or amounts) public class Account { private int balance; private List amounts; // Requires: true // Effects: Initializes this to have a zero balance and an empty sequence of transactions public Account() { amounts = new ArrayList(); balance = 0; if (repOk() == false) { System.out.println(“Account(): rep-inv violated”); System.exit(-1); } } // Requires: true // Effects: append amount to the sequence of transactions, and add it to balance public void customerTransaction(int amount) { amounts.add(amount); balance += amount; if (repOk() == false) { System.out.println(“customerTransaction(): rep-inv violated”); System.exit(-1); } } public int getBalance() { return balance; } // Rep-invariant1: a) amounts != null // b) balance = sum of all amounts.get(i), where 0 = 0 boolean repOk() { } (1 pt) Implement repOk() based on Rep-Invariant1. (1 pt) Give 2 example values for balance and amounts that do not violate Rep-invariant1. For each example, provide the client code. (0.5 pt) Give 2 example values for balance and amounts that do violate Rep-invariant1. (1 pt) Consider an updated Rep-invariant2. Implement repOk() based on it. // Rep-invariant2: a) amounts != null // b) balance = sum of all amounts.get(i), where 0 = 0 // d) amounts.get(i) cannot be 0, where 0
ADVANCED CONCEPTS A patient taking metoprolol (Lopressor) fo…
ADVANCED CONCEPTS A patient taking metoprolol (Lopressor) for hypertension reports all of the following side effects. For which side effect will you notify the prescriber?
An end-tidal carbon dioxide detector connected to the end of…
An end-tidal carbon dioxide detector connected to the end of a nasogastric tube indicates the presence of carbon dioxide in the tube. What is your best interpretation of this finding?