Questions
Determine for the following code how many pages are transferred between disk and main memory. Assume...

Determine for the following code how many pages are transferred between disk and main memory. Assume each page has 1024 words, the active memory set size is 512 (i. e., at any time no more than 512 pages may be in main memory), and the replacement strategy is LRU (the Least Recently Used page is always replaced); also assume that all 2D arrays are of size (1:2048, 1:2048), with each array element occupying one word, for I := 1 to 2048 do for J :=1 to 2048 do { A[J,I]:=A[J,I]*B[I,J] } provided the arrays are mapped into the main memory space in column-major order,

In: Computer Science

Write a C program that creates and prints out a linked list of strings. • Define...

Write a C program that creates and prints out a linked list of strings.

• Define your link structure so that every node can store a string of up to 255 characters.

• Implement the function insert_dictionary_order that receives a word (of type char*) and inserts is into the right position.

• Implement the print_list function that prints the list.

• In the main function, prompt the user to enter strings (strings are separated by white-spaces, such as space character, tab, or newline).

• Read and insert every string into the link list until you reach a single dot “.” or EOF.

• Print the list. Use scanf to read strings. Use strcpy() for copying strings.

Here is a sample text input:

This is a sample text. The file is terminated by a single dot: .

In: Computer Science

For c language. I want to read a text file called input.txt for example, the file...

For c language.

I want to read a text file called input.txt for example, the file has the form.

4

hello

goodbye

hihi

goodnight

where the first number indicates the n number of words while other words are separated by newlines.

I want to store these words into a 2D array so I can further work on these.

and

there are fewer words in the word file than specified by the number in the first line of the file, then you must print an error message and return a non-zero value from main.

You must only read the first n words, you can ignore all words after n and should continue with the program as normal.

Thanks!

In: Computer Science

Purchasing A Home versus Renting A Space Step 1: Identify a home in your area (or...

Purchasing A Home versus Renting A Space

Step 1: Identify a home in your area (or wherever you'd like to live).

Step 2: Based on the price of the home, determine how much it would cost you on a monthly basis to purchase that home. Your payment will consist of Principal, Interest, Taxes, and Insurance (PITI).

Note: Use current 30-year interest rates; Assume 5%-10% downpayment; The "insurance" in the PITI is not property coverage, it is insurance to protect the lender in case you default on the loan.

Step 3: Identify a comparable rented space and compare that cost to the monthly cost in Step 2.

Step 4: Give the comparison in an Excel spreadsheet or Word file.  

.

In: Finance

The director has received your Memo and is interested in your choice of a health policy...

The director has received your Memo and is interested in your choice of a health policy concept as a possible way to secure 12 million in federal funding. The director would like a Policy Brief on the subject. Since this Policy Brief might require some research time, the director has requested a Policy Outline in the interim period.

Please submit a maximum 1000-word outline regarding your health policy concept.

• What are the basic facts of this policy? • How would this policy affect cost, quality, and access? • What are the challenges or barriers regarding the implementation? • What are the execution costs of this policy? • How will the policy be evaluated?

Please support all your ideas with reputable sources if possible.

In: Operations Management

Many factors influence the culture of an organisation. Your task List three (3) factors that influence...

Many factors influence the culture of an organisation. Your task List three (3) factors that influence the culture of and organisation and explain each. Now create a list of the factors that determine the culture in an organisation of which you are now or have been part. Categorise them as positive or negative. Are there any factors in both categories? Explain why this might happen Please place your answers to the above questions on the module 5 discussion forum. The recommended word count is 300 - 400 words. You may like to use images and diagrams. You are also welcome to include factors that may not be explicitly stated but which you believe fit within the context of the subject and are worthy of inclusion.

In: Finance

Choose 1 of the following topics related to the Great Recession: The housing price bubble, collapse,...

Choose 1 of the following topics related to the Great Recession:

  • The housing price bubble, collapse, foreclosures, bailout of underwater mortgages
  • Subprime mortgages and derivatives, bailout of FNMA, Freddie Mac and AIG
  • The banking industry crisis, bailout of commercial and investment banks

Write a 350- to 700-word analysis of 1 of the following corrective actions taken by the Federal Reserve as a result of the crisis:

  • Quantitative easing
  • Purchase of toxic assets from financial institutions
  • Paying interest on reserve balances

Address the following in your analysis:

  • Actions taken by the Federal Reserve to mitigate the crisis
  • How the corrective action helped to restore stability to the financial system
  • How the corrective action should prevent recurrence of a similar crisis

In: Economics

Write a program to validate Canadian Postal Codes. A postal code must follow the pattern of...

Write a program to validate Canadian Postal Codes. A postal code must follow the pattern of L9L9L9 where:

  • L is a letter
  • 9 is a digit

Your program should continue accepting postal codes until the user enters the word “exit”.

Sample run (user input is shown in bold underline):

Enter a postal code: T2T-3X7

Postal code wrong length, format L9L9L9

Enter a postal code: T2T3AA

Postal code has letters where there are supposed to be digits

Enter a postal code: T2T358

Postal code has digits where there are supposed to be letters

Enter a postal code: T2T3A8

Postal code is valid!

Enter a postal code: exit

please answer in java

In: Computer Science

The Mentally Handicapped/Ill Inmate A significant number of inmates at all levels of corrections is made...

The Mentally Handicapped/Ill Inmate

A significant number of inmates at all levels of corrections is made up of the mentally ill/handicapped. What is the impact of these inmates on the operations of a corrections facility, how many are there, what are their crimes? What is being done to properly treat the them? What legal requirements are in place to ensure proper treatment of the mentally ill/handicapped? What is a proper disposition for these offenders?

Instructions for Writing Your Paper

Write a 2 page APA style paper. Only the body of the paper will count toward the word requirement (title page and references are in addition to the 2 pages)

In your paper, cite at least 2-3 references using the APA style guide format for in-text citation.

In: Psychology

The average person thinks of the currency in her wallet or funds in her account when...

The average person thinks of the currency in her wallet or funds in her account when she thinks of the word “money,” but economists think about the concept of money in a much broader sense. What are the key features something needs to possess to be considered money, and what are some examples of things that have been used as money historically? Bitcoin and other cybercurrencies are frequently in the news now; do you think they should be considered money? Why or why not?

When you make your initial post, please fully answer the question and make substantive responses - i.e. at least 400 words that really dive into the topic and show that you've read the text and done research to support your opinions.

In: Economics