These questions are about Community nursing. Sentences should be minimum of 4 sentences with maximum of 10 sentences.
1.Distinguish between the levels of prevention.
2. Provide two (2) examples of each type of prevention.
3. Identify the circumstances and settings in which each level is indicated. Explain your answers.
In: Nursing
1.Reduce x'yz+xz to 3 literals.
2.Convert 79 and 31 to binary and compute 79- 31 in binary. (Use two's complement.)
3.Simplify using a Karnaugh map: F(w,x, y, z)=Σ(0, 2, 8,10)
4.Convert 43 to hexadecimal.
In: Computer Science
How many times are we copying elements to the right while applying insertion sort on the input sequence 3 5 2 8 3?
How many times are we copying elements to the right while applying insertion sort on the input sequence 5 4 3 2 1?
In: Computer Science
Using the data on gross (higher) heating values (HHV), estimate the mass of CO2 emitted per: 1) 1000 SCF of methane; 2) lb of gasoline; 3) ethanol; and, 4) No. 2 heating oil. Also express your answers in mass of CO2 per million Btu of each fuel.
In: Chemistry
I am taking a Data Structures and Program Design class. BUT, I am having trouble getting access to the vectors so that I can compare the guesses with the random numbers. I’ve been working on this for several days and don't feel any closer to a solution and could really use some help as I really don't know how to get this to work. Thank you!
The assignment is:
Design an ADT for a one-person guessing game that chooses 4 random integers in the range from 1 to 9 and asks the user to guess them. The same integer might be chosen more than once. For example, the game might choose the following four integers that range from 1 to 9: 4, 6, 1, 6. The following interaction could occur between the user and the game:
Enter your guesses for the 4 integers in the range from 1 to 9 that have been selected:
User Input: 1 2 3 4
2 of your guesses are correct. Guess again.
User Input: 2 4 6 8
2 of your guesses are correct. Guess again.
User Input: 1 4 6 6
You are correct! Play again? No
Good-bye!
Submit header file guess.h, implementation file guess.cpp, main function file main.cpp You need to include a makefile, and Readme file (see Programming Guidelines).
My code is:
---------------------------------main.cpp----------------------------------------
#include <iostream> // needed for using cin/cou statements
#include <string> // needed for using string type
#include <fstream> // needed for using files
#include <ctime> // Enables use of time() function
#include "guess.h"
using namespace std;
int main() {
bool play = true;
string answer;
int randomNumsToGuess[3];
int playerGuesses[4];
srand(time(0));
int matches = 0;
bool match = false;
Guess g1;
do {
cout << "Begin" << endl; //just for following along
do {
cout << "Enter your first guess" << endl;
cin >> playerGuesses[0];
cin.ignore();
cout << "Enter your second guess" << endl;
cin >> playerGuesses[1];
cin.ignore();
cout << "Enter your third guess" << endl;
cin >> playerGuesses[2];
cin.ignore();
cout << "Enter your fourth guess" << endl;
cin >> playerGuesses[3];
cin.ignore();
Guess (playerGuesses[0], playerGuesses[1], playerGuesses[2], playerGuesses[3]);
cout << "Sitting just before loop" << endl;
for (int i = 0; i < 4; i++) {
cout << "Entered first loop" << endl;
for (int j = 0; j < 4; j++) {
cout << "Entered second loop" << endl;
//***** HERE IS WHERE I ERROR OUR ******
if (g1.getVecGuesses(i) == g1.getVecRandomCopy(i)) {
matches = matches + 1;
//cout << "Match at playerGuess " << playerGuesses[i] << "and randomNum" << vecRandomCopy[j] << endl; //used during testing
g1.setVecGuesses(i);
g1.setVecRandomCopy(j);
//vecGuesses[i] = -1;
//vecRandomCopy[j] = -2;
//gameOver = true;
cout << "Matches: " << matches << endl;
}
cout << "Number of correct matches: " << matches << endl;
}
}
if (matches == 3) {
cout << "Congratulations! You guessed all three random numbers!" << endl;
} else {
cout << "Try again" << endl;
}
} while (matches != 3);
matches = 0;
cout <<"Would you like to play again?" << endl;
cout << "Enter Y for yes or N for no." << endl;
cin >> answer;
cin.ignore();
if (answer == "Y") {
play = true;
}
else {
play = false;
cout << "Thanks for playing!" << endl;
}
} while (play == true);
return 0;
};
-------------------------------Guess.h-------------------------------------------
//
// Created by craig on 9/4/2019.
//
#ifndef DSPD_HW1_GUESS_H
#define DSPD_HW1_GUESS_H
#include <vector>
using namespace std;
class Guess{
private:
vector <int> vecRandom;
vector <int> vecRandomCopy;
vector <int> vecGuesses;
int randomNum;
int matches = 0;
public:
Guess();
Guess(int a, int b, int c, int d);
void Matches (vector<int> vecRandomCopy, vector<int> vecGuesses);
void showVecGuesses(vector<int>);
//might need to Guess::vecGuesses[x] = -1;
void setVecGuesses (int x) {
vecGuesses[x] = -1;}
//void setVecGuesses (vector<int> _vecGuesses(int x)) {vecGuesses[x] = _vecGuesses[x];}
void setVecRandomCopy (int y) {
vecRandomCopy[y] = -2;}
/*void displayVecContents (){
for (unsigned int i=0; i<vecGuesses.size(); i++ )
cout << "Guesses " << vecGuesses[i] << endl;
}
*/
int getVecGuesses (int x) {
cout << "TEST " << vecGuesses[x];
return vecGuesses[x];}
int getVecRandomCopy (int y) {
return vecRandomCopy[y];}
int Matches (vector<Guess> & ) {
cout << "Testing Matches" << endl;
}
};
#endif //DSPD_HW1_GUESS_H
--------------------------guess.cpp --------------------------------------
//
// Created by craig on 9/4/2019.
//
#include <iostream> // needed for using cin/cou statements
#include <string> // needed for using string type
#include <fstream> // needed for using files
#include <ctime> // Enables use of time() function
#include <vector>
#include "guess.h"
using namespace std;
Guess::Guess() {//default constructor, fills with random numbers
for (int i = 0; i < 4; i++) {
randomNum = (rand() % 9)+1;
vecRandom.push_back(randomNum);
cout << "Random number " << i + 1 << ": " << vecRandom[i] << endl;
}
for (int i=0; i < 4; i++) { //creates a copy of the random numbers so I can manipulate it without
//losing the original random numbers
vecRandomCopy = vecRandom;
cout << "Random number copy " << i + 1 << ": " << vecRandomCopy[i] << endl;
}
}
Guess::Guess (int a, int b, int c, int d){ //constructor for user guesses
vecGuesses.push_back(a);
vecGuesses.push_back(b);
vecGuesses.push_back(c);
vecGuesses.push_back(d);
cout << "You Guessed: ";
for (int i = 0; i < 4; i++) {
cout << " " << vecGuesses[i];
}
cout << endl;
}
void showVecGuesses(vector<int> _vecGuesses){
for (int i=0; i<4; i++){
cout << "TESTING SHOW VEC GUESSES" << endl;
cout << _vecGuesses[i] << endl;
}
}
void Matches (vector<int> _vecRandomCopy, vector<int> _vecGuesses){
cout << "TESTING: do we get into matches?" << endl;
}
In: Computer Science
Exercises for Pediatric and Insulin Dose Calculation
1. If the dose of pentobarbital for an adult is 15mg. What is the dose for an 8-year-old?
2. If the usual adult dose of a certain drug is 0.1ml, what will the dose be for a child who is twelve years old?
3. For an adult Augmentin is prescribed twice a day, with a daily dose of 3g. What is the daily dose for a child weighing 18kg?
4. The dose of sulfisoxazole for infants older than 2 months and children is 60-75mg / kg of body weight. What will the dosage be for a child weighing 44 pounds?
5. Calculate in ml / min the rate at which a D5W serum drops, administered to a patient for 5 hours. If the amount administered was 2 liters.
6. For an adult weighing 125 pounds the dose of X medication is 10mg / kg. If a child who is 6 years old were to take that medicine. What would the dosage be for this child?
7. Zantac 150mg / 100ml is administered intravenously to a 10-year-old child at a rate of 5mg / hr.
a.) After 7 hours, how many ml will have been administered?
b.) What is the drip rate (rate) in ml / min?
For each of the following medications write:
a. Instructions
b. Daily dose
c. Supply days
1. Humulin N
Sig 25u SC tid
# 2
2. Lantus
Sig 45u SC hs
# 2 vials
3. Humalog Mix Kiwi-Pen
Sig.20 units SC bid
# 3 pen
4. Alphagan 0.1% opht drops (5ml)
Sig. I gtt ou bid
#1
5. Cortisporin otic suspension (10ml)
Sig. iv gtts ad q6hrs
# 1
6. Humalog insulin vial
Sig.33 SC tid units
#4
7. Auralgan otic sol (15ml)
Sig. iii drops au prn for pain
# 1
8. Brimonidine opht sol (5ml)
Sig. i drop ou bid
#1
In: Nursing
Hearne Company has a number of potential capital investments.
Because these projects vary in nature, initial investment, and time
horizon, management is finding it difficult to compare them. Assume
straight line depreciation method is used.
Project 1: Retooling Manufacturing Facility
This project would require an initial investment of $5,600,000. It
would generate $1,000,000 in additional net cash flow each year.
The new machinery has a useful life of eight years and a salvage
value of $1,180,000.
Project 2: Purchase Patent for New Product
The patent would cost $3,925,000, which would be fully amortized
over five years. Production of this product would generate $785,000
additional annual net income for Hearne.
Project 3: Purchase a New Fleet of Delivery
Trucks
Hearne could purchase 25 new delivery trucks at a cost of $190,000
each. The fleet would have a useful life of 10 years, and each
truck would have a salvage value of $6,500. Purchasing the fleet
would allow Hearne to expand its customer territory resulting in
$950,000 of additional net income per year.
Required:
1. Determine each project's accounting rate of return.
(Round your answers to 2 decimal places.)
2. Determine each project's payback period.
(Round your answers to 2 decimal places.)
3. Using a discount rate of 10 percent, calculate
the net present value of each project. (Future Value of $1, Present
Value of $1, Future Value Annuity of $1, Present Value Annuity of
$1.) (Use appropriate factor(s) from the tables
provided. Round your intermediate calculations to
4 decimal places and final answers to 2 decimal
places.)
4. Determine the profitability index of each
project and prioritize the projects for Hearne. (Round your
intermediate calculations to 2 decimal places. Round your final
answers to 4 decimal places.)
In: Accounting
Hearne Company has a number of potential capital investments.
Because these projects vary in nature, initial investment, and time
horizon, management is finding it difficult to compare them. Assume
straight line depreciation method is used.
Project 1: Retooling Manufacturing Facility
This project would require an initial investment of $5,300,000. It
would generate $946,000 in additional net cash flow each year. The
new machinery has a useful life of eight years and a salvage value
of $1,108,000.
Project 2: Purchase Patent for New Product
The patent would cost $3,715,000, which would be fully amortized
over five years. Production of this product would generate $631,550
additional annual net income for Hearne.
Project 3: Purchase a New Fleet of Delivery
Trucks
Hearne could purchase 25 new delivery trucks at a cost of $160,000
each. The fleet would have a useful life of 10 years, and each
truck would have a salvage value of $5,900. Purchasing the fleet
would allow Hearne to expand its customer territory resulting in
$680,000 of additional net income per year.
1. Determine each project's accounting rate of return.
(Round your answers to 2 decimal places.)
2. Determine each project's payback period. (Round your answers to
2 decimal places.)
3. Using a discount rate of 10 percent, calculate the net present
value of each project. (Future Value of $1, Present Value of $1,
Future Value Annuity of $1, Present Value Annuity of $1.) (Use
appropriate factor(s) from the tables provided. Round your
intermediate calculations to 4 decimal places and final answers to
2 decimal places.)
4. Determine the profitability index of each project and prioritize
the projects for Hearne. (Round your intermediate calculations to 2
decimal places. Round your final answers to 4 decimal
places.)
In: Accounting
Hearne Company has a number of potential capital investments.
Because these projects vary in nature, initial investment, and time
horizon, management is finding it difficult to compare them. Assume
straight line depreciation method is used.
Project 1: Retooling Manufacturing Facility
This project would require an initial investment of $4,850,000. It
would generate $865,000 in additional net cash flow each year. The
new machinery has a useful life of eight years and a salvage value
of $1,000,000.
Project 2: Purchase Patent for New Product
The patent would cost $3,400,000, which would be fully amortized
over five years. Production of this product would generate $425,000
additional annual net income for Hearne.
Project 3: Purchase a New Fleet of Delivery
Trucks
Hearne could purchase 25 new delivery trucks at a cost of $115,000
each. The fleet would have a useful life of 10 years, and each
truck would have a salvage value of $5,000. Purchasing the fleet
would allow Hearne to expand its customer territory resulting in
$200,000 of additional net income per year.
Required:
1. Determine each project's accounting rate of return.
(Round your answers to 2 decimal places.)
2. Determine each project's payback period.
(Round your answers to 2 decimal places.)
3. Using a discount rate of 10 percent, calculate
the net present value of each project. (Future Value of $1, Present
Value of $1, Future Value Annuity of $1, Present Value Annuity of
$1.) (Use appropriate factor(s) from the tables
provided. Round your intermediate calculations to
4 decimal places and final answers to 2 decimal
places.)
4. Determine the profitability index of each
project and prioritize the projects for Hearne.
(Round your intermediate calculations to 2 decimal places.
Round your final answers to 4 decimal places.)
In: Accounting
Hearne Company has a number of potential capital investments.
Because these projects vary in nature, initial investment, and time
horizon, management is finding it difficult to compare them. Assume
straight line depreciation method is used.
Project 1: Retooling Manufacturing Facility
This project would require an initial investment of $5,150,000. It
would generate $919,000 in additional net cash flow each year. The
new machinery has a useful life of eight years and a salvage value
of $1,072,000.
Project 2: Purchase Patent for New Product
The patent would cost $3,610,000, which would be fully amortized
over five years. Production of this product would generate $559,550
additional annual net income for Hearne.
Project 3: Purchase a New Fleet of Delivery
Trucks
Hearne could purchase 25 new delivery trucks at a cost of $145,000
each. The fleet would have a useful life of 10 years, and each
truck would have a salvage value of $5,600. Purchasing the fleet
would allow Hearne to expand its customer territory resulting in
$561,900 of additional net income per year.
Required:
1. Determine each project's accounting rate of return.
(Round your answers to 2 decimal places.)
2. Determine each project's payback period.
(Round your answers to 2 decimal places.)
3. Using a discount rate of 10 percent, calculate
the net present value of each project. (Future Value of $1, Present
Value of $1, Future Value Annuity of $1, Present Value Annuity of
$1.) (Use appropriate factor(s) from the tables
provided. Round your intermediate calculations to
4 decimal places and final answers to 2 decimal
places.)
4. Determine the profitability index of each
project and prioritize the projects for Hearne. (Round your
intermediate calculations to 2 decimal places. Round your final
answers to 4 decimal places.)
In: Accounting