Questions
(USE C ++ AND class STRING ONLY!!!! No java, No cstring and No vector) Write a...

(USE C ++ AND class STRING ONLY!!!! No java, No cstring and No vector)

Write a program that can be used to train the user to use less sexist language by suggesting alternative versions of sentences given by the user. The program will ask for a sentence, read the sentence into a string variable, and replace all occurrences of masculine pronouns with genderneutral pronouns.

For example, it will replace "he" with "she or he".

Thus, the input sentence

See an adviser, talk to him, and listen to him.

should produce the following suggested changed version of the sentence:

See an adviser, talk to her or him, and listen to her or him.

Be sure to preserve uppercase letters for the first word of the sentence. The pronoun "his" can be replaced by "her (s)"; your program need not decide

between "her" and "hers". Allow the user to repeat this for more sentences until the user says she or he is done.

This will be a long program that requires a good deal of patience. Your program should not replace the string "he" when it occurs inside another word, such as "here". A word is any string consisting of the letters of the alphabet and delimited at each end by a blank, the end of the line, or any other character that is not a letter. Allow your sentences to be up to 100 characters long.

In: Computer Science

magine a table is given as following. This table is called lookup table. The table works...

magine a table is given as following. This table is called lookup table. The table works as following. It assigns a number to some uppercase or lowercase alphabents as shown in the table.

A B F M N P Q W Z

letter

number

letter

Number

12

e

8

  

10

f

3

  

5

i

2

  

4

m

0

  

0

n

1

  

11

p

2

  

10

q

3

  

9

r

4

  

9

s

5

      

  1. 1- Design and implement a function with 2 parameters: 1- a string (a word) 2- a variable that represents the above lookup table. The function converts the string to a number and returns it. This function replaces each character in the string with its corresponding number from the above table. If the character does not exist in the above table, the function replaces it with 0. The function will eventually return the number.

  2. 2- Define a main function and call the method you designed in 1. When calling the above function in the main method, pass to the function the word “We have missed Vancouver’s summer” and the above lookup table. What is the output of the function for the this word, “We have missed Vancouver’s summer” ?

  3. python code

In: Computer Science

Suppose that there are three different populations we want to compare, say P1, P2 and P3....

Suppose that there are three different populations we want to compare, say P1, P2 and P3. Each of these populations are normal. A random sample from each population is taken and the results are given below.

P1 P2 P3

10 6 5

12 8 9

9 3 12

15 0 8

13 2 4

a) Find the sample means and sample variance for each sample. Use Excel and record the results in your Word document.
b) Combine all samples and find the mean of the data set with 15 data points. Call this the grand mean.
c) Use Excel to create a graph that illustrates the sample means and the grand mean. Copy and paste your graph into your Word document.
d) Based on parts a, b and c do the sample means appear to be approximately equal?

Using the data from this problem, perform a one-way ANOVA test. Be sure to give the hypotheses, the value of F, the p-value, and the conclusion. Copy and paste the software output into your Word document.

Using the data from the first problem above, use the formulas given in the textbook to calculate F using the MSG and MSE.

In: Statistics and Probability

Please answer all discussion questions and answer the case study questions. Discussion Topic: Are the cognitive...

Please answer all discussion questions and answer the case study questions.

  1. Discussion Topic: Are the cognitive skills of a child affected by their nutrition?
  2. Discussion Topic: What is the primary cause of fatal ingestions in children younger than 5 years of age? Discuss button battery ingestion.
  3. Case Study: Sally is a 3-year-old girl in the primary care physician’s office. Sally’s mother states that she is having “temper tantrums.”

Subjective Data

Mother states Sally eats well.

Sally sleeps 11 to 12 hours a day.

Sally speaks in four- to five-word sentences.

Objective Data

Birth weight: 3 kg

Today’s weight: 13 kg

Height: 90 cm

Sally speaks in three- to four-word sentences with a 300-word vocabulary.

