A client record is being reviewed following a sentinel event. The client’s record indicates a decline in vital signs throughout the shift. The nursing assistant documented a change in mental status, indicating the nurse was notified of the changes three hours before the shift ended. The patient coded just prior to the shift ended. What element of liability did the nurse violate?
Foreseeability
Breech
Damages
Injury
In: Nursing
A 0.249g pellet of potassium hydroxide, KOH, is added to 64.0g water in a Styrofoam coffee cup. The water temperature rises from 23.5 to 24.4 ?C. [Assume that the specific heat of dilute KOH(aq)is the same as that of water.] What is the approximate heat of solution of KOH, expressed as kilojoules per mole of KOH?
In: Chemistry
Could I please get explainations and working out as to how to get to the answers.
Note that is where part of the answer goes.
1.
Complete the following function that returns true if ArrayLists
list1 and list2 are exactly the same in terms of contents
(same items in same order), false otherwise.
public static sameSame(ArrayList<Integer> list1,
ArrayList<Integer> list2) {
if(list1 == null || list2 == null)
return false;
if( != )
return false;
for(int i=0; i < list1.size(); i++) {
if( .equals( )==false) {
return ;
}
}
return ;
}
2.
Complete the missing statements so that the output of the
following code is:
[[10, 70, 20, 90], null, [50, 80]]
Do NOT include spaces in your answer!
ArrayList<Integer> b = new
ArrayList<Integer>(Arrays.asList(10,888,20,90));
ArrayList<Integer> a = null;
ArrayList<Integer> c = ; //make a reference copy
only!
b.set(1, 70);
b = new ArrayList<Integer>(Arrays.asList(50, 80));
ArrayList< > list = new ArrayList< >();
list.add( );
list.add( );
list.add( );
System.out.println(list);
In: Computer Science
In a table, compare the vertical and horizontal centrifugal casting processes. What is the good and bad about each type? What products can be made by each?
Can u a answer & I'll rate a thumbs up?
In: Mechanical Engineering
For a recent year, McDonald's Company-owned restaurants had the following sales and expenses (in millions):
Sales | $25,400 |
Food and packaging | $7,868 |
Payroll | 6,400 |
Occupancy (rent, depreciation, etc.) | 6,672 |
General, selling, and administrative expenses | 3,700 |
$24,640 | |
Income from operations | $760 |
Assume that the variable costs consist of food and packaging, payroll, and 40% of the general, selling, and administrative expenses.
a. What is McDonald's contribution margin?
Round to the nearest million. (Give answer in millions of
dollars.)
$ million
b. What is McDonald's contribution margin
ratio?
%
c. How much would income from operations
increase if same-store sales increased by $1,500 million for the
coming year, with no change in the contribution margin ratio or
fixed costs? Round your answer to the closest million.
$ million
In: Accounting
1. Which stage of the product life cycle best fits/describes men’s shaving products industry? Explain your rationale.
2. Identify and explain 2 strategies that Harry’s shaving company should employ to gain greater adoption of its products in the marketplace.
In: Operations Management
Manufacturing steel is not a glamorous job. The industry is beset by many problems and more than 40 steel manufacturers have filed for bankruptcy in recent years. Most young employees do not view working at a steel mill as their dream job. Yet, one company distinguished itself from all the rest by remaining profitable for over 130 quarters and by providing an over 350% return on investment (ROI) to shareholders. The company is clearly doing well by every financial metric available and is the most profitable in its industry.
How do they achieve these amazing results? For one thing, every one of Nucor Corporation’s (NYSE: NUE) 12,000 employees acts like an owner of the company. Employees are encouraged to fix the things they see as wrong and have real power on their jobs. When there is a breakdown in a plant, a supervisor does not have to ask employees to work overtime; employees volunteer for it. In fact, the company is famous for its decentralized structure and for pushing authority and responsibility down to lower levels in the hierarchy. Tasks that previously belonged to management are performed by line workers. Management listens to lower level employees and routinely implements their new ideas.
The reward system in place at Nucor is also unique and its employees may be the highest paid steelworkers in the world. In 2005, the average Nucor employee earned $79,000, followed by a $2,000 bonus decided by the company’s annual earnings and $18,000 in the form of profit sharing. At the same time, a large percentage of these earnings are based on performance. People have the opportunity to earn a lot of money if the company is doing well and there is no upward limit to how much they can make. However, they will do much worse than their counterparts in other mills if the company does poorly. Thus, it is to everyone’s advantage to help the company perform well. The same incentive system exists at all levels of the company. The CEO’s pay is clearly tied to corporate performance. The incentive system penalises low performers, while increasing for commitment to the company, as well as to high performance.
Nucor’s formula for success seems simple: Align company goals with employee goals and give employees real power to make things happen. The results seem to work for the company and its employees. Evidence of this successful method, is that the company has one of the lowest employee turnover rates in the industry and remains one of the few remaining non-unionized environments in manufacturing. Nucor is the largest U.S. mini mill and steel scrap recycler.
Adapted
In: Operations Management
Write a program which compresses a given string of 1s and 0s and uncompress the string that was compressed. Use the run-length compression technique which replaces runs of 0s with a count of how many 0s.
The interactive input/output should allow users to select and run required processes.
The assignment submission on Blackboard should be as CIS_232_Project_LastName.zip file and include:
project report file: ProjectReportLastName.doc
program’s source file: ProjectLastName.java
program’s bytecode file: ProjectLastName.class
and any other relevant files.
The project report should be prepared by using word processing software. To write a program you should complete and include in your assignment report the following steps:
Title:
Student’s name:
CIS 232 Introduction to Programming
Programming Project
Due Date: November 30, 2020
Instructor Dr. Lomako:
In: Computer Science
Suggest a way to fund the business. Recommend how to attract equity investors. Please provide reference
In: Finance
What did you notice about Wes Moore's presentation at the Aspen Ideas Festival? What themes did he stress in the presentation that you notice in chapter 6?
In: Psychology
For a C program hangman game:
Create the function int setup_game [int setup_game ( Game *g, char wordlist[][MAX_WORD_LENGTH], int numwords)] for a C program hangman game. (The existing code for other functions and the program is below, along with what the function needs to do)
setup_game() does exactly what the name suggests. It sets up a new game of hangman. This means that it picks a random word from the supplied wordlist array and puts that into g->hidden_word. It sets the number of wrong guesses to zero, and initialises the guesses array to be empty (all zeroes). To select a random word, just pick a random number between 0 and numwords-1, and copy that element of wordlist into the hidden word part of the structure.
// Data that is in g (Game)
// g->wrong_guesses
// g->guesses
// g->hidden_word
int setup_game ( Game *g, char wordlist[][MAX_WORD_LENGTH], int numwords )
{
g->wrong_guesses = 0 ;
// next, have to set what the hidden_word is
// pick a random number between 0 and numwords-1
// now copy that index of the wordlist into hidden_word
// next, initialise the entire guesses array to be all 0s
// DONE
}
The exist code
/* Hangman game!
Author: 1305ENG students
Date: 13/7/2020
A simple hangman game
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <ctype.h>
#include <math.h>
// include all OUR function declarations and constants
#include "hangman.h"
// The main function!
int main( int argc, char **argv )
{
char wordfile[256], option, temp[256] ;
char wordlist[MAX_WORDS][MAX_WORD_LENGTH] ;
int num_words, result ;
Game g ;
// seed the rand() function first
srand ( time(NULL));
// check to see if command line argument was given, if
so use it as the filename for the words
if ( argc > 1 ){
strcpy ( wordfile, argv[1] ) ;
} else {
strcpy ( wordfile, "wordlist.txt" ) ;
}
// now read word file
num_words = read_words ( wordfile, wordlist ) ;
if ( num_words == 0 ){
printf ( "No words were read from file, exiting\n") ;
exit ( -1 ) ;
}
printf ( "Read %d words from file\n", num_words ) ;
setup_game ( &g, wordlist, num_words ) ;
result = play_game ( &g ) ;
printf ( "Would you like to play again (y/n)? " ) ;
fgets ( temp, 256, stdin ) ; // read the rest of the line to get
rid of it from stdin
while ( option == 'y' || option == 'Y' ) ;
return 0 ;
}
// Functions used in the program here!
// WEEK 1 FUNCTIONS
// Replace the call to the library function with your own
code
// draw_man()
// Draws the hangman picture for the specified wrong number of
moves.
// There is no need to exactly copy the example program, but it
should progress from almost nothing
// at zero wrong moves to the man being "hanged" at
MAX_WRONG_GUESSES
int draw_man ( int misses ){
return draw_man_lib(int misses);
}
// display_guesses
// Displays a representation of the guessed letters from the
guesses array.
// Each letter is displayed in all caps, separated by a space. If
the array is '1', that letter is display,
// otherwise if it is '0' it is not. For example if elements 0, 9,
and 19 are '1' and the others are 0, then
// "A J T" would be displayed. No newline should be displayed after
the list of letters.
int display_guesses( unsigned char guesses[])
{
printf("Guesses so far:");
for(int i=0;i<26;i++)
{
if(guesses[i]==1)//checking the array of guesses if the its there
or not
{
printf("%c",i+65);
}
printf("\t");
}
return 0;
}
// read_guess()
// Reads a guess from the user. Uses the guesses array to make sure
that the player has not
// already guessed that letter. If an invalid character is entered
or they have already guessed
// the letter, they are asked to continue guessing until they enter
a valid input.
// Returns the character that was read.
// Note that it is usually better to read an entire line of text
rather than a single character, and taking the first
// character of the line as the input. This way, the entire line is
removed from the input buffer and won't interfere
// with future input calls.
char read_guess(unsigned char guesses[])
{
return read_guess_lib(guesses);
}
//Week 2 Functions
// add_guess()
// Adds the given guess to the guesses array, making the relevant
entry 1. For exmpale, if guess is 'a' or 'A',
// element 0 of the guesses array is set to 1. If 'z' or 'Z' is
input, then element 25 is set to 1. Your function
// should check that the character is a valid letter and return -1
if it is not.
// Returns 0 if successful, or -1 if an invalid character is
entered.
int add_guess(char guess, unsigned char guesses[26])
{
if ((guess >= 'a' && guess <= 'z') || (guess >=
'A' && guess <= 'Z'))
{
if (guess >= 'a' && guess <= 'z')
{
guesses[guess - 'a'] = 1;
}
else
{
guesses[guess - 'A'] = 1;
}
return 0;
}
return -1;
}
// check_guess()
// Checks if the given character 'guess' is contained within the
string 'word'.
// Returns 1 if it is, 0 otherwise
int check_guess ( char word[], char guess )
{
int i;
while(word[i] != '\0')
{
if(guess == word[i])
return 1;
}
return 0;
}
// hidden_word()
// Creates the word that is displayed to the user, with all the
correctly guessed letters
// shown, and the rest displayed as underscores. Any non-letters
(punctuation, etc) are displayed.
// The function takes two strings as inputs. word[] is the word
that the player is trying to guess,
// and display_word[] is the output string to be displayed to the
player. The guesses array is a binary
// array of size 26 indicating whether each letter (a-z) has been
guessed yet or not.
// Returns 0 if successful, -1 otherwise.
int hidden_word ( char display_word[], char word[],
unsigned char guesses[])
{
return hidden_word_lib (display_word, word,
guesses);
}
// WEEK 3 FUNCTIONS
// read_words()
// takes a filename as input as well as the wordlist to
populate
// Reads from the give file and stores each word (line of text)
into a new row of the array.
// A maximum of MAX_WORDS is read, and the wordlist array should be
this big (at least).
// Each word read from the file should be a maximum of
MAX_wORD_LENGTH characters long.
// Returns the total number of words read. If the file cannot be
opened, 0 is returned.
int read_words ( char input[], char
wordlist[][MAX_WORD_LENGTH])
{
int count= 0;
FILE*fp = fopen(input, "r");
if(fp == NULL)
return 0;
char buf[MAX_WORD_LENGTH];
while (fscanf(fp, "%s", buf) != EOF && count <
MAX_WORDS)
{
strcpy(wordlist[count], buf);
count++;
}
fclose(fp);
return count;
}
// display_game()
// Displays the entire game to the screen. This includes the
picture of the hangman, the hidden word,
// and the guesses so far.
int display_game ( Game *g )
{
return display_game_lib (g);
}
// WEEK 4-5 FUNCTIONS
// check_win()
// Checks to see whether all letters in the word have been guessed
already.
// The hidden word and guesses inside the Game structure should be
used to check this
// Returns 1 if so, 0 otherwise
int check_win ( Game *g ){
return check_win_lib ( g ) ;
}
// setup_game()
// Initialises the given game structure by chooseing a random word
from the supplied wordlist.
// The number of words in the wordlist is also passed to the
function.
// As well as doing this, the number of incorrect guesses is set to
0, and the guesses array is
// initialised to be all zeros.
int setup_game ( Game *g, char wordlist[][MAX_WORD_LENGTH],
int numwords ){
return setup_game_lib ( g, wordlist, numwords ) ;
}
// play_game()
// Runs one complete game of hangman with the supplied Game
structure.
// The usual hangman rules are followed - the player guesses
letters one at a time until either
// the entire word is guessed or the maximum number of incorrect
guesses MAX_WRONG_GUESSES is
// reached. If the player wins, 1 is returned, otherwise 0.
int play_game ( Game *g ){
return play_game_lib ( g );
}
In: Computer Science
Data for the next 3 questions: Beauty Company issued $1,000,000, 4%, 10-year, bonds. Interest to be paid semiannually. The market rate on bonds issue date was 6%.
1. Provide the journal entry that must be made on issue date of the bonds
Debit | Credit | |
2.Complete the following partial amortization schedule. Include only the final number for each cell
Schedule Title
pay# | ||||
0 | ||||
1 | ||||
2 |
3. Provide the necessary journal entry that company must make for the 2nd interest payment on the bond.
Debit | credit | |
Data for the next 3 questions: Holly Company issued $2,000,000, 6%, 10-year, bonds. Interest to be paid semiannually. The market rate on bonds issue date was 5%.
4.Provide the journal entry that must be made on issue date of the bonds
debit | credit | |
5.Complete the following partial amortization schedule. Include only the final number for each cell
Schedule Title:
pay# | ||||
0 | ||||
1 | ||||
2 |
6.Provide the necessary journal entry that company must make for the 2nd interest payment on the bonds.
Debit | Credit | |
In: Accounting
Use standard free energies of formation to calculate ΔG∘ at 25∘C for each of the following reactions. Answers must be in Kj.
Part A N2O4(g)→2NO2(g) Express your answer using two significant figures.
Part B NH4Cl(s)→HCl(g)+NH3(g) Express your answer using three significant figures.
Part C 3H2(g)+Fe2O3(s)→2Fe(s)+3H2O(g) Express your answer using three significant figures.
Part D N2(g)+3H2(g)→2NH3(g) Express your answer using three significant figures.
Part E How do the values of ΔG∘ calculated this way compare to those calculated from ΔH∘ and ΔS∘? Which of the two methods could be used to determine how ΔG∘ changes with temperature? Essay answers are limited to about 500 words (3800 characters maximum, including spaces). 3800 characters maximum.
In: Chemistry
2. Compare the social evolution theory of social change with the equilibrium model as proposed by Talcott Parsons. Evaluate the relative merits of the two approaches using real world examples of recent and significant social change. (150 word minimum
In: Psychology
Ringer's lactate, a solution containing several different salts, is often administered intravenously for the initial treatment of trauma patients. One liter of Ringer's lactate continas 0.102 mole of sodium chloride, 4.0 × 10-3 mole of potassium chloride, 1.5 × 10-3 mole of calcium chloride, and 2.8 × 10-2 mole of sodium lactate. Determine the osmotic pressure (in atm) of the solution at normal body temperature (37oC). Assume no ion pairing. (The formula of the lactate ion is HO-CH(CH3)-COO-.)
In: Chemistry