Questions
. Consider the 68 words in the following two sentences to be modeled as random variables....

. Consider the 68 words in the following two sentences to be modeled as random variables. The sentences contain words of 1 letter length to 10 letter length. Thus random variable x lies in the range 1 ≤ x ≤ 11

        “A single link flexible arm is a dynamic system with the first eigenvalue equal to zero and giving the primary rigid body motion and the eigenvalues greater than zero giving flexural vibration that may occur during the response. The object is to drive the arm tip to a constant steady state position in as fast a time as possible while keeping the arm tip vibration to a minimum.”

(A) Develop a bar graph for the number of words with a specific number of letters.

For example, in the phrase “This is an example for the type of words related to this problem”:   3 two letter words, 2 three letter words, 3 four letter words, 1 five letter word, 3 seven letter words.

(B) Calculate the probability density distribution and show it bar form. Use 1 for the transition from probability to probability density which makes these two the same.

(C)    Determine the mean μ and standard deviation σ.

(D)   Use part B result and determine the probability that a word falls between

            μ-σ and μ+σ.

   (E) If the system is modeled with a continuous normal probability distribution, determine the probability that a word falls between 6 and 9 letters.

In: Statistics and Probability

1. When a file is created on Linux Operating System, What are the default permissions of...

1. When a file is created on Linux Operating System, What are the default permissions of the file?

2. Write a command to find the total disk space used by a specific user on linux system?

3. What is "s" permission bit in a file?

4. Explain the difference between grep and egrep?

5. Write a command to list files where third letter is x or y?

6. Write command to remove array element with id 5?

7. Write a shell script that adds an extension “.deb” to all the files in a directory.

8. Write a command sequence or a script to insert a line “GHIJKLM” at every 10th line of a file?

9. Write a bash command or script to find all the files modified in less than 5 days and print the record count of each.

10. Explain the difference between $* and $@?

11. Given a file, replace all occurrence of word “DEF” with “ABC” from 5th line till end in only those lines that contains word “MNO”

12. Explain the difference between $$ and $!?

13. Write a bash command sequence to read all input to the command from file1 direct all output to file2 and error to file 3, how can I achieve this?

14. Write a bash command to find the count of lines containing word “CAT”.

15. What are the 3 standard streams in Linux?

In: Computer Science

Working in a technical field can be confusing because of all the acronyms. For example, CPU...

Working in a technical field can be confusing because of all the acronyms. For example, CPU means Central Processing Unit, HDMI means High-Definition Multimedia Interface, and SMART means Self-Monitoring Analysis and Reporting Technology. Wouldn't it be nice if there was a way to translate all these acronyms automatically?

Create a new file named Translate.java that contains the following method:

public static String expandAll(String[] acronyms, String[] definitions, String text)

This method should replace every instance of an acronym in the text with its corresponding definition. For example, expandAll({"JMU", "CS"}, {"James Madison University", "Computer Science"}, "JMU CS rocks!") would return the string "James Madison University Computer Science rocks!".

You may assume that the two arrays will be the same length. You may also assume that the text will be reasonable English with correct grammar. In particular, there will be only one space between each word. Each sentence will either end with a space or a newline character. Punctuation not at the end of the sentence will always be followed by whitespace (i.e., you should be able to handle "Hi, Mom" but you won't have to handle "Hi,Mom").

Be careful not to replace acronyms in the middle of a word. For example, the string "CS uses MACS!" should expand to "Computer Science uses MACS!", not "Computer Science uses MAComputer Science!". You might find it helpful to use a Scanner to process the string one word at a time.

In: Computer Science

Pattern matching using python3 re module Write a regular expression that will find out all the...

Pattern matching using python3 re module

Write a regular expression that will find out all the words that ends with 4 consecutive vowels at the end.

Example: import re

f=open("/usr/share/dict/american-english",'r')

pattern='a[a-z]*d$'

words=f.readlines()

matchlist=[word for word in words if re.match(pattern,word)]

===============================

Generate random string follow a specific pattern

You will take a username and ask user for the password. User has to enter a strong password in order to create his or her account. The criteria for strong password is, a) Starts with a letter a to z or A to Z b) Cannot end with a digit c) Total character should be 10 d) The character can be letter a to z or A to Z or digit 0 to 9 or _

You will show a message that account is successfully created if user enters a strong password. If a user does not enter a strong password, you will reject the user entered password and generate a strong password as follows: a) Starts with the first character of the user’s user name b) Ends with the last character of the user’s user name c) Total character should be 10 d) The character can be letter a to z or A to Z or digit 0 to 9 or _

Sample output: Account is successfully created

Another sample output: Week Password

Generating a Strong Password

The auto generated password: j57m9XoUGa

In: Computer Science

Your textbook mentions that relational operators can be used to compare letters and words, thanks to...

Your textbook mentions that relational operators can be used to compare letters and words, thanks to ASCII. This simple program will ask the user to enter two letters and then two words to see if we can really "sort" these entries alphabetically with relational operators.

Prompts:

This is a Letter and Word sorting program
Enter two different letters separated by a space: [assume user inputs: b a]

Enter two different words separated by a space: [assume user inputs: bob alex]

Output:

a goes before b
alex goes before bob

Notes and Hints:

1) Do NOT convert the user's entry to uppercase. Some of the test cases will be comparing lowercase to uppercase letters (the results are interesting!)

2) Don't worry about the possibility of the user entering the same letters/words or entering something else. Keep this program simple.

// VARIABLES
  

// INITIAL INPUT
cout << "This is a Letter and Word sorting program" << endl;
cout << "Enter two different letters separated by a space: ";
  
cout <<endl; // For Mimir
cout << "Enter two different words separated by a space: ";
  
cout << endl; // For Mimir

//Processing// LETTER ANALYSIS
// The < means letter1 is alphabetically before letter2
cout << letter1 << " goes before " << letter2 <<endl;
  
cout << letter2 << " goes before " << letter1 << endl;

// WORD ANALYSIS
// The < means word1 is alphabetically before word2
cout << word1 << " goes before " << word2 << endl;
cout << word2 << " goes before " << word1 << endl;

In: Computer Science

The purpose of this assignment is to develop a security program aligned with regulatory compliance and...

The purpose of this assignment is to develop a security program aligned with regulatory compliance and security control frameworks.

Select a company for the focus of your assignment. Using the following, map the standard controls to the regulatory compliance that would be appropriate for the organization:

  1. The "Security Controls Mapping Template."
  2. Regulatory compliance information, such as HIPAA, PCI, SOX, GLBA, etc.
  3. Security control frameworks, such as NIST, CIS, COBIT, COSO, ITIL, etc.

On the template, map the regulatory rules (one per line) and security controls (as many per line as necessary). List an enforcement or measurement policy, procedure(s), or process to audit the rule/controls applied.

Write a 500-word summary that defines the regulatory compliance and security controls and includes the following information:

  1. Overview of the company, goods, or services provided; the industry; and the customer demographics.
  2. Identification of compliance regulations to which the company must adhere (e.g., medical-based companies should apply HIPAA regulations) and an explanation of why adherence is essential.
  3. Justification for the selection of the control framework chosen to effectively implement the identified regulations.
  4. Paste a copy of the completed content of the "Security Controls Mapping Template" table into the Word document.

Submit the Word document and the completed "Security Controls Mapping Template."

Prepare this assignment according to the guidelines found in the APA Style Guide, located in the Student Success Center. An abstract is not required.

In: Operations Management

Working in a technical field can be confusing because of all the acronyms. For example, CPU...

Working in a technical field can be confusing because of all the acronyms. For example, CPU means Central Processing Unit, HDMI means High-Definition Multimedia Interface, and SMART means Self-Monitoring Analysis and Reporting Technology. Wouldn’t it be nice if there was a way to translate all these acronyms automatically?

Create a new file named Translate.java that contains the following method:

public static String expandAll(String[] acronyms, String[] definitions, String text)

This method should replace every instance of an acronym in the text with its corresponding definition. For example, expandAll({"JMU", "CS"}, {"James Madison University", "Computer Science"}, "JMU CS rocks!") would return the string “James Madison University Computer Science rocks!”.

You may assume that the two arrays will be the same length. You may also assume that the text will be reasonable English with correct grammar. In particular, there will be only one space between each word. Each sentence will either end with a space or a newline character. Punctuation not at the end of the sentence will always be followed by whitespace (i.e., you should be able to handle “Hi, Mom” but you won’t have to handle “Hi,Mom”).

Be careful not to replace acronyms in the middle of a word. For example, the string “CS uses MACS!” should expand to “Computer Science uses MACS!”, not “Computer Science uses MAComputer Science!”. You might find it helpful to use a Scanner to process the string one word at a time.

In: Computer Science

This is a homework question. It has to be done using JAVA language. And PAY ATTENTION...

This is a homework question. It has to be done using JAVA language. And PAY ATTENTION TO WHAT YOU CAN USE AND WHAT I SPECIFICALLY ADDED THAT CANT BE USED TO COMPLETE THIS.

Objective:

Write a program that takes in two words, and then it recursively determines if the letters of the first word are contained, in any order, in the second word. If the size of the first word is larger than the second then it should automatically return false. Also if both strings are empty then return true.

You May NOT: ******************************************************************************************

Use any iterative loops. In other words, no for-loops, no while-loops, no do-while-loops, no for-each loops.

Use the string method .contains(String)

You May: ******************************************************************************************

Use the string method .charAt(Index)

Hints:

Recursive methods generally attempt to solve a smaller problem then return the results of those in order to solve the larger one.

Think of how to do this with a loop, and use that to guide what parameters you’ll need for your recursive method.

Example Dialog:

Enter 2 words. I will determine if the letters of one is contained in the other

elf

self

They are contained!

Example Dialog 2:

Enter 2 words. I will determine if the letters of one is contained in the other

jerky

turkey

They are not contained

Example Dialog 3:

Enter 2 words. I will determine if the letters of one is contained in the other

asdf

fasted

They are contained!

In: Computer Science

In your opinion, do you think that the Affordable Care Act has had a positive or a negative effect on health insurance coverage? Why?

In your opinion, do you think that the Affordable Care Act has had a positive or a negative effect on health insurance coverage? Why?

Please provide a 250 word response. This is a discussion question for my Healthcare Economics class. Thanks in advance.

In: Nursing

Explain the impact of cash flow of a build up in inventory during this pandemic and...

Explain the impact of cash flow of a build up in inventory during this pandemic and how can companies mitigate the financial impact. Support your answer with evidence to "6 tips to navigate uncertainty for brave finance professionals." max word: 200-300

In: Accounting