For this concept map, your main topic will be urinary tract infection (UTI). Subtopics should include: • Locate—list common assessment findings or observations associated with UTI • Communicate—list questions you would ask the patient related to UTI • Medicate—list expected treatments for UTI • Educate—list pertinent patient education items related to UTI and/or its prevention • Advocate—list items you would request from the physician or advocate for concerning UTI You are not limited to these subtopics, but these subtopics must all be included. Each subtopic should include at least 3-4 supporting characteristics for that subtopic.
In: Nursing
Give the tuple calculus expressions for each using the below schema: Make a database up if needed
SPERSON(EmpID, Name, Dept)
TRIP(TripID, EmpID, ToCity, StartDate, EndDate)
EXPENSE(ExpID, TripID, AccountID, Amount)
a) List the names and employee ID of a salesperson.
b) List employee ID and employee names that took a trip(s) to New York city.
c) List the names of all employees who have spent more than $700 on their trip.
d) List employees' names and their IDs that have never taken a trip.
e) List the names of all salespersons that have at least been on one trip.
In: Computer Science
Moore Housing Contractors
Moore Housing Contractors is negotiating a deal with Countryside Realtors to build six houses in a new development. Countryside wants Moore Contractors to start in late winter or early spring when the weather begins to moderate and build through the summer into the fall. The summer months are a busy time for the realty company, and it believes it can sell the houses almost as soon as they are ready-sometimes before. The houses all have similar floor plans and are of approximately equal size; only the exteriors are noticeably different. The completion time is so critical for Countryside Realtors that it is insisting a project management network accompany the con tractor's bid for the job with an estimate of the completion time for a house. The realtor also needs to be able to plan its offerings and marketing for the summer. The realtor wants each house to be completed within 45 days after it is started. If a house is not completed within this time frame, the realtor wants to be able to charge the contractor a penalty. Mary and Sandy Moore, the president and vice president of Moore Housing Contractors, are concerned about the prospect of a penalty. They want to be confident they can meet the deadline house before entering into any agreement with a penalty involved. (If there is a reasonable likelihood they cannot house within 45 days, they want to increase their bid to potential penalty charges.)
The Moores are experienced homebuilders, so it was not difficult for them to list the activities involved in building a house or to estimate activity times. However, they made estimates conservatively and tended to increase their pessimistic estimates to compensate for the possibility of bad weather and variations in their workforce. Following is a list of the activities for building a house and the activity time estimates:
|
Activity |
Description |
Immediate Predecessor |
Time (days) |
||
|
Optimistic a |
Most Likely m |
Pessimistic b |
|||
|
a b c d e f g h i j k l m n o p q r s t u v w x |
Excavation, pour footers Lay foundation Frame and roof Lay drain tiles Sewer (floor) drains Install Insulation Pour basement floor Rough Plumbing, pipes Install windows Rough electrical wiring Install furnace, air conditioner Exterior brickwork Install plasterboard, mud, plaster Roof shingles, flashing Attach gutter, downspouts Grading Lay subflooring Lay driveway, walks, landscape Finish carpentry Kitchen cabinetry, sink, and appliances Bathroom cabinetry, fixtures Painting (interior and exterior) Finish wood floors, lay carpet Final electrical, light fixtures |
─ a b b b c e e f f c, g i j, h, k l n d, o m p q q q t, u v, s v |
3 2 2 1 1 2 2 2 1 1 3 5 6 2 1 2 3 4 3 2 2 4 2 1 |
4 3 4 2 2 4 3 4 3 2 5 6 8 3 2 3 4 6 5 4 3 6 5 3 |
6 5 5 4 3 5 5 7 4 4 8 10 12 6 5 7 6 10 12 8 6 10 8 4 |
In: Operations Management
In this lab, we will write some utility methods within a class called ListUtils. These three methods will all be static methods, and their purpose will be to perform conversions between objects implementing one type of interface and objects implementing another type. For example, we will write a method for converting from an Iterable object to a Collection, and so on. We will discuss more about how this will work below.
Tip: you will definitely want to import java.util for this lab, since List and all of its relatives use it.
Iterable to Collection task:
public static <E> Collection<E>
iterToCollection(Iterable<? extends E> iterable)
(3pts) Every Collection is an Iterable but not every Iterable is a Collection. However, if we have an Iterable, it implies a sequence of elements, so we can use that to built a Collection. That is what we will do in this method. To implement the method, we will need to create some kind of Collection object, and add elements from the Iterable's sequence to it one by one.
Hint: we don't want to store the result in a Collection itself, because it is just an interface, but there may be a more familiar choice of structure which implements Collection.
Collection to List task:
public static <E> List<E> collToList(Collection<?
extends E> coll)
(3pts) As above, every List is a Collection but not every Collection is a List. However, if we have a Collection, it implies a fixed number of elements which can be retrieved in sequence, so we can use that to built a List by numbering the element indices in the order they are retrieved. That is what we will do in this method. To implement the method, we will need to create some kind of List object, and add elements from the Collection.
List to Map task:
public static <E> Map<Integer, E> listToMap(List<?
extends E> list)
(3pts) A Map, sometimes known as an associative array or dictionary, is in some ways similar to a List, except that instead of accessing elements by the indices 0, 1, 2, etc., the elements are accessed by a key, which may or may not be in order, and which may or may not be a number. Every element in a Map is stored as a key-value pair (the value of the element plus the key which is used to access it). Thus, when we call the get() method, instead of passing in an int index, we pass in the key corresponding to the element we're looking for. An example of a class which implements the Map interface in Java is the HashMap class.
A List is not a Map and a Map is not a List. However a Map stores collections of data indexed by some kind of mapping. A Map is essentially a dictionary which allows us to look up elements in a collection of data using some reference key to find each element. The reference key for a Map can be any data type, but if we make that data type an Integer, then we can use the key to represent a List index. Thus, in this method, we will take a List and use it to build a Map by using the list index of each element as the element's key within the Map. Thus, if our List contains the elements 2, 4, and 6, then this method will produce a Map with the mappings 0 ⇒ 2, 1 ⇒ 4, and 2 ⇒ 6. As above, this would involve creating an appropriate type of Map and adding the elements from the List.
In: Computer Science