A 79-year-old man is admitted to a long-term care facility after a stroke that has left him paralyzed on one side and unable to talk. A daughter visiting from out of town approaches the gerontological nurse and expresses concern about how to communicate with her father.
A. use word boards and picture charts.
B. face her father; speak loudly and clearly.
C. explain procedures in detail.
D. face her father with adequate light on her face.
A. ask simple questions that can be answered with “yes” or “no.”
B. develop a list of simple words that the client can read and practice reciting.
C. have the client practice facial and tongue exercises to improve motor control necessary for speech.
D. prevent embarrassing the client by changing the subject if he or she does not respond in a timely manner.
Chapter 24
An 80-year-old Caucasian white client recently lost her husband of 58 years to cancer. Although he was a chronic alcoholic, he provided for his family and did everything for his wife. While visiting with the client in a long-term care facility, she laments about “the loss of her husband and losing additional friends all the time.” She sighs and questions whether her life has any meaning.
A. ignore the client’s comment, assuming that “she is just a little depressed today.”
B. suggest that the client develop some new interests.
C. ask the client to describe her past experiences.
D. refer the client for counseling to avoid worsening her depression.
A. True
B. False
A. The client states that he understands the need for continued treatment.
B. The client states that he intends to decrease his alcohol consumption.
C. The client showered and shaved and attended group session.
D. The client stated, “I am an alcoholic.”
In: Nursing
In: Nursing
I am given:
| Risk-free rate | 6.0000% |
| First Stock Return | 7.0000% |
| Second Stock Return | 10.0000% |
| First Stock Standard Deviation | 15.0000% |
| Second Stock Standard Deviation | 20.0000% |
| Stock Corelation | 30.0000% |
| Target Return | 7.5000% |
I need to find:
| Risky Weight 1 |
| Risky Weight 2 |
| Expected Return |
| Varience |
| Standard Devation |
| Sharpe Ratio |
How do I find Risky weight one and two?
These are the given formulas:
In: Finance
// TASK #2 Add an import statement for the Scanner class
// TASK #2(Alternate)
// Add an import statement for the JOptionPane class
/**
This program demonstrates how numeric types and
operators behave in Java.
*/
public class NumericTypes
{
public static void main (String [] args)
{
// TASK #2 Create a Scanner object here
// (not used for alternate)
// Identifier declarations
final int NUMBER = 2 ; // Number of scores
final int SCORE1 = 100; // First test score
final int SCORE2 = 95; // Second test score
final int BOILING_IN_F = 212; // Boiling temperature
int fToC; // Temperature Celsius
double average; // Arithmetic average
String output; // Line of output
// TASK #2 declare variables used here
// TASK #3 declare variables used here
// TASK #4 declare variables used here
// Find an arithmetic average.
average = (SCORE1 + SCORE2) / NUMBER;
output = SCORE1 + " and " + SCORE2 +
" have an average of " + average;
System.out.println(output);
// Convert Fahrenheit temperature to Celsius.
fToC = 5/9 * (BOILING_IN_F - 32);
output = BOILING_IN_F + " in Fahrenheit is " +
fToC + " in Celsius.";
System.out.println(output);
System.out.println(); // To leave a blank line
// ADD LINES FOR TASK #2 HERE
// Prompt the user for first name
// Read the user's first name
// Prompt the user for last name
// Read the user's last name
// Concatenate the user's first and last names
// Print out the user's full name
System.out.println(); // To leave a blank line
// ADD LINES FOR TASK #3 HERE
// Get the first character from the user's first name
// Print out the user's first initial
// Convert the user's full name to uppercase
// Print out the user's full name in uppercase
System.out.println(); // To leave a blank line
// ADD LINES FOR TASK #4 HERE
// Prompt the user for a diameter of a sphere
// Read the diameter
// Calculate the radius
// Calculate the volume
// Print out the volume
}
}
Task #2a Using the Scanner Class for User Input (4 pts)
⦁ Add an import statement above the class declaration
to make the Scanner class available to your program.
⦁ In the main method, create a Scanner object and
connect it to the System.in object.
⦁ Prompt the user to enter his or her first name.
⦁ Read the name from the keyboard using the nextLine
method and store it into a variable called firstName (you will need
to declare any variables you use).
⦁ Prompt the user to enter his or her last name.
⦁ Read the name from the keyboard and store it in a
variable called lastName.
⦁ Concatenate the firstName and lastName with a space
between them and store the result in a variable called
fullName.
⦁ Print out the fullName.
⦁ Compile, debug, and run, using your name as test
data.
⦁ Since we are adding on to the same program, each time
we run the program we will get the output from the previous tasks
before the output of the current task.
Task #2b (alternate) Using Dialog Boxes for User Input (4
pts)
⦁ Add an import statement above the class declaration
to make the JOptionPane class available to your program.
⦁ In the main method, prompt the user to enter his or
her first name by displaying an input dialog box and storing the
user input in a variable called firstName (you will need to declare
any variables you use).
⦁ Prompt the user to enter his or her last name by
displaying an input dialog box and storing the user input in a
variable called lastName.
⦁ Concatenate the firstName and lastName with a space
between them and store the result in a variable called
fullName.
⦁ Display the fullName using a message dialog
box.
⦁ Compile, debug, and run, using your name as test
data.
⦁ Since we are adding on to the same program, each time
we run the program we will get the output from the previous tasks
before the output of the current task.
Task #3 Working with Strings (4 pts)
⦁ Use the charAt method to get the first character in
firstName and store it in a variable called firstInitial (you will
need to declare any variables that you use).
⦁ Print out the user’s first initial.
⦁ Use the toUpperCase method to change the fullName to
uppercase and store it back into the fullName variable.
⦁ Add a line that prints out the value of fullName and
how many characters (including the space) are in the string stored
in fullName (use the length method to obtain that
information).
⦁ Compile, debug, and run. The new output added on
after the output from the previous tasks should have your initials
and your full name in uppercase.
Task #4 Using Predefined Math Functions (4 pts)
⦁ Add a line that prompts the user to enter the
diameter of a sphere.
⦁ Read in and store the number into a variable called
diameter (you will need to declare any variables that you
use).
⦁ The diameter is twice as long as the radius, so
calculate and store the radius in an appropriately named
variable.
⦁ The formula for the volume of a sphere is:
r3
Convert the formula to Java code and add a line which calculates
and stores the value of volume in an appropriately named variable.
Use Math.PI for and Math.pow to cube the radius.
⦁ Print your results to the screen with an appropriate
message.
⦁ Compile, debug, and run using the following test data
and record the results.
Diameter Volume (hand calculated) Volume
(resulting output)
2
25.4
875,000
Task #5 Create a program from scratch (4 pts)
In this task you will create a new program that calculates gas
mileage in miles per gallon. You will use string expressions,
assignment statements, input and output statements to communicate
with the user.
⦁ Create a new file in your IDE or text
editor.
⦁ Create the shell for your first program by
entering:
public class Mileage
{
public static void main(String[] args)
{
// Add your declaration and code
here.
}
}
⦁ Save the file as Mileage.java.
⦁ Translate the algorithm below into Java code. Don’t
forget to declare variables before they are used. Each variable
must be one word only (no spaces).
Print a line indicating this program will calculate mileage
Print prompt to user asking for miles driven
Read in miles driven
Print prompt to user asking for gallons used
Read in gallons used
Calculate miles per gallon by dividing miles driven by gallons
used
Print miles per gallon along with appropriate labels
⦁ Compile the program and debug, repeating until it
compiles successfully.
⦁ Run the program and test it using the following sets
of data and record the results:
Miles driven Gallons used Miles per
gallon (hand calculated) Miles per gallon
(resulting output)
2000 100
500 25.5
241.5 10
100 0
⦁ The last set of data caused the computer to divide
100 by 0, which resulted in what is called a runtime error. Notice
that runtime can occur on programs which compile and run on many
other sets of data. This emphasizes the need to thoroughly test you
program with all possible kinds of data.
Task #6 Documenting a Java Program (2 pts)
⦁ Compare the code listings of NumericTypes.java with
Mileage.java. You will see that NumericTypes.java has lines which
have information about what the program is doing. These lines are
called comments and are designated by the // at the beginning of
the line. Any comment that starts with /** and ends with */ is
considered a documentation comment. These are typically written
just before a class header, giving a brief description of the
class. They are also used for documenting methods in the same
way.
⦁ Write a documentation comment at the top of the
program which indicates the purpose of the program, your name, and
today’s date.
⦁ Add comment lines after each variable declaration,
indicating what each variable represents.
⦁ Add comment lines for each section of the program,
indicating what is done in that section.
⦁ Finally add a comment line indicating the purpose of
the calculation.
In: Computer Science
Which samples do you think are non-biased samples of the population of all students at a college/four‐year university? If it is a biased sample, is there a different population for which you believe the sample could be considered a non-biased sample?
In: Statistics and Probability
Equity Transactions - Record the following transaction
1. Lawry purchased 1,000 shares of $5 par value common stock for $10 per share.
2. Lawry sold 100 per shares of its treasury stock at $12 per share.
3. Lawry sold 100 per shares of its treasury stock at $9 per share.
4. Lawry sold 100 per shares of its treasury stock at $14 per share.
5. Lawry sold 100 per shares of its treasury stock at $8 per share.
6. Lawry sold 100 per shares of its treasury stock at $10 per share.
In: Accounting
In the following table, the profits from a duopoly model of competition are shown. Firms 1 and 2 simultaneously choose the quantity of outputs to produce. Each firm is restricted to producing 25, 35, 50 or 100 units of output. Is there a Nash equilibrium? What is it? Briefly explain.
Firm 2
|
Q2 = 25 |
35 |
50 |
100 |
||
|
Q1 = 25 |
125, 125 |
100, 140 |
63, 125 |
-63, -250 |
|
|
Firm 1 |
35 |
140, 100 |
105, 105 |
53, 75 |
-123, -350 |
|
50 |
125, 63 |
75, 53 |
0, 0 |
-250, -500 |
|
|
100 |
-250, -63 |
-350, -130 |
-500,-250 |
-900, -900 |
In: Economics
A scientist designed a medical test for a certain disease. Among 100 patients who have the disease, the test will show the presence of the disease in 96 cases out of 100, and will fail to show the presence of the disease in the remaining 4 cases out of 100. Among those who do not have the disease, the test will erroneously show the presence of the disease in 3 cases out of 100, and will show there is no disease in the remaining 97 cases out of 100.
What is the probability that a patient who tested positive on this test actually has the disease, if it is estimated that 20% of the population has the disease?
| A. |
0.9074 or 90.74% |
|
| B. |
0.04 or 4% |
|
| C. |
0.96 or 96% |
|
| D. |
0.9407 or 94.07% |
In: Statistics and Probability
The status of a project after 100 days and after 150 days is as follows. (EV-Earned Value, PV-Planned Value, AC-Actual Cost in Rs). Determine the time and cost overruns and underruns of:
Show all calculations.
|
Status after 100 days |
Status after 150 days |
|||||
|
Activity |
EV |
PV |
AC |
EV |
PV |
AC |
|
A |
80 |
100 |
200 |
200 |
200 |
250 |
|
B |
120 |
200 |
80 |
120 |
300 |
80 |
|
C |
300 |
500 |
350 |
300 |
600 |
|
|
D |
100 |
80 |
||||
|
E |
500 |
700 |
||||
In: Operations Management
with the current US national debt being $21 trillion dollars, if it was all paid of at once in $100 dollar bills, how many $100 dollars bills would it take and how much would those $100 dollar bills weigh in tons? this is the equvilant to how many loaded tractor trailer rigs (80000 # each) if the $100 bills were laid on the ground like a carpet how big of an area would it cover (square miles) assume that someone can count 5 bills per second and never stop. if everyone in Atlanta Georgia started counting the bills how long would it take to count all of the $100 bills?
In: Accounting