Entries by Student

write my assignment 14617

  1. How many bits are required to address a 4M X 16 main memory if

a)     Main memory is byte addressable?  ______

b)     Main memory is word addressable? ______

  1. Suppose that a 16M X 16 main memory is built using 512K X 8 RAM chips and memory is word addressable.

a)     How many RAM chips are necessary? ______

b)     How many RAM chips are needed for each memory word? _______

c)     How many address bits are needed for each RAM chip? _______

d)     How many address bits are needed for all memory?  _______

  1. A digital computer has a memory unit with 24 bits per word. The instruction set consists of 150 different operations. All instructions have an operation code part (opcode), and an address part (allowing for only one address). Each instruction is stored in one word of memory.

a)     How many bits are needed for the opcode? ________

b)     How many bits are left for the address part of the instruction? _______

c)     What is the maximum allowable size for memory? _________

  1. Write the following MARIE assembly language equivalent of the following machine language instructions

a)     0010 0000 0000 0111

b)     1001 0000 0000 1011

c)     0011 0000 0000 1001

  1. What is the difference between hardwired control and microprogrammed control?

 

"Not answered?"


Get the Answer

write my assignment 18510

public class BubbleSort {

public static int[] bubble_sort(int array[]) {

int n = array.length;

int k, temp;

screener.printNumbers(array);

for (int m = n; m > 0; m–) {

for (int i = 0; i < n – 1; i++) {

k = i + 1;

if (array[i] > array[k]) {

temp = array[i];

array[i] = array[k];

array[k] = temp;

}

}

}

screener.printNumbers(array);

return array;

}

}

1. Code coverage test

(i) Using the bubble_sort method, draw its flow-chart.

(ii) Label the nodes in the flow-chart and list all the possible paths in the flow of the method.

You only need to determine the number of independent paths through the code/flowchart. In the

case of a circular path B–>C–>B, the paths ABCBD and ABCBCBD are the same; therefore you

should only list the first.

(iii) For each path, design one test case as follows:

Define values for the method argument (such as array values) so that the path is chosen. Write the

expected return value from the method and the value of each field after the conclusion of the

particular path for the test case you suggested.

in the form of a table that defines each test case based on the following

format:

Path Test Case Expected Result

Path through the flow

graph for test case 1

Input values for variables Output values for

variables

For test case 2 … Etc Etc

Etc Etc Etc

(iv) Based on a boundary analysis of the possible unsorted array values, suggest some additional

test cases that can be used to test your BubbleSort class. Justify why you have chosen each of these

additional test cases (and the values chosen).

 

"Not answered?"


Get the Answer

write my assignment 1975

i neeed help below

INTERNET ARTICLE ANALYSIS FOR THE STATE OF TEXAS

Locate an article on the Internet that addresses a current budgeting issue for an area of criminal justice administration in your state (TEXAS).

Write a 1,050- to 1,400-word paper on the following:

  • The main idea of the article and reasons for your choice
  • The author’s conclusions and recommendations
  • Your own conclusions and recommendations

Format your paper consistent with APA guidelines.

Please no Plagiarism and correct citations and references. 

This is for Criminal Justice Management Theory and Practice CJA/454.

 

"Not answered?"


Get the Answer

write my assignment 29206

1. It has been conjectured that workplace bans induce smokers to quit by reducing their opportunities to smoke. Using data on a sample of 10,000 US indoor workers, you estimate the effect of workplace smoking bans on smoking. Suppose you estimate the following regression 2 1 2 3 45 smo smkban female education age age u ke =+ + + + + + αβ β β β β , where smoke is a dummy variable indicating whether a worker is a smoker or not; smkban is a dummy indicating whether there is a smoke ban at workplace, female is a dummy for female; education and age are in years. Here is what you estimate: 1) How would you interpret the estimated coefficient for smkban? 2) How would you interpret the estimated coefficient for education? 3) For a female aged 30 with 16 years of education who works at a place where smoke is allowed, the predicated value =0.157. How would you interpret it? 10. Consider the following estimated regression using a sample of . 18 Drinking =− + 0.50 0.05 0.30 , female D where Drinking is a dummy that indicates whether one drinks alcohol or not; female is a dummy that is equal to 1 if a person is female, and 0 otherwise; D18 is a dummy indicating if one exceeds the minimum legal drinking age 18. How would you interpret the estimated coefficient for D18? 2 1) How would you interpret the estimated coefficient for female? 2. The primary question of interest is this: Do athletes perform more poorly in school during the quarter their sport is in season? Suppose you have data for 200 football players from a large university for fall and spring quarters. Football players play their sport only in the fall. Suppose the academic ability levels of football players differ from each other. You try to estimate the following regression: 1 23 4 5 qrtGPA hsperc sat female fall load u =+ + + + + + αβ β β β β Where qrtGPAis quarter GPA; hsperc is high school percentile, sat is SAT score, female is a dummy indicating a female player, and fall is a dummy for the fall quarter, and load is the total number of classes taken in a quarter. 1) Compare OLS applied directly to the above regression with “difference” estimation using data differenced across the two quarters, which one do you prefer? Why? 2) If you do “difference” estimation, what variables will drop out? 3) Suppose the following is what you got. =-.065 – .12 , (.043) (.007) ∆ ∆ qrtGPA load where ∆ represents difference between fall and spring quarters. What is the estimated in-season effect? Is there a significant in-season effect? 4) How would you interpret the estimated coefficient -.12? perform more poorly in school during the quarter their sport is in season? Suppose you have data for 200 football players from a large university for fall and spring quarters. Football players play their sport only in the fall. Suppose the academic ability levels of football players differ from each other. You try to estimate the following regression: 1 23 4 5 qrtGPA hsperc sat female fall load u =+ + + + + + αβ β β β β Where qrtGPAis quarter GPA; hsperc is high school percentile, sat is SAT score, female is a dummy indicating a female player, and fall is a dummy for the fall quarter, and load is the total number of classes taken in a quarter. 1) Compare OLS applied directly to the above regression with “difference” estimation using data differenced across the two quarters, which one do you prefer? Why? 2) If you do “difference” estimation, what variables will drop out? 3) Suppose the following is what you got. =-.065 – .12 , (.043) (.007) ∆ ∆ qrtGPA load where ∆ represents difference between fall and spring quarters. What is the estimated in-season effect? Is there a significant in-season effect? 4) How would you interpret the estimated coefficient -.12?

 

"Not answered?"


Get the Answer