Questions
Problem 1. How many bits are required to address a 4M × 16 main memory under...

Problem 1. How many bits are required to address a 4M × 16 main memory under the following conditions. (“4M x 16” means there are 4x220 16-bit words.) a) The main memory is byte-addressable? b) The main memory is word-addressable? (For part b, assume a 16-bit word.)

In: Computer Science

Consider this word problem about baking cookies:You are baking cookies for your class. You put pink...

Consider this word problem about baking cookies:You are baking cookies for your class. You put pink frosting on 1/3 of the cookies and you put red sugar on 1/4 of the cookies. How many cookies have both pink frosting and red sugar on them?(a) Is the cookie word problem a problem for 1/3 • 1/4 ? If so, explain briefly whyit is, if not, modify the problem so that it is a problem for 1/3 • 1/4 .(b) Is the cookie word problem a problem for 1/3 + 1/4 ? If so, explain briefly whyit is, if not, modify the problem so that it is a problem for 1/3 + 1/4 .

In: Statistics and Probability

( Note:Please answer this factor of consumer duities and responsibility in 1-11 respectively i your own...

( Note:Please answer this factor of consumer duities and responsibility in 1-11 respectively i your own word)

CONSUMER DUTIES AND RESPONSIBILITIES are given below and explain this in your own word.

1.Substantiate the complaint,

2.Listen to the seller,

3.Cooperate with the seller if needed,

4.Avoid inconvenience to others,

5.Do not personalize issues,

6.Not lend self to others,

7.Be well informed,

8.Understand the grievances redressal process,

9.Avoid impulsive buying,

10.Buy goods from authorized agents,

11.Other duties and responsibilities

explain this(1 to11) factor in your own word.

In: Accounting

question 1 – In 150 – 200 words (don’t include the lit cited in the word...

question 1 – In 150 – 200 words (don’t include the lit cited in the word count) summarize in your own words about why fishing is ethical and should be allowed.

Question 2 – In 150 – 200 words (don’t include the lit cited in the word count) summarize in your own words why fishing is unethical and should not be allowed.

two peer-reviewed journal articles must be cited for each question include arguments that were included in the lectures. You must include in-text citations and literature cited.




please make sure include the citations pleaes make sure more then 150 word

In: Biology

a)     How many four-letter words can be formed from the letters of the word LAUNDRY if each...

a)     How many four-letter words can be formed from the letters of the word LAUNDRY if each letter can only be used one time in a word? Y is NOT considered a vowel in this word.

b)    How many contain the letter Y?

c)     How many contain both vowels?

d)    How many of them contain exactly three consonants?

e)    How many of them begin and end in a consonant?

f)      How many begin with N and end in a vowel?

g)     How many begin with N and also contain Y?

h)    How many of them contain both N and Y?


In: Statistics and Probability

Q21 Write an essay of 1000+ words on the topic ‘The Relationships between Strategic Level and...

Q21 Write an essay of 1000+ words on the topic ‘The Relationships between Strategic Level and Functional Level’. [8 Marks]

VERY IMPORTANT:

DO NOT WRITE THE ANSWER - USE WORD FORMAT.

NO PLAGIARISM ACCEPTED IN THE ANSWER - QUESTION WILL BE SEND BACK.

THE ANSWER HAS TO BE MORE THAN 1000 WORD, NOT LESS THAN A 1000 WORDS.

In: Advanced Math

Please convert this code written in Python to Java: import string import random #function to add...

Please convert this code written in Python to Java:

import string
import random

#function to add letters
def add_letters(number,phrase):
   #variable to store encoded word
   encode = ""
  
   #for each letter in phrase
   for s in phrase:
       #adding each letter to encode
       encode = encode + s
       for i in range(number):
           #adding specified number of random letters adding to encode
           encode = encode + random.choice(string.ascii_letters)
   #returns encoded word
   return encode
#function to remove letters
def remove_letters(number,phrase):
   #variable to store decoded word
   decode = ""
  
   #iterating each letter in phrase
   for i in range(len(phrase)):
       #if i % number + 1 is zero
       if i % (number + 1) == 0:
           #adding letters in specified position to decode
           decode = decode + phrase[i]
   #returns decoded word
   return decode

