Write a Python program that calls a function to sum all the numbers in a list and returns the result to the caller. The main program creates a list (with hard-coded or user input) and passes the list as an argument to the function. You may not use the built-in function, sum.
The program calls a second function to multiply all the numbers in a list passed to it by main and returns the product back to the caller.
List can be created with user input or hard-coded elements.
The program calls a third function that takes the list of words (below) passed to it from main and determines which elements are palindromes without changing the original list.
['racecar', 'Python', 'mom', 'java','level', 'DNA','101101' ]
If true, the function appends the word to a new list and returns it to the caller. The main program prints the list of palindromes returned from the function. The function should not modify the original list passed to it from the main (no side effect).
A palindrome is a word, phrase, number or sequence of words that reads the same backward as forward
In: Computer Science
|
(20.37) Researchers claim that women speak significantly more words per day than men. One estimate is that a woman uses about 20,000 words per day while a man uses about 7,000. To investigate such claims, one study used a special device to record the conversations of male and female university students over a four- day period. From these recordings, the daily word count of the 20 men in the study was determined. Here are their daily word counts:
What value we should remove from observation for applying t procedures? A 90% confidence interval (±±10) for the mean number of words per day of men at this university is from to words. Is there evidence at the 10% level that the mean number of words per day of men at this university differs from 7000?
|
In: Math
Write a Java program that uses the file EnglishWordList.txt which contains a collection of words in English (dictionary), to find the number of misspelled words in a story file called Alcott-little-261.txt. Please note that the dictionary words are all lower-cased and there are no punctuation symbols or numbers. Hence it is important that you eliminate anything other than a-z and A-Z and then lower case story words for valid comparisons against the WordList file. When you read each line of the story file as a String, use split() method to store the words per line in a String array. Then go through each word in the array to lowercase it and to eliminate all but a-z A-Z using Java regex - something like
String word = word.replaceAll(“[^a-zA-Z]”,””).toLowerCase();
Neither file can be linked, but one can use two random text files to complete this. the Alcott text file is a story, while EnglishWordList is all the words in the English dictionary. Basically this is spell check.
In: Computer Science
n chapter 1, conflict of interests in a business setting are described as well as other conflicts which can take place in the corporate setting. While keeping in mind the specific types of conflicts of interest highlighted in chapter 1:
n chapter 1, conflict of interests in a business setting are described as well as other conflicts which can take place in the corporate setting. While keeping in mind the specific types of conflicts of interest highlighted in chapter 1:
In: Finance
Course: Computer Architecture (Theme: Input-Output)
In: Computer Science
Consider the following short cases. Connect each case with one of the three location techniques we talked about in class (linear programming, centroid or factor rating), answer the related question and explain why:
Lynn, Inc. is trying to locate a customer service center in a suburban area. They have population data for the various suburbs and villages around their area. They are interested in locating the center centrally with minimum distance between customers and the service center. In this technique two factors come into play – distance and _______. What is the missing word?
In: Operations Management
In: Psychology
Risk Register
Assignment Content
Tony and his project team identified some risks during the first month of the Recreation and Wellness Intranet Project. However, all they did was document the risks in a list. They never ranked the risks or developed any response strategies. Because the project has had several problems, such as key team members leaving the company, users being uncooperative, and team members not providing good status information, Tony decided to be more proactive in managing risks and want to address positive risks as well as negative risks.
Complete the following tasks:
In: Computer Science
Instructions: Need proper and complete answer (containing minimum 500 words) for following question related to 'Principles of Marketing'. Please include an additional listing of any references or supplemental materials used. Feel free to use whichever reference style you prefer. If you reference information from the Web or from any other sources (e.g., journal articles, library books, textbook), make sure that you do not copy the material verbatim (i.e., copied exactly from the original word for word). You should paraphrase (i.e., write in your own words) the information.
Question: Analyze a consumer or business product or service. To what segment(s) of consumers/businesses do you think it is targeted? Discuss the positioning of the product or service relative to competitors. How successful or unsuccessful has this positioning been? Would you suggest an alternative positioning or a repositioning? Why or why not? Identify any niches that might lend themselves to new products or services in the same category..
In: Operations Management
>>>>>C#<<<<<
A. Number Frequency-Arrays
Random Numbers-Methods
B. Word Count -String Processing
[01]
C. Recursion
By using recursion, write a program to:
D. Matrix Manipulation
Write a C# program to Perform Matrix Multiplication. [02]
Note:-
The matrix multiplication can be performed only if:
In: Computer Science