Computer Science JAVA FUNCTIONS

Write a Function

You will be given one of the following problems to solve using and writing Python functions.

Given a list of words, return an array which indicates the frequency that each letter occurs. For example, in the list [”apple”, ”bob”], [ ’a’ -> 1, ’b’->2, ’e’->1, ’l’->1, ’o’->, ’p’->2] . The order of the array does not matter and a Frequency class will be provided.

Given a list of words, indicate whether the list constitutes a ”Word Lad- der.” A Word Ladder is a series of words where each succeeding word changes by only one letter. You may not assume that all words will be of the same length, and you may not assume the length of the list.

Given an integer greater than 2, X, return an array populated with all prime numbers up to and including X.

  1. 👍
  2. 👎
  3. 👁
  1. See
    http://www.jiskha.com/display.cgi?id=1275046146

    Most teachers will not go as far as the above response without seeing work from you. Do not expect someone here to write the functions for you from A to Z. We offer help, but do not do your homework.

    Having said that, if you post your code with which you have difficulties debugging, teachers here will be glad to help you, both for the syntax and the logic.

    1. 👍
    2. 👎

Respond to this Question

First Name

Your Response

Similar Questions

  1. Math

    Note: Enter your answer and show all the steps that you use to solve this problem in the space provided. Input (x) Output (y) 32 20 14 2 ? -6 -2 -14 -10 ? Complete the function table and write the function rule.

  2. using tables, rules, and graphs quiz pt 2

    Note: Enter your answer and show all the steps that you use to solve this problem in the space provided. Use the function rule, y=2x+5, to find the values of y when x = 1, 2, 3, and 4. Write the answers as ordered pairs that would

  3. Math

    I am taking the Using Tables, Rules, and Graphs quiz part 2, and I dont understand these two problems. 1. Use the function rule to complete the table: -10x+y=y Above it shows a graph, with x and y marked, then along the top it

  4. Math

    I really need help on this question for connexus Independent and Dependent Variables Quiz Part 2 Note: Enter your answer and show all the steps that you use to solve this problem in the space provided. Input(x) Output(y) 32 20 14

  1. SAT math

    1. x>15-2x / -3 Solve the linear inequality. Write the solution in set builder notation. So, -3x>15-2x, x

  2. 9th grade

    How do i solve this? Write a rule for the function. Input,x 0 1 2 3 Output,y 3 5 7 9

  3. MATH

    15. Write a function rule that represents y is 5 less than the product of 4 and x. 16. Write a function rule that represents 7 less than three fifths of b is a. 17. Write a function rule that represents the almond extract a

  4. Math

    Note: Enter your answer and show all the steps that you use to solve this problem in the space provided. Input (x) Output (y) 32 20 14 2 ? -6 -2 -14 -10 ? Complete the function table and write the function rule.

  1. Math

    For problems 1 and 2, determine how many solutions there are for each triangle. You do not have to solve the triangle. 1. A = 29°, a = 13, c = 27 2. A = 100.1°, a = 20, b = 11 For problems 3-6, solve each triangle using the Law

  2. math

    Note: Enter your answer and show all the steps that you use to solve this problem in the space provided. Input(x) Output(y) 32 20 14 2 ? − 6 -2 -14 -10 ? Complete the function table and write the function rule.

  3. PreCal

    Write each expression in problems 1 to 3 in the form a + bi. 1. (8-3i)+(-6+2i) 2. 4/(2-i) 3. (3-2i)^3 I do not understand at all where to start. I tired looking on google to find a way to solve but I didn't get any real help. So

  4. math

    Write the prime factorization using exponents of each number .Then find the greatest common factor (GCF)of the numbers. 1\24.............. 36.............. 2\21.............. 56.............. Please,,help me.😞 I tried to solve

You can view more similar questions or ask a new question.