Questions
using recursion no loops allowed(for,while..ect) not allowed #4: Write a recursive function ‘bool palindrome(string s)’ that...

using recursion
no loops allowed(for,while..ect) not allowed

#4: Write a recursive function ‘bool palindrome(string s)’ that returns true if s is a palindrome and false if not.


#5: Write a recursive function 'void reverse(string &word)' that reverses the given input string.

string name = "damian";
reverse(name);
cout << name << endl;  //should display "naimad".

#6: Write a function 'string binary(int n)' that returns a string of 1's and 0's which is the binary representation of n.

cout << binary(43) << endl; // 101011

#7: Write a function 'int numTwos(int n)' which returns the number of 2's in the base-4 expansion of n.

cout << numTwos(2170) << endl; // 3

c++

In: Computer Science

Please provide new response Virtualization technology has dramatically changed the landscape of how servers are designed,...

Please provide new response

Virtualization technology has dramatically changed the landscape of how servers are designed, secured, and administered. The hypervisor market has become commoditized due to core feature overlap among most hypervisor vendors. While there are many hypervisor options in the market today–the Big 3 are VMware (ESXi), Microsoft (Hyper-V), and Citrix (XenServer). On the basis of your understanding of Virtualization technology , create a report in a Microsoft Word document addressing the following: Compare and contrast the Big 3 hypervisor options available in the market on the basis of factors such as:

Features Licensing costs Security Support Make a recommendation to Zeus Books on which hypervisor they should use to create a high availability web server environment.

In: Computer Science

Managers and employees have long expressed dislike and skepticism about performance appraisal, as it is typically...

Managers and employees have long expressed dislike and skepticism about performance appraisal, as it is typically practiced in organizations. Some HR practitioners and consultants, such as Samuel Culbert, have advocated getting rid of the standard performance appraisal programs. Culbert has suggested that the arguments typically given for performance appraisal are invalid and, in a word, “bogus.”  

a. Describe two arguments or reasons that are typically given in support of formal performance appraisals.

b. Then explain why Culbert and others who are skeptical of performance appraisal believe these arguments are weak or bogus.

c. Explain your perspective on whether performance appraisals are necessary, and why or why not. If you believe they are not necessary, explain what procedures, if any, you would recommend to fulfill the functions that performance appraisals are said to fulfill.

In: Operations Management

Activity #1 - Defining a Brand Image You may prepare this activity in the following formats:...

Activity #1 - Defining a Brand Image

You may prepare this activity in the following formats: Word Document, PDF, or PowerPoint.

Phase one:

Research one of your favourite brands. Define their Why-How-What. (Note: Do your research! For example, read the brand's website for their mission statement)

Phase two:

Search for 6 images that visually define the brand. Be sure to match the look and feel with your value proposition. (Note: Do not select and use images that represent their logo and products)

Phase Three:

Choose a digital channel that would be appropriate for the brand to use for marketing and provide justification on why that channel would be appropriate for communicating their value proposition. Then provide a suggestion of what type of content they could create for that channel.

In: Operations Management

i need this program to also print out the number of combinations #include <stdio.h> #include <string.h>...

i need this program to also print out the number of combinations

#include <stdio.h>
#include <string.h>
#define N 10

void generate(char *array, int n)
{
   if (n==0)
   {
       printf("%s\n",array);
       return;
   }
   for (int i = 0; i < n; ++i)
   {
       // generate all of the permutations that end with the last element
       generate(array, n-1);
       // swap the element
       char temp = array[n-1];
       array[n-1] = array[(n%2)*i];
       array[(n%2)*i] = temp;
   }
}

int main(int argc, char const *argv[])
{
   char array[N];
   printf("Enter word: ");
   scanf("%s",array);
   generate(array, strlen(array));
   return 0;
}

In: Computer Science

Implement a dictionary application using C++ with the following features: Load a dictionary file. Given a...

Implement a dictionary application using C++ with the following features:

  • Load a dictionary file.

  • Given a prefix string that the user specifies, print the first word or all words in the dictionary with that string as their prefix.

  • Given two strings A and B that the user specifies, replace all occurrences of A in the dictionary file with B.

  • Spawning a new editor (e.g., vim) to allow the user to modify the dictionary file. Save the dictionary file afterwards.

You must use either C or C++ to implement your dictionary application. All your source code must be put within one (1) file. You will only submit that one file.

Your program should not have any extra library dependencies.

Please provide the coding in C++.

In: Computer Science

In Chapter 28, you learned about the concept of comparative advantage. How does this principle apply...

In Chapter 28, you learned about the concept of comparative advantage. How does this principle apply to people/members in the church? In other words, you may consider that every individual within the Church community has a different/unique role (pastor, praise band leaders, server for meals, children’s ministry, etc) as gifted from God. How does the principle of comparative advantage relate to this situation? For you to receive full credit, please make sure you provide an accurate analysis based on the knowledge of comparative advantage to this given situation. Please do not refer to other sources, other than your textbook. (Due: Day 4(Thursday) by 11:59pm; word count: minimum 300 words).

In: Economics

If you could build your own personal computer, what components would you purchase? Put together a...

If you could build your own personal computer, what components would you purchase? Put together a list of the components you would use to create it, including a computer case, motherboard, CPU, hard disk, RAM, and DVD drive. How can you be sure they are all compatible with each other? How much would it cost? How does this compare to a similar computer purchased from a vendor such as Dell, HP or Apple?

Produce a Word document: outlining the components you would choose for a PC of your own design. Limit your cost to $1500. at the end write a paragraph summary explain why this would be better or worst than purchasing from Dell, HP or Apple etc.

In: Computer Science

Bill Daniels was an extraordinarily successful businessman whose professional career centered on integrity, honesty, respect, and...

Bill Daniels was an extraordinarily successful businessman whose professional career centered on integrity, honesty, respect, and a fair outcome for all involved. His ethical standards were practiced daily throughout his life from his first business in Casper, Wyoming, to his cable business success in Denver, Colorado, to the Bill Daniels Foundation he created, one of the largest foundations in the Rocky Mountain region. Bill Daniels was known as a man whose word was his bond.

Part I

Bill Daniels was born in Greely, Colorado, in 1920 and grew up during the Depression. After attending the New Mexico Military Institute and serving as a combat pilot during two world wars, Daniels began his first business in the early 1950s. He opened a small insurance agency in Casper, Wyoming, the Bill Daniels Company Insurance. When one of Daniels’s clients filed a final claim for $11,000 due to a loss the client had sustained, Daniels discovered the insurance company he had represented and written the policy on had declared bankruptcy. The policy that Daniels had written was worth nothing. Daniels felt personally liable since he had sold the insurance policy to the client and the client had purchased the policy based upon Daniels’s representation and word. Bill Daniels felt terrible. Eleven thousand dollars was a huge loss. Daniels knew he had done nothing wrong professionally; yet the client had made the purchase based upon Daniels’s advice and it was the client who now had no insurance coverage.

  1. What are the legal requirements since Daniels sold the policy? From a business perspective, what is Daniels’s obligation to the client? What is the ethical course of action for Daniels to take in this situation? What would you do if you were Daniels?

In: Operations Management

Respond to each item. Each response should be concise and between two and three paragraphs in...

Respond to each item. Each response should be concise and between two and three paragraphs in length.

Use MS Word to write your responses, and submit your answers to all three questions in one Word document.

Copy and paste each question within the document, so that your Instructor can see which question you are responding to.

Nurturing relationships between caring adults and children have the power to heal troubled lives" (Rice & Groves, 2005, p. 18). Based on the Child Trauma Toolkit and the essay "Respectful Teaching with Infants and Toddlers" from Concepts for Care, identify three strategies that can be used by child development professionals to develop nurturing relationships between adults and children. How can each of the practices you identified contribute to children's development of resiliency?

Appropriate guidance and socialization strategies support the healthy mental development of all young children. Based on the essay "Socialization and Guidance with Infants and Toddlers" from Concepts for Care and explain, using examples, how attention to developing and fostering healthy interactions within a respectful environment can both cultivate infant/toddler mental health and foster resilience.

Although children may unfortunately experience many different kinds of trauma, behavioral signs and symptoms of trauma are fairly consistent across children. Strategies supporting the development and learning needs of children who have been traumatized require quality, individualized caring and learning experiences that are in tune with each child's unique emotional needs (Rice & Groves, 2005). Review the Child Trauma Toolkit. Identify and explain two teaching strategies that meet the development and learning needs of all children, including those who are most needy, and two adaptations, or special considerations, that child development professionals may need to be mindful of with children who have been traumatized.

In: Nursing