Questions
SCENARIO - Imagine that you are an Administration Manager of several In-Office Employees and several Remote...

SCENARIO - Imagine that you are an Administration Manager of several In-Office Employees and several Remote Virtual Employees. Both sets of employees use the same company owned Virtual Private Network (V.P.N.) when performing business assignments with clients. In-Office Employees use company computers and Remote Virtual Employees use their personal laptops.

TASK 1: Should the in-office employees and the remote virtual employees be held to the same "code of business ethics" when conducting work assignments.

TASK 2: Should one group of employees be given more freedom and privileges than the other employee group.

100-word minimum.

In: Operations Management

Strategic Marketing: Porter’s Value Chain is made up of Primary Stages and Support Activities. Use a...

Strategic Marketing:

Porter’s Value Chain is made up of Primary Stages and Support Activities.

Use a matrix to show how Porter’s Value Chain can be used to make decisions about which of Porter’s Generic Strategies is appropriate for a company to use.

To do this, set up a table that lists each of Porter’s Generic Strategies as a column heading and each of the primary stages and support activities of Porter’s Value Chain as rows. Fill in the appropriate cells to explain where the value chain analysis may provide insights into the different strategy type options.

Use examples to aid your description.

Word-count: 500 words maximum.

In: Operations Management

Select one of the key concepts from below for your Discussion response for this week. Be...

Select one of the key concepts from below for your Discussion response for this week. Be sure to identify the name of the organization. If organization’s name needs to stay anonymous, please check with the instructor ahead of time regarding how to approach that.

  • Discuss different types of operations management and project management activities that occur at the organization of your choice.
  • Provide examples of single-factor and multifactor productivity measures.
  • Provide two examples of operations management activities at an organization you considered and its inputs and outputs, productivity measures, and classify whether it is a goods or services producing organization.

Be sure to post an initial, about 250-word substantive response

In: Operations Management

3 Food and Beverage The food industry has many acronyms that make it easier to remember...

3 Food and Beverage

The food industry has many acronyms that make it easier to remember food safety terms and actions to control foodborne illness. Managers must know what safety precautions are necessary.

Food, Acidity, Temperature, Time, Oxygen, and Moisture is often referred to with the acronym FATTOM. Read the scenario and respond to the checklist item.

Scenario: You are catering a wedding buffet in August outside on a venue’s terrace for a wedding reception for 200 people that begins at 6 p.m. when you know it will be 80 degrees Fahrenheit.

Checklist:

  • Explain the impact this acronym FATTOM has on the food and beverage safety for the buffet.

250 word minimum

In: Operations Management

6 Food AND Beverage As you learned in your Reading, procurement or purchasing is the precursor...

6 Food AND Beverage

As you learned in your Reading, procurement or purchasing is the precursor to the rest of the foodservice management system. In this Journal assignment, you will decide both a purchasing method and process based on your understanding of the readings. Read the scenario and address the checklist items in a thorough response. Scenario: You are the new Beverage Manager at a new large hotel that has banquets and has several restaurants. You are tasked with deciding on the purchasing method and process for purchasing all the alcoholic beverages at the hotel. Checklist: Identify and explain the purchasing method will you use and why. Provide the purchasing process will you use and explain why.

250 word minimum

In: Operations Management

Case Study Preschool age Child Early Childhood Development Sally is a 3-year-old girl in the primary...

Case Study Preschool age Child Early Childhood Development Sally is a 3-year-old girl in the primary care physician’s office. Sally’s mother states that she is having “temper tantrums.” Sally’s mother expresses concern about childhood obesity and is worried that she sleeps too much 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: 23 kg Height: 90 cm Sally speaks in three- to four-word sentences with a 300-word vocabulary. Assignment: You are to complete the following case study using your textbook and find one current journal article related to your patient’s diagnosis. Submit a paper summarizing the article in 3-4 sentences and explain why this is applicable to your patient. Cite the journal article within the note using APA format. You are required to submit a handout on nutritional guidelines for the preschool-age child. Submit the appropriate WHO growth chart for this child. Questions: 1. Is Sally’s vocabulary appropriate for her age? 2. Are Sally’s height and weight appropriate for her age?(Use WHO growth charts) 3. What should the nurse tell Sally’s mother when discussing her concerns about childhood obesity? 4. What can Sally’s mother do to help Sally maintain a healthy weight (based on WHO growth chart)? 5. What are the nutritional guidelines for a Preschool age child? Cite reference 6. How can parents get their preschoolers to eat nutritional foods? 7. What websites would you recommend for parents? 8. Create a reference handout for parents. Assign students to research Web sites that offer guidance on how parents can get their children to eat nutritional foods. 9. What information can Sally’s nurse give about her temper tantrums? 10. What is the goal of discipline for a preschooler? 11. What is the recommend sleeping guidelines for a preschooler? (CITE reference) 12. What are the appropriate interventions to address problems with sleeping in the preschooler? 13. What immunizations should the child have for this age? 14. What are the common intestinal parasitic diseases in children? 15. What medications and dosages are recommended for treating intestinal parasitic diseases in children? 16. What is the anticipatory guidance for the preschool-age children?