Questions: Please only provide short answers for the case study section. No more than 2 sentence response for the case study section. Follow the guidelines below for the discussion section.

  1. Is Sally’s vocabulary appropriate for her age?
  2. Are Sally’s height and weight appropriate for her age?
  3. What information can Sally’s nurse give about her temper tantrums?
  4. What is the goal of discipline for a preschooler?

In: Nursing

Please answer all discussion questions and answer the case study questions. Discussion Topic: Are the cognitive...

Please answer all discussion questions and answer the case study questions.

  1. Discussion Topic: Are the cognitive skills of a child affected by their nutrition?
  2. Discussion Topic: What is the primary cause of fatal ingestions in children younger than 5 years of age? Discuss button battery ingestion.
  3. Case Study: Sally is a 3-year-old girl in the primary care physician’s office. Sally’s mother states that she is having “temper tantrums.”

Subjective Data

Mother states Sally eats well.

Sally sleeps 11 to 12 hours a day.

Sally speaks in four- to five-word sentences.

Objective Data

Birth weight: 3 kg

Today’s weight: 13 kg

Height: 90 cm

Sally speaks in three- to four-word sentences with a 300-word vocabulary.

Questions: Please only provide short answers for the case study section. No more than 2 sentence response for the case study section. Follow the guidelines below for the discussion section.

  1. Is Sally’s vocabulary appropriate for her age?
  2. Are Sally’s height and weight appropriate for her age?
  3. What information can Sally’s nurse give about her temper tantrums?
  4. What is the goal of discipline for a preschooler?

In: Nursing

Please answer all discussion questions and answer the case study questions. Discussion Topic: Are the cognitive...

Please answer all discussion questions and answer the case study questions.


Discussion Topic: Are the cognitive skills of a child affected by their nutrition?
Discussion Topic: What is the primary cause of fatal ingestions in children younger than 5 years of age? Discuss button battery ingestion.
Case Study: Sally is a 3-year-old girl in the primary care physician’s office. Sally’s mother states that she is having “temper tantrums.”

Subjective Data


The mother states Sally eats well.
Sally sleeps 11 to 12 hours a day.
Sally speaks in four- to five-word sentences.
Objective Data
Birth weight: 3 kg
Today’s weight: 13 kg
Height: 90 cm


Sally speaks in three- to four-word sentences with a 300-word vocabulary.
Questions: Please only provide short answers for the case study section. No more than 2 sentence response for the case study section. Follow the guidelines below for the discussion section.
Is Sally’s vocabulary appropriate for her age?
Are Sally’s height and weight appropriate for her age?
What information can Sally’s nurse give about her temper tantrums?
What is the goal of discipline for a preschooler?

In: Nursing

Assume a computer with a cache that holds 64 bytes and has a block size of...

Assume a computer with a cache that holds 64 bytes and has a block size of 32 bytes. Direct address mapping is used and from the beginning the cache is empty. The following program sequence is executed:

for (col = 0; col < 2; col++) {

for (row = 0; row < 4; row++)

A[row][col] = B[row] * C[col]; }

Assume that for the variables row and col registers are used.
The matrix A consists of 4 rows and 4 columns with integers (one word long). A is located in the RAM with start address 0 and is stored in rows (A [0] [0], A [0] [1], ... ).
Array B consists of 4 integers (one word long). B is located in RAM with start address 64.
The arrayC consists of 4 integers (one word long). C is located in RAM with start address 80.
What will be the hit probability for the program sequence? What will be the hit probability if 2-way set associative address mapping (with LRU when changing blocks) is used instead of direct address mapping? Also write explanations of how the calculations are done and interpret the results. (Note that the outer loop runs twice and the inner one four times. There will be a total of 24 memory references.)

In: Computer Science

Discussion 2.1 Required! Please answer the discussion question (click above) with at least a 150+ word...

Discussion 2.1 Required! Please answer the discussion question (click above) with at least a 150+ word response by Thursday night of this week. You must also respond to two fellow classmate or myself with a response using 100+ words in regards to the discussion question by Sunday, 01/21/17 at 11:55 PM. OBJECTIVE: Explain theories of learning and methods used for shaping behavior DISCUSSION OVERVIEW: This discussion forum examines the relationship between behavior and managerial duties. DELIVERABLE: Participation in the discussion forum, including the following: Responses to the initial questions - with at least a 150 + word response Responses to at least two other students' posts - 100+ word response

Step 1: Post on the discussion board. Post your response to the following questions on the discussion board. If appropriate, include personal experience in your response.

What conditions, if any, do you think justify the use of punishment?

Do you think most managers use punishment? If so, why?

What's the downside of using punishment? Of using positive reinforcement?

Have you ever worked for a boss who used punishment? What was your behavioral response?

ps. this intro organizational behavior business not economic

In: Economics

using java LO: (Apply) Students will write loops that iterate until a condition is met. LO:...

using java

LO: (Apply) Students will write loops that iterate until a condition is met.

LO: (Analyze) Students will identify edge cases from a problem statement.


In this game of volleyball, two teams compete to be the first team to score 21 points. However, to win the game, a team must also lead by two points.

For example, if team A is tied with team B (20-20) and then scores, they will only be ahead by one point (21-20). Then, if team B scores a point, the game will be tied again (21-21). Then, if either team can score two consecutive points, they will win.

Write a program that reads data about volleyball matches from standard input and then determines the outcome of the game. If the input word is "A" it means that team A scored a point. If the input word is "B" it means that team B scored a point. If the input word is "end" it means that the game ended. Calculate the scores and announce the team that won or that the game was a draw. Display the game result in this format:

Team A won! (21-14)

starter code :

import java.util.Scanner;

/*
* Determines the outcome of a volleyball game.
*/
public class Volleyball {
public static void main(String[] args) {



System.exit(0);
}
}

In: Computer Science

You are a new graduate registered nurse working in the paediatric ward of your local hospital....

You are a new graduate registered nurse working in the paediatric ward of your local hospital.

Sam Nicolaides is a nine-year-old boy who until recently has been in good health. Sam lives with his mother and father and two siblings. Following a respiratory virus a few weeks ago he has been slow to recover, lacking in his usual energy. He has been hungry and thirsty all the time, and has recently begun wetting the bed, which he has not done for many years.

Sam presented to the Accident and Emergency department two day ago with nausea, abdominal pain and feeling generally unwell. His observations taken on admission were:

Blood pressure 80/50mmHG, pulse 140, respiratory rate 28 deep and sighing with an unusual sweet smell to the breath, oxygen saturation 100%, temperature 37.2 degrees Celsius. Urinalysis SG1025, pH 5, sugar++++ ketones+++ no other abnormalities. BGL 28mmol/L.

A medical diagnosis of Diabetes type 1 with keto-acidosis was made.

Question 6. Maximum word limit 120 words (approximately 30 words per section)

Briefly explain the pathophysiology causing the following symptoms Sam was experiencing on admission:

  1. Glycosuria
  2. Thirst
  3. Ketonuria
  4. Kussmaul breathing

Question 7. Maximum word limit 50 words.

List four (4) ongoing nursing assessments, other than vital signs, that will be required to monitor Sam’s fluid status and ensure safe fluid replacement therapy over the next 48 hours.

Question 8. Maximum word limit 150 words.

Explain the concept of family centred care and why this is important to the physical and psychological care for Sam.

Question 9. Maximum word limit 150.

For the ongoing management of type 1 diabetes, current best practice recommends an intensive insulin therapy regime called multiple dose insulin (MDI) or basal/bolus regime. Explain:

  1. What this insulin regime involves and
  2. Discuss why this is considered best practice management for type 1 diabetes.

Question 10. Maximum word limit 150 words

Explain what the HbA1c test is and why it is important in the management of patients with diabetes.

In: Nursing