Questions
1. Write a method called isPalindrome that accepts a string as a parameter and returns true...

1. Write a method called isPalindrome that accepts a string as a parameter and returns true if the string is a palindrome otherwise returns false. This method uses a stack and a Queue to test whether the given string parameter is a palindrome [ that is, whether the characters read the same both forward and backward. For example ā€œrace carā€, and ā€œAre we not drawn onward, to new era.ā€ are Palindromes] They are palindrome sentences, not just a word. 2. If a string is a palindrome, do not print it out, just print a message that the given string is a Palindrome. If a string is not a palindrome, print the letters of the string in reverse order. 3. Your application prompts the user for the input string. 4. You must use a stack and a queue to do this. (You have to figure out how both can be used.) Any solution that does not use a stack and a queue for the palindrome checking and reversing the letters of the words of the sentence will receive a grade of 0.

In: Computer Science

The topic for the paper I need assistance on is the long term effects of the...

The topic for the paper I need assistance on is the long term effects of the coronavirus on business and society.

A large number of businesses have closed, unemployment claims have risen to an all-time high, the US stock markets have tumbled in a manner not seen since the great depression, and all this is happening just a few months after we saw the economy achieve a series of all-time low unemployment records for different groups along with all-time high stock market averages.

With all these things in mind, my assignment is to select an industry that is of interest to you and then write a short essay on the changes that you believe will take place in that industry, its firms, the operating procedures of firms and possibly also in available jobs and job requirements. I was thinking small restaurant business industry,

I need assistance with this 500-word essay. Thank you!

In: Operations Management

Please post a screenshot of excel file. Application assignment: using Excel Descriptive Statistics of Quantitative Data...

Please post a screenshot of excel file.

Application assignment: using Excel

Descriptive Statistics of Quantitative Data (measured on Ratio scale).

Use this file for submission, but use Excel to do your work and copy and paste in the appropriate places identified in this word file.

Note: The following Excel functions in answering Questions 1 and 2 below.

AVERAGE , AVEDEV, COUNT, CORREL, MIN, MAX, MDIAN, MODE, STDEV , STDEVP, STDEV.P, and STDEV.S

Q4.

  1. Use the x data and define a new variable called U=X+10 by adding 10 to each of the x values.

Use the data for U and reuse Data Analysis descriptive Option to calculate the descriptive statistics of U.

Insert your answer here:

Descriptive for the U values:  

  1. Compare the results for X with that of U and report the differences.

Insert your comparison answer here:

In: Computer Science

As you analyze any modern corporate setup, you will see that companies want to ensure that...

As you analyze any modern corporate setup, you will see that companies want to ensure that all users are aware of their own individual responsibility to help protect the enterprise. Social engineering (SE) is becoming a more prevalent threat at all levels of business. To combat it, you first need to understand it. Therefore, you must complete the following: Describe what social engineering is and explain its existence and prevalence. Explain why SE is an important part of an information technology security course. Discuss employee and management responsibilities with regard to information security and combating SE. Make sure your work clarifies your opinion as to who carries more responsibility for preventing SE-the employees or management. Provide examples to back up your statements. Prepare a 1-2 page Word document that covers the above areas.

In: Computer Science

User Python to solve; show all code: A user will enter in data for a basketball...

User Python to solve; show all code:

  1. A user will enter in data for a basketball team. For each player on the team the user will enter
    1. The player’s last name
    2. The average number of point the player scored last season
    3. The number of games the player is projected to play in this year

Write a program that will prompt the user for the player data described above. The user does not know how many players are on the team so allow the user to enter the word end when he/she has finished entering data.

Validate that the player is not entered more than once.

After entering the data, compute the following:

  1. The projected number of points the team will score this year. Assume the player will score the same number of points per game as they did last season.
  2. The name of the player who is projected to score the most points this year. Also display the projected number of points.

In: Computer Science

Consider the following two investors’ portfolios consisting of investments in four stocks: Stock Beta Jack's Portfolio...

Consider the following two investors’ portfolios consisting of investments in four stocks:
Stock Beta Jack's Portfolio Nelson's Portfolio
A 1.3 $2,500 $10,000
B 1.0 $2,500 $5,000
C 0.8 $2,500 $5,000
D -0.5 $2,500 $2,500
Portfolio Expected Return 10% 9%
(a)
Calculate the beta on portfolios of Jack and Nelson respectively.

(b) Assuming that the risk-free rate is 4% and the expected return on the
market is 12%, determine the required return on portfolios of Jack and
Nelson respectively.

(c) From your answers in part (b), explain whether portfolios of Jack and
Nelson are over-priced, under-priced or correctly priced.

(d) State and explain whether the following statement is true or false:
ā€œIf a security lies above the security market line (SML), then it must be
over-priced.ā€ (word limit: 150 words)

In: Finance

Consider the following simple script incorporating a for loop: #!/bin/bash RED='\033[0;31m' NC='\033[0m' clear; cd /home for...

Consider the following simple script incorporating a for loop:

#!/bin/bash
RED='\033[0;31m'
NC='\033[0m'
clear; cd /home
for DIR in $HOME; do
#for DIR in *;do
CHK=$(grep -c "/home/$DIR" /etc/passwd)
if [ $CHK -ge 1 ]
then
echo -e "${NC}$DIR is good"
else
echo -e "${RED}ALERT! $DIR is NOT good!"
fi
done

What kind of script is presented above? How did you make your determination? What is the purpose of the script?

In lines #5/6, what is the type of $DIR?

In line #7, what is the value of $CHK?

In line #8, what are the instructions contained with the brackets known as?

Why are there two lines containing the word "for"? Which line will execute? Will that line execute correctly?

What should you do before running the script?

How could the script be factored into your duties as a sysadmin?

In: Computer Science

How can I make this not add to the counter when the guess is right? void...

How can I make this not add to the counter when the guess is right?

void guessGenerator(string hangmanStar, string wordFromWordtxt)  
{

   char temp = '\0';
   bool win = false;
   int counter = 0;

   while ((win == false) || (counter == 7))
   {
       char temp;
       cout << hangmanStar << endl;
       cout << "? ";
       cin >> temp;
       counter++;

       for (int i = 0; i < wordFromWordtxt.length(); i++)
       {
           if (wordFromWordtxt.at(i) == temp)
           {
               hangmanStar.at(i) = temp;
           }
       }

       if (wordFromWordtxt == hangmanStar)
       {
           win = true;
           cout << "You win." << endl;
           cout << "The word was: " << hangmanStar << endl;
       }
       else if (counter == 7)
       {
           hangManPicture(counter);
           cout << endl;
           cout << "You lost" << endl;
           cout << "Answer: " << wordFromWordtxt << endl;
           return;
       }
       else
       {
           if (hangmanStar.find(temp) == string::npos)
           {
               cout << endl;
               cout << "Oops";
               hangManPicture(counter);
               cout << endl;
           }
           else
           {
               hangManPicture(counter);
               cout << endl;
           }          
       }
   }
   return;
}

In: Computer Science

Disorder At-a-Glance STEP 1: Pick one of the disorders you read about in this module and...

Disorder At-a-Glance STEP 1: Pick one of the disorders you read about in this module and learn more about it in order to make a ā€œAt-a-Glanceā€ page with details about the disorder. Visit the National Institute of Mental Health and search for the disorder, read through the information, then scroll to the section on ā€œResearch and Statisticsā€ or ā€œJournal Articles or Reportsā€ to find helpful links to outside information. Look elsewhere as well for details about the prevalence, signs, symptoms, details, and research related to the disorder. Keep track of all of your sources as you investigate. STEP 2: In a format of your choosing (Microsoft Word, PowerPoint, etc.), create a 1 page visual that includes the following information about the disorder: Description Prevalence Causes and Risk Factors Recent Research (referencing at least 2 research articles) Either as a footnote on the same page, or on a separate page, include the citations in APA format

In: Psychology

The needs of the pediatric patient differ depending on age, as do the stages of development...

The needs of the pediatric patient differ depending on age, as do the stages of development and the expected assessment findings for each stage. In a 500‐750‐word paper, examine the needs of a school‐aged child between the ages of 5 and 12 years old and discuss the following:

  1. Compare the physical assessments among school‐aged children. Describe how you would modify assessment techniques to match the age and developmental stage of the child.
  2. Choose a child between the ages of 5 and 12 years old. Identify the age of the child and describe the typical developmental stages of children that age.
  3. Applying developmental theory based on Erickson, Piaget, or Kohlberg, explain how you would developmentally assess the child. Include how you would offer explanations during the assessment, strategies you would use to gain cooperation, and potential findings from the assessment. CITE REFERENCE

In: Nursing