In: Nursing

this program is to be done in c language. Using Pointers Create a program pointerTester.c to...

this program is to be done in c language. Using Pointers Create a program pointerTester.c to experiment with pointers. Implement the following steps one by one in your program: YOU NEED TO ANSWER QUESTION Use printf to print your answers at the end(after 12). 1. Declare three integer variables a, b and c. Initialize them to 0, 100 and 225, respectively. 2. Print the value of each variable and its address. 3. Add the following declaration to your code: int *pA = &a, *pB = &b, *p; 4. Print the value of each pointer and the value it points to (using the pointer) 5. Run your program multiple times. a. Does any of the values *pA, *pB or *p change? b. Does any of the values pA, pB or p change? 6. Change the value that p points to to 50 without declaring the valuable that p points to. Can you print the value that p points to? 7. Declare an array z of 10 integers and initialize its elements to 0, 1, 2, …., 9 8. Print the address of each element in the array using the z[i] notation 9. Print the address of each element in the array using the z + i notation 10. Print the content of the array using z + i notation 11. Declare a string literal x and set it to value “hello”. 12. Change the second character of x to upper case. What happens? Strings Write a program reading.c that reads from standard input according to the user’s choice. The program should ask “How would you like to read?” 1: character by character; 2: word by word; 3: line by line. Default: print “Invalid choice”. You should write the three procedures below. - The procedure readCharByChar asks the user to enter 5 characters and read them (hint: using %c). - The procedure readWordByWord asks the user to enter 5 words and read them (hint: using %s). - The procedure readLineByLine should ask the user to enter 5 lines and read them (hint: using gets). In each of the three procedures, the values read should be printed to the screen, each on a separate line showing: input index, tab, unit (char, word, or line). According to the user choice, your program uses a switch statement to call readCharByChar, readWordByWord, and readLineByLine, respectively. Make sure your code is properly indented, your variables have meaningful names, and macro definitions are used when appropriate.

In: Electrical Engineering

The final step in our authorship attribution system will be to perform authorship attribution based on a selection of sample documents from a range of authors, and a document of unknown origin.

Python3

The final step in our authorship attribution system will be to perform authorship attribution based on a selection of sample documents from a range of authors, and a document of unknown origin. You will be given a selection of sample documents from a range of authors (from which we will learn our word frequency dictionaries), and a document of unknown origin. Given these, you need to return a list of authors in ascending order of out-of-place distance between the document of unknown origin and the combined set of documents from each of the authors. You should do this according to the following steps: compute a single dictionary of word frequencies for each author based on the combined set of documents from that author (provided in the form of a list of strings) compute a dictionary of word frequencies for the document of unknown origin compare the document of unknown origin with the combined works of each author, based on the out-of-place distance metric calculate and return a ranking of authors, from most similar (smallest distance) to least similar (greatest distance), resolving any ties in the ranking based on an alphabetic sort You have been provided with reference implementations of the functions authattr_worddict and authattr_oop from the preceding questions in order to complete this question, and should make use of these in your solution. These are provided via the from hidden_lib import authattr_worddict, authattr_oop statement, which must not removed from the header of your code for these functions to work. Write a function authattr_authorpred(authordict, unknown, maxrank) that takes three arguments: authordict: a dictionary of authors (each of which is a str), associated with a non-empty list of documents (each of which is a str) unknown: a str contained the document of unknown origin maxrank: the positive int value to set maxrank to in the call to authattr_oop and returns a list of (author, oop) tuples, where author is the name of an author from authordict, and oop is the out-of-place distance between unknown and the combined works of author, in the form of a float.

For example:

>>> authattr_authorpred({'tim': ['One One was a racehorse; Two Two was one too', 'How much wood could a woodchuck chuck'], 'einstein': ['Unthinking respect for authority is the greatest enemy of truth.', 'Not everything that can be counted counts, and not everything that counts can be counted.']}, 'She sells sea shells on the seashore', 20) [('tim', 287.0), ('einstein', 290.0)] >>> authattr_authorpred({'Beatles': ['Hey Jude', 'The Fool on the Hill', "A Hard Day's Night", "Yesterday"], 'Rolling Stones': ["(I Can't Get No) Satisfation", 'Ruby Tuesday', 'Paint it Black']}, 'Eleanor Rigby', 15) [('Beatles', 129.0), ('Rolling Stones', 129.0)]

In: Computer Science

Objectives To develop a recursive solution that reurns a tuple To develop a program that manages...

Objectives

To develop a recursive solution that reurns a tuple
To develop a program that manages bad input
Description

Write a program (sumAndCount.scala) that uses a recursive function that reads Int values from a user one at a time until the user types in the word "quit" (case insensitive!). Your function should return a tuple containing 2 Int values. The first should be the sum of all the Ints, and the second should be the number of Ints entered. Your main program should call this function, and print out the average (rounded) of the values that were entered. Note: You will also need to manage bad input! If the user types something in that isn't an Int or the word "quit", your program should print an error message and ask again! As always, pay close attention to the specific messages that your program must print.

Remember: You don't want any side effects with recursion, so you should not use any "global" variables in your program!

Sample Run 1

$ scala sumAndCount.scala
Enter an Int (type "quit" to quit):
>3
Enter an Int (type "quit" to quit):
>55
Enter an Int (type "quit" to quit):
>78
Enter an Int (type "quit" to quit):
>2
Enter an Int (type "quit" to quit):
>Quit
The average of your 4 numbers is 35
Sample Run 2

$ scala sumAndCount.scala
Enter an Int (type "quit" to quit):
>2
Enter an Int (type "quit" to quit):
>3
Enter an Int (type "quit" to quit):
>4.0
That is not an Int or "quit"!
Enter an Int (type "quit" to quit):
>4
Enter an Int (type "quit" to quit):
>5
Enter an Int (type "quit" to quit):
>quiT
The average of your 4 numbers is 4
Sample Run 3

$ scala sumAndCount.scala
Enter an Int (type "quit" to quit):
>3
Enter an Int (type "quit" to quit):
>78
Enter an Int (type "quit" to quit):
>2
Enter an Int (type "quit" to quit):
>245
Enter an Int (type "quit" to quit):
>quiit
That is not an Int or "quit"!
Enter an Int (type "quit" to quit):
>quit
The average of your 4 numbers is 82
Hints

Similar to the previous assignment, write 2 recursive functions. In this case, however, your function should check to make sure that the user enters eith an Int or the word "quit"
Consider (carefully!) what type of read you would need to use to accept either an Int or a String (in case the user enters "quit") Both are legal!
use the following prototype for your main recursive function:
def sumAndCount: (Int,Int) = { ... }
ACTIONS

In: Computer Science

Question from Operating Systems Proc,Forks,Exec Examine the code given and do changes as mentioned in the...

Question from Operating Systems

Proc,Forks,Exec

Examine the code given and do changes as mentioned in the steps below:

#include "HALmod.h"

int GetCommand (string tokens [])
{
string commandLine;
bool commandEntered;
int tokenCount;

do
{
cout << "HALshell> ";
while (1)
{
getline (cin, commandLine);
commandEntered = CheckForCommand ();
if (commandEntered)
{
break;
}

}
} while (commandLine.length () == 0);

tokenCount = TokenizeCommandLine (tokens, commandLine);

return tokenCount;
}

int TokenizeCommandLine (string tokens [], string commandLine)
{
char *token [MAX_COMMAND_LINE_ARGUMENTS];
char *workCommandLine = new char [commandLine.length () + 1];
int i;
int tokenCount;

for (i = 0; i < MAX_COMMAND_LINE_ARGUMENTS; i ++)
{
tokens [i] = "";
}
strcpy (workCommandLine, commandLine.c_str ());
i = 0;
if ((token [i] = strtok (workCommandLine, " ")) != NULL)
{
i ++;
while ((token [i] = strtok (NULL, " ")) != NULL)
{
i ++;
}
}
tokenCount = i;

for (i = 0; i < tokenCount; i ++)
{
tokens [i] = token [i];
}

delete [] workCommandLine;

return tokenCount;
}


//Do not touch the below function
bool CheckForCommand ()
{
if (cullProcess)
{
cullProcess = 0;
cin.clear ();
cout << "\b\b \b\b";
return false;
}

return true;
}

  

int ProcessCommand (string tokens [], int tokenCount)
{
if (tokens [0] == "shutdown" || tokens [0] == "restart" || tokens [0] == "lo")
{
   if (tokenCount > 1)
   {
        cout << "HALshell: " << tokens [0] << " does not require any arguments" << endl;
   return 1;
   }
   cout << endl;
   cout << "HALshell: terminating ..." << endl;

return 0;
  
}
else
   return 1;
}
char ** ConvertToC (string tokens [], int tokenCount)
{
char ** words;
words = (char **) malloc (sizeof (char*) * tokenCount);

for (int i=0; i<tokenCount; i++)
{
words[i]=strdup(tokens[i].c_str());
}
return words;
}

Step 1- Modify the "ConvertToC" function ( last function) as mentioned:

1. allocate an extra "word" for NULL (Hint: tokenCount+1)
2. store the value of NULL into the extra "word"

Step 2- Modify the "ProcessCommand" function ( second last function) as mentioned:

You will be emulating a shell. First, the shell checks for specific commands ("shutdown", "lo", etc). If it does not recognize those commands then, a fork occurs and the child will execute the command as typed.

The algorithm to implement is as follows (Hint: add code inside the else):

1. fork to create a child and parent

2. the child will do the following:
Call the ConverToC function and capture the return into a char** variable
Call execvp sending it two arguments: the first element (or word) of the char** variable, and the entire array
Print an error message
exit

3. the parent will do the following:
wait for the child
return 1

4. don't forget to handle the error case of the fork


//Dont try to run the program, just do the following steps.

In: Computer Science