Questions
Consider the following code: lb $t0, 1($t1) sw $t0, 0($t2) Assume the followings. • The register...

Consider the following code:

lb $t0, 1($t1)

sw $t0, 0($t2)

Assume the followings.

• The register $t1 contains the content 0x1000,0000.

• The word at memory address 0x1000,0000 is 0xAABB,CCDD.

What value of the word is stored at the memory address pointed to by register $t2? Show the value of the word in hexadecimal.

In: Computer Science

For C++ Assume that word is a variable of type string that has been assigned a...

For C++

Assume that word is a variable of type string that has been assigned a value. Assume furthermore that this value always contains the letters "dr" followed by at least two other letters. For example: "undramatic", "dreck", "android", "no-drip".

Assume that there is another variable declared, drWord, also of type string. Write the statements needed so that the 4-character substring word of the value of word starting with "dr" is assigned to drWord. So, if the value of word were "George slew the dragon" your code would assign the value "drag" to drWord.

In: Computer Science

(1) Prompt the user for a string that contains two strings separated by a comma.

(In C)

(1) Prompt the user for a string that contains two strings separated by a comma. 

  • Examples of strings that can be accepted:

  • Jill, Allen

  • Jill , Allen

  • Jill,Allen

Ex:

Enter input string:
Jill, Allen


(2) Report an error if the input string does not contain a comma. Continue to prompt until a valid string is entered. Note: If the input contains a comma, then assume that the input also contains two strings. 

Ex:

Enter input string:
Jill Allen
Error: No comma in string.

Enter input string:
Jill, Allen


(3) Extract the two words from the input string and remove any spaces. Store the strings in two separate variables and output the strings. 

Ex:

Enter input string:
Jill, Allen
First word: Jill
Second word: Allen


(4) Using a loop, extend the program to handle multiple lines of input. Continue until the user enters q to quit. 

Ex:

Enter input string:
Jill, Allen
First word: Jill
Second word: Allen

Enter input string:
Golden , Monkey
First word: Golden
Second word: Monkey

Enter input string:
Washington,DC
First word: Washington
Second word: DC

Enter input string:
q

Code Given:

#include
#include

int main(void) {

/* Type your code here. */

return 0;
}

In: Computer Science

Clark 202 Part 1: Approximately how many bits are required to address a 4M x 16...

Clark 202

Part 1: Approximately how many bits are required to address a 4M x 16 main memory if:

a. Main memory is byte addressable?

b. or Main memory is word addressable?

Part 2: Consider 256 x 8 RAM chips for the following:

a. About how many are needed to provide a memory capacity of 4096 bytes?

b. How many lines must go to each and every chip?

Part 3: Digital computers have a memory unit with 24 bits per each word. The instruction set consists

of 150 different operations. All instructions have an operation code part (opcode) and

an address portion (allowing for only one address). Each instruction is stored in approximately 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 approximate maximum allowable size for memory?

d. Please explain what is the largest unsigned binary number that can be accommodated in one word

of memory

Part 4: Assume a 230-byte memory.

a. What are the smallest and highest addresses if memory is byte addressable?

b. What are the smallest and highest addresses if memory is word addressable,

assuming a 16-bit word?

c. What are the lowest and highest addresses if memory is word addressable,

assuming a 32-bit word?

Let me know if you have any questions.

In: Computer Science

use c++ (1) Prompt the user for a string that contains two strings separated by a...

use c++

(1) Prompt the user for a string that contains two strings separated by a comma. (1 pt)

  • Examples of strings that can be accepted:
    • Jill, Allen
    • Jill , Allen
    • Jill,Allen

Ex:

Enter input string:
Jill, Allen


(2) Print an error message if the input string does not contain a comma. Continue to prompt until a valid string is entered. Note: If the input contains a comma, then assume that the input also contains two strings. (2 pts)

Ex:

Enter input string:
Jill Allen
Error: No comma in string.

Enter input string:
Jill, Allen


(3) Extract the two words from the input string and remove any spaces. Store the strings in two separate variables and output the strings. (2 pts)

Ex:

Enter input string:
Jill, Allen
First word: Jill
Second word: Allen


(4) Using a loop, extend the program to handle multiple lines of input. Continue until the user enters q to quit. (2 pts)

Ex:

Enter input string:
Jill, Allen
First word: Jill
Second word: Allen

Enter input string:
Golden , Monkey
First word: Golden
Second word: Monkey

Enter input string:
Washington,DC
First word: Washington
Second word: DC

Enter input string:
q

In: Computer Science

write C++ program using functions (separate function for each bottom) Write a program to find if...

write C++ program using functions

(separate function for each bottom)

Write a program to find if a number is large word for two given bottom base - bottom1 and bottom2. You can predict that a number, when converted to any given base shall not exceed 10 digits. .

the program should ask from user to enter a number that it should ask to enter the base ranging from 2 to 16 after that it should check if the number is palindrom or not
Sample Input:

A number is called a word if it's represented in its bottom. e.g. Let  bottom1 = 6 and bottom2 = 2 as it is not a word in base 5(1010)(as the reciprocal of the number isnt a palindrome).
bottom is base of a number
take bases as input from user
bases can go from decimal-hexadecimal.

for bottom1 = 3 & bottom2 = 4, then the number 130 (in base 10) will be called a large_word, as it is word in bottom 3 (11211) as well as in bottom 4 (2002). However, it is not a large_word for bottom1 = 3 and bottom2 = 5 as it is not a word in bottom 5(1010).

Number: 51

bottom(base) 1: 6

bottom(base) 2: 2

Sample Output:
51 is not large word

hint:
bottom is basically base of a number

A large _word is a word, phrase, number, or other sequence of characters which reads the same reverse or straightward.

word==palindrome

use function in the program at all time

In: Computer Science

POST #1 (DISCUSSION) I POST IT TWICE, DONT ANSWER TO BOTH POSTS. DO NOT COPY YOUR...

POST #1 (DISCUSSION)

I POST IT TWICE, DONT ANSWER TO BOTH POSTS. DO NOT COPY YOUR ANSWER TO BOTH POSTS. I NEED TWO DIFFERENT VIEW. Thanks

YOUR ANSWER WILL BE CHECK FOR PLAGIARISM.

***PLEASE DO NOT UPLOAD PHOTO FOR ANSWER

***** DO NOT COPY FROM ANY WEBSITE. USE YOUR OWN WORD. DO NOT ANSWER IF YOU ARE NOT COMFORTABLE FOR ANY RESON.

****USE YOUR OWN WORD

****USE YOUR OWN WORD

****USE YOUR OWN WORD

****USE YOUR OWN WORD

--------------------------------------------------------------------------------------------------------------

Discussion

Discuss what you would consider part of the growing Special Populations. In addition, what specific issues and concerns do you have about emergency planning in respect to our Special Population?

In: Economics

Use winHex to become familiar with different the types. Follow these steps 1) Locate or create...

Use winHex to become familiar with different the types. Follow these steps

1) Locate or create Microsoft Excel(xlsx), Microsoft Word (docx), gif , jpg, and mp3 files if you are creating a word document or an excel spreadsheet save its as a word or excel file.

2) Start WinHex

3) Open each file type in WinHex. Record the hexadecimal codes for each file in a text editor , such has Notepad or Worded. For example for the Word document , record Word Header:50 4B 03 04.

4) Save the file , and then print it to give to your instructor.

Note ) this is forensic class not operation Management class bcoz chegg doesn’t have an option of forensics class so i have to choose operation Management

In: Computer Science

Managers of three divisions- A, B and C- of Reagan Ltd. delivered following data to Nola...

Managers of three divisions- A, B and C- of Reagan Ltd. delivered following data to Nola Smith, Chief Executive Officer (CEO). Looking at the data Nola states, “I know headquarters want us to evaluate performance of our divisions based on return on investment, but how come we have missing information!!”

Comparative data:

Departments

A

B

C

Sales (a)              

$300,000

$250,000

$?

Net operating income (b)             

$42,000

$35,000

$?

Average operating assets (all investments in operating assets are expected to earn a minimum return of 9%)

$150,000

$?

$500,000

Margin (b) ÷ (a)

     ?

?

3.5%

Turnover (a) ÷ (c)            

     ?

?

2.0

Return on investment (d) (ROI)  

     ?

7%

?

Residual Income

     ?

?

?

Required 4.1

Fill in the missing information above. Show your calculation.                                                     

Departments

A

B

C

Add column and/or row if required.

Show your workings here (expand the space as required):

   

Word count =

Required 4.2

Comment on the relative performances of the three divisions in as much detail as the data permit. Make specific recommendations about how to improve the ROI.                                                       

[Word limit: 150 words. Note the word count at the end of your answer]

Your answer (expand the space here):

Word count =

Required 4.3

What advantages are there to breaking down the ROI computation into two separate elements, margin and turnover?                                                                                                                                   

[Word limit: 150 words. Note the word count at the end of your answer]

Your answer (expand the space here):

Word count =

Required 4.4

Identify accounting items such as investment, profit, revenue and expenses that Division A should control if it is to be fairly evaluated as a separate profit centre within Reagan Ltd. using either ROI and RI.

                                                                                                                                                                      

[Word limit: 50 words. Note the word count at the end of your answer]

Your answer (expand the space here):

Word count=

In: Accounting

**To Be Written in Python for Beginners** Overview Do you know what an alternade is? Of...

**To Be Written in Python for Beginners**

Overview Do you know what an alternade is? Of course you don’t, no one does! According to Wikipedia, an alternade: “is a word in which its letters, taken alternatively in a strict sequence, and used in the same order as the original word, make up at least two other words. All letters must be used, but the smaller words are not necessarily of the same length. For example, a word with seven letters where every second letter is used will produce a four-letter word and a three-letter word.” In most cases, the alternade is formed by looking at letters that are two spaces apart, with the first word starting at position 0, and the second from position 1. For example, the word “pained” is an alternade, because using the rules above we produce 2 words: “pie” and “and” Your job is to write a Python program that asks the user to make one of two choices…destruct or construct. If the user chooses destruct, prompt them for an alternade, and then output the 2 words from that alternade. If the user chooses construct, prompt them for 2 words, and then output the alternade that would have produced those words. You must enforce that the users enter real words…or at least not blatant non-words. So if their input contains numbers, whitespace, punctuation, etc., you should prompt them for input until correct input is provided. **You can assume the word entered is of even length, but if you want a challenge, figure out how to implement if the length of the word is even or odd.** If you manage to get all that done, then implement the following: the words output by your program must be in alternating case, starting with uppercase. So, for example, if you wanted to output the word “happy”, it should be displayed as “HaPpY.”

In: Computer Science