#repeat until user wants to quit
while True:
   print("")
   #prompt for user option
   userOption = input("(e)ncode, (d)ecode, (q)uit: ")
  
   #if option is encode
   if userOption == "e":
       #prompt for number
       number = int(input("Enter a number between 1 and 5: "))
      
       #repeat until number is valid
       while True:
           #if number is valid
           if number >= 1 and number <= 5:
               break
           #if number is not valid
           else:
               print("Try Again...")
              
               #prompt for number
               number = int(input("Enter a number between 1 and 5: "))
      
       #prompt for phrase to encode
       phrase = input("Enter a phrase to encode: ")
      
       #calling function add_letters and printing encoded word
       print("Your encoded word is: "+add_letters(number,phrase))
  
   #if option is decode
   elif userOption == "d":
       #prompt for number
       number = int(input("Enter a number between 1 and 5: "))
      
       #repeat until number is valid
       while True:
           #if number is valid
           if number >= 1 and number <= 5:
               break
           #if number is not valid
           else:
               print("Try Again...")
              
               #prompt for number
               number = int(input("Enter a number between 1 and 5: "))
      
       #prompt for phrase to decode
       phrase = input("Enter a phrase to decode: ")
      
       #calling function remove_letters and printing decoded word
       print("Your decoded word is: "+remove_letters(number,phrase))
      
   #if option is quit
   elif userOption == "q":
       break
      
   #if option is wrong option
   else:
       print("Try Again...")

In: Computer Science

***USE JAVA AND NO IMPORTS*** Method editString takes a string and breaks it into an array...

***USE JAVA AND NO IMPORTS***

Method editString takes a string and breaks it into an array of single
       words which are then are edited based on the command
       Possible Commands:
       remove: for the sent words, remove those from the text
       replace: replace the word in an even element of words with a word in an odd element of words
       add: add the word given word in the index indicated after the word

       editString("What is up bro", "remove", ["bro"]) returns ["What", "is", "up"]
       editString("What is up bro", "replace", ["bro", "brother"]) returns ["What", "is", "up", "brother"]
       editString("What is up", "add", ["my", "3", "friend", "4"]) returns ["What", "is", "up", "my", "friend"]
       editString("I can only do so much", "remove", ["only", "so"]) returns ["I", "can", "do", "much"]
       editString("Tis but a flesh wound", "replace", ["flesh", "scratch", "wound", "mark"]) returns ["Tis", "but", "a", "scratch", "mark"]
       editString("I can code in java", "add", ["html", "4", "and", 5]) returns ["I", "can", "code", "in", "html", "and", "java"]
       @param text String of words
       @return an array of lowercased words in alphabetical order
   */
   public static ArrayList<String> editString(String text, String command, ArrayList<String> words)
   {
       ArrayList<String> edited = new ArrayList<String>();

   return edited;
   }//end editString

In: Computer Science

using java with proper header and comments: This exercise will give you a review of Strings...

using java with proper header and comments:

This exercise will give you a review of Strings and String processing. Create a class called MyString that has one String called word as its attribute and the following methods: Constructor that accepts a String argument and sets the attribute. Method permute that returns a permuted version of word. For this method, exchange random pairs of letters in the String. To get a good permutation, if the length of the String is n, then perform 2n swaps. Use this in an application called Jumble that prompts the user for a word and the required number of jumbled versions and prints the jumbled words. For example, Enter the word: mixed Enter the number of jumbled versions required: 10 xdmei eidmx miexd emdxi idexm demix xdemi ixdme eximd xemdi xdeim Notes: 1. It is tricky to swap two characters in a String. One way to accomplish this is to convert your String into an array of characters, swapping the characters in the array, converting it back to a String and returning it. char[] chars = word.toCharArray(); will convert a String word to a char array chars. String result = new String(chars); converts a char array chars into a String. p 6 2. Use Math.random to generate random numbers. (int)(n*Math.random()) generates a random number between 0 and n-1

In: Computer Science

Each of the following represents a change from an adult pronunciation to a child's pronunciation.


Each of the following represents a change from an adult pronunciation to a child's pronunciation. By comparing the adult pronunciation with the child's pronunciation, identify the phonetic processes that have occurred in the child's form of the word. There are at least two processes for each item.

 Word Adult Pronunciation Child's Pronunciation Phonetic Processes

 a. drain

 b. shape

 c. elevator

image.png

In: Psychology