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 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 (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.
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:
Insert your comparison answer here:
In: Computer Science
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:
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:
In: Computer Science
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 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 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 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 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:
In: Nursing