Questions
Que. As we saw in the class lecture one of the most controversial ideas of Marx...

Que. As we saw in the class lecture one of the most controversial ideas of Marx was his quote: “Religion is the opium of the people”. Many people now discuss the decline of the role of religion in people’s lives and wonder if Marx’s concept may be outdated. Here is your chance to update Marx’s ideas. For this question, you are to substitute the word “media” for the word “religion” in the above quotation. In other words, the quote you are dealing with reads “Media (or “social media”, “Facebook”, “Twitter”) is the opium of the people”. What you are to do is to focus on one aspect of media (it could be television, “reality tv”, video games, advertising, “second life” computer simulation games, sports (on television and in person), movies, social media, “Facebook”, or “Twitter”) and using the ideas discussed in the summary of Marx’s quotation – apply the same analysis to media today. Using examples to support your ideas, in what ways can it be said that today media operates to “dull the senses” and thereby (using Marx’s terms) operates as a highly addictive and sedative “opium of the people”?(subject is sociology)

(The answer need to be soft copy only)

In: Psychology

In this assignment, you are required to respond to the question “Why do good?” in the...

In this assignment, you are required to respond to the question “Why do good?” in the context of a real-world case study of global concern (excluding references). Note: Global concerns are issues that every nation in the world is concerned about, such as child labour, human trafficking, migration, torture, humanitarian intervention, pandemic, scarce resources, discrimination, wars, online privacy, etc. This list is non-exhaustive.

(Minimum word limit: 400 words, Maximum word limit: 600 words)

(a) Present a real-world case study of global concern. You should identify relevant ethical considerations for discussion.

(b) Demonstrate ethical reasoning in your personal response to the question of “Why do good?”. You should make a claim and explain what doing good means in your case study (underline your claim), and apply any ethical theories you have learned in this course to support at least 2 reasons for your claim (number your reasons).

(c) Discuss possible constraints or limitations to any of the theories you have discussed within the context of this case study.

In: Psychology

The files provided in the code editor to the right contain syntax and/or logic errors. In...

The files provided in the code editor to the right contain syntax and/or logic errors. In each case, determine and fix the problem, remove all syntax and coding errors, and run the program to ensure it works properly.

Please Fix code and make Copy/Paste avaliable

// Application allows user to enter a series of words

// and displays them in reverse order

import java.util.*;

public class DebugEight4

{

   public static void main(String[] args)

   {

      Scanner input = new Scanner(System.in);

      int x = 0, y = 0;

      String array[] = new String[100];

      String entry;

      final String STOP = "STOP";

      StringBuffer message = new StringBuffer("The words in reverse order are\n");

     

      System.out.println("Enter any word\n" +

      "Enter  + STOP +  when you want to stop");

      entry = input.next();

      while(!(entry.equals(STOP)))

      {

         array[x] = entry;

         ++x;

         System.out.println("Enter another word\n" +

         "Enter " + STOP + " when you want to stop");

         entry = input.next();

      }

      for(y = x - 1; y > 0; ++y)

      {

         message.append(array[y]);

         message.append("\n");

      }

      System.out.println(message);

}

}

In: Computer Science

This lesson's Group Activities are: Use python and use double strings Talk like a Pirate! In...

This lesson's Group Activities are:

Use python and use double strings

Talk like a Pirate! In this activity you are to create an English to Pirate Translator. Users should input a phrase and your program should translate it into pirate speak. A few rules:

1. Certain words need to be converted:

  • hello becomes ahoy
  • hi becomes yo-ho-ho
  • my becomes me
  • friend becomes bucko
  • sir becomes matey
  • where becomes whar
  • is becomes be
  • the becomes th'
  • there becomes thar
  • you becomes ye
  • anything which ends in -ing becomes -in'

2. You need to obey capitalization and punctuation: if the word is capitalized, then its translation should also be capitalized. If the sentence ends in a period, then the translation should end in a period. To keep punctuation simple, you can stick to coding for commas and periods, and ignore all the rest.

3. Pirates like the word "arr". For fun, randomly insert it into your translation.

4. Remember to use all the tools in your arsenal, especially mainline logic, functions, loops, and error handling.

In: Computer Science

The total equity of the business is P500, 000. Owner’s equity is P400, 000. Plant and...

The total equity of the business is P500, 000. Owner’s equity is P400, 000. Plant and Equipment is 45% of total Assets, the total current assets is

Select one:

a. P225, 000

b. P220, 000

c. P275, 000

d. P100,000

Mr. A has the following revenue transactions during April of the current year: Rendered services: Cash, P5, 000 & on credit, P3, 500; received P5000 advance payment for services to be rendered in May. The amount of income to be recognized in April is

Select one:

a. P5,000

b. P13,500

c. P10,000

d. P8,500

Odd-man out: Select the word that does not belong to the group.

Select one:

a. Balance Sheet

b. Statement of Cash Flow

c. Worksheet

d. Income Statement

The company's performance for a given accounting period is measured and evaluated through the income statement.

Select one:

True

False

Odd-man out: Select the word that does not belong to the group.

Select one:

a. Factory Insurance

b. Depreciation of Delivery Equipment

c. Salaries of factory supervisor

d. Factory Supplies

In: Accounting

Program in Python Problem Statement Write a program with the following functions:  wordCount. This function...

Program in Python

Problem Statement
Write a program with the following functions:
 wordCount. This function should accept a string as a parameter and return the
number of words contained in the string.
 mostFrequentWord. This function accepts a string as a parameter and returns the
word that occurs the most frequently in the string.
 replaceWord. This function accepts three strings as parameters, let’s call them
string1, string2, and string3. It searches string1 for all occurrences of string2. When it finds an occurrence of string2, it replaces it with string3.
For example, suppose the three parameters have the following values:
string1: string2: string3:
“the cat jumped up to reach the ball” “the”
“that”
With these three, the function would return a string with the value “that cat jumped up to reach that ball”
In the main function, ask the user to enter a sentence, and demonstrate each of the above functions.

Sample Output
Enter a sentence: the cat jumped up to reach the ball There are 8 words in the sentence
The most frequent word in the sentence is: the
Enter oldString, then newString you want to replace, separate them with a space: the that The new sentence after replacement is: that cat jumped up to reach that ball

In: Computer Science

You are to create a class called Person. You should create the definition of the class...

You are to create a class called Person. You should create the definition of the class Person in a file person.h and the functions for Person in person.cpp. You will also create a main program to be housed in personmain.cpp.

A Person will have attributes of

  • Height (in inches)
  • Weight (in pounds to 2 decimal places)
  • Name (string)
  • Gender (‘m’ or ‘f’)
  • Ethnicity/Race (could be more than one word)
  • Occupation (also more than a single word)

A Person will have the following methods

  • Accessors for all attributes
  • Mutators for all attributes
  • A default constructor that sets all data elements to 0 or blank text as appropriate
  • A fully specified constructor that allows defining values for all attributes
  • A printinfo method that will display all the info for a person in a logical and well formatted way including labels for each of the attribute fields

personmain.cpp should perform the following actions

  • Dynamically allocate an array of 4 Persons
  • Prompt the user for information about each of the four persons and store that information in one of the array elements
  • Print the information for each Person
  • Clean up all allocated space

In: Computer Science

What will the value of A represent at the end of execution of the given procedure...

What will the value of A represent at the end of execution of the given procedure on the “Paragraph Words” dataset?

Step 1. Arrange all cards in a single pile called Pile 1

Step 2. Maintain two variables A, B and initialize them to 0
Step 3. If Pile 1 is empty then stop the iteration

Step 4. Read the top card in Pile 1

Step 5. Add Letter count to variable B

Step 6. If the word does not end with a full stop then execute step 9

Step 7. If the word ends with a full stop and B > A then store B in A

Step 8. Reset the variable B to 0

Step 9. Move the current card to another pile called Pile 2 and repeat from step 3

Select answer from the following options:

1. Length of the shortest sentence based on the number of words

2. Length of the longest sentence based on the number of words

3. Length of the longest sentence based on the number of characters

4. Length of the shortest sentence based on the number of characters

5. None of the above

In: Computer Science

Item 6 In the case below, the original source material is given along with a sample...

Item 6

In the case below, the original source material is given along with a sample of student work. Determine the type of plagiarism by clicking the appropriate radio button.

Original Source Material

Student Version

The study of learning derives from essentially two sources. Because learning involves the acquisition of knowledge, the first concerns the nature of knowledge and how we come to know things.... The second source in which modern learning theory is rooted concerns the nature and representation of mental life.

References:
Driscoll, M. P. (2000). Psychology of learning for instruction (2nd Ed.). Needham Heights, MA: Allyn & Bacon.

Driscoll (2000) concludes that "the study of learning derives from essentially two sources... The first concerns the nature of knowledge and how we come to know things.... The second ... concerns the nature and representation of mental life" (p. 10).


References:
Driscoll, M. P. (2000). Psychology of learning for instruction (2nd Ed.). Needham Heights, MA: Allyn & Bacon.

Which of the following is true for the Student Version above?

Word-for-Word plagiarism

Paraphrasing plagiarism

This is not plagiarism

Hints

Item 7

In the case below, the original source material is given along with a sample of student work. Determine the type of plagiarism by clicking the appropriate radio button.

Original Source Material

Student Version

The game-based laboratory was vastly different from their expectations and experiences of a typical laboratory; this might have resulted in the students being disconnected from the learning aspect of the game.  However, the students' comments suggested that their discomfort with the video game was due to the fact that they did not perceive that a video game could really be educational. The game became a disruption to their traditional ways of science learning and interfered with how they perceived the learning experience. This perspective is potentially problematic as it suggests that pedagogical disruptions such as video games that are designed to be powerful learning tools simply may not work for all students.

References:
Anderson, J. L., & Barnett, M. (2013). Learning Physics with Digital Game Simulations in Middle School Science. Journal of Science Education and Technology, 1-13.

Since a game-based laboratory provides a virtual environment with different experiences than in a real lab, students may fail to connect these virtual experiences to real lab experiences. Student and teacher beliefs that games are entertainment tools, not educational tools, may minimize the potential of video games intended to help students learn science.

References:
Anderson, J. L., & Barnett, M. (2013). Learning Physics with Digital Game Simulations in Middle School Science. Journal of Science Education and Technology, 1-13.

Which of the following is true for the Student Version above?

Word-for-Word plagiarism

Paraphrasing plagiarism

This is not plagiarism

Hints

Item 8

In the case below, the original source material is given along with a sample of student work. Determine the type of plagiarism by clicking the appropriate radio button.

Original Source Material

Student Version

But what are reasonable outcomes of the influence of global processes on education? While the question of how global processes influence all aspects of education (and who controls these forces) is multidimensional and not completely testable, there appear to be some theories of globalization as it relates to education that can be empirically examined.

References:
Rutkowski, L., & Rutkowski, D. (2009). Trends in TIMSS responses over time: Evidence of global forces in education? Educational Research and Evaluation, 15(2), 137-152.

Rutkowski and Rutkowski (2009) ask "what are reasonable outcomes of the influence of global processes on education?" (p. 138). This question is not entirely testable and has multiple dimensions but theories of globalization's impact on education exist and provide means of empirical analysis.

References:
Rutkowski, L., & Rutkowski, D. (2009). Trends in TIMSS responses over time: Evidence of global forces in education? Educational Research and Evaluation, 15(2), 137-152.

Which of the following is true for the Student Version above?

Word-for-Word plagiarism

Paraphrasing plagiarism

This is not plagiarism

Hints

Item 9

In the case below, the original source material is given along with a sample of student work. Determine the type of plagiarism by clicking the appropriate radio button.

Original Source Material

Student Version (written in 2002)

The technological tools available today for creating computer-based learning materials are incredibly more powerful than those introduced just a few years ago. We can make our own movies with camcorders in our homes; we can publish our own books. Soon teachers and students will be able to use computer-video technology to produce their own learning materials. All it takes is time, know-how, and some funds.

References:
Frick, T. (1991). Restructuring education through technology. Bloomington, IN: Phi Delta Kappa Educational Foundation.

Frick (1991) claimed that computers would become so powerful that K-12 educators and students would be able to produce their own multimedia and Web-based learning materials. He predicted that teachers and students would soon be able to use computer-video technology to produce their own learning materials. All it would require is time, know-how, and some funds.


References:
Frick, T. (1991). Restructuring education through technology. Bloomington, IN: Phi Delta Kappa Educational Foundation.

Which of the following is true for the Student Version above?

Word-for-Word plagiarism

Paraphrasing plagiarism

This is not plagiarism

Hints

Item 10

In the case below, the original source material is given along with a sample of student work. Determine the type of plagiarism by clicking the appropriate radio button.

Original Source Material

Student Version

It is helpful to think in terms of two basic kinds of change: piecemeal and systemic. Piecemeal change leaves the structure of a system unchanged. It often involves finding better ways to meet the same needs, such as using an analogy to help your students learn the science concepts you taught in an otherwise similar manner last year. In contrast, systemic change entails modifying the structure of a system, usually in response to new needs.

References:
Reigeluth, C. M. (1999). What is instructional-design theory and how is it changing? Instructional-design theories and models: A new paradigm of instructional theory (Vol. 2, pp. 5-29). Mahwah, New Jersey: Lawrence Erlbaum.

Reiguleth (1999) mentions two different kinds of change: Piecemeal and Systemic change. Systemic change entails modifying the structure of a system, in order to meet new needs. In contrast, piecemeal change leaves the structure of a system unchanged. For example, new innovations instead of traditional methods could be used to engage students in learning.

Which of the following is true for the Student Version above?

Word-for-Word plagiarism

Paraphrasing plagiarism

This is not plagiarism

In: Operations Management

This question is concerned with an extension to the flashcard problem you studied in Block 3...

This question is concerned with an extension to the flashcard problem you studied in Block 3 Part 2.

In the original flashcard problem, a user can ask the program to show an entry picked randomly from a glossary. When the user presses return, the program shows the definition corresponding to that entry. The user is then given the option of seeing another entry or quitting.

A sample session might run as follows:

Enter s to show a flashcard and q to quit: s Define: word1 Press return to see the definition definition1 Enter s to show a flashcard and q to quit: s Define: word3 Press return to see the definition definition3 Enter s to show a flashcard and q to quit: q

The flashcard program is required to be extended as follows:

Box 1 – Specification of extended problem

As well as being offered a choice between seeing a flashcard or quitting, the user is offered the option of seeing a definition first.

If the user chooses this option, the program picks an entry at random from the glossary and shows the definition for that entry. It then asks the user what word is being defined. When the user presses return the program shows the word concerned.

The user is then given the option of seeing another flashcard, seeing another definition, or quitting.

Apart from this the program behaves like the original version

A sample dialogue might run as follows: (the additional dialogue is underlined.)

Enter s to show a flashcard, d to see a definition, or q to quit: s Define: word3 Press return to see the definition definition3 Enter s to show a flashcard, d to see a definition, or q to quit: d What word is defined by: definition2 Press return to see the word word2 Enter s to show a flashcard, d to see a definition, or q to quit: q

Box 2 – Keeping a notebook

As you work through part (a) of this question you should keep a notebook. You will need this for your answer to part (a)(vi). This should be very brief: it is simply a record of your personal experience while working on the task and what you feel you have learned from it.

In your notebook we suggest that you record the following information

How A brief description of how you went about the task.
Resources What documentation if any you consulted (including course materials and any online sources) and which you found most useful. There is no need for full references, just note the source, and in the case of the course materials what the relevant part and section or activity was.
Difficulties Anything you found difficult about the task, and how you dealt with it.
Lessons learnt Anything you learned from the task that would be useful if you faced a similar problem in the future.

There is more than one way of solving the extended problem but the approach we ask you to follow for this TMA starts by addressing the sub-problem of showing the definition for a random entry and, after the user enters return, showing the word being defined.

  • a.

    • i.Begin by writing an algorithm for the subproblem, show definition, described in the middle paragraph of Box 1 above, and repeated here for convenience:

      … the program picks an entry at random from the glossary and shows the definition for that entry. It then asks the user what word is being defined. When the user presses return the program shows the word concerned.

      At this stage no looping is involved and the steps of the algorithm only need to do what is asked for in the paragraph above and nothing more.

      The steps of your algorithm must be written in English and not use any Python code. The algorithm should be high-level and at a similar level of detail to the solution to Activity 2.24 of Block 3 Part 2, where an algorithm is given for show flashcard.

    • ii.Next you will translate your algorithm into Python code.

      Begin with the first complete version of the flashcard program, a copy of which is included in the download for this TMA as Q2.py. Save a copy this program as Q2_OUCU.py (where OUCU is your OU computer username, e.g. abc123).

      In the next few question parts, you will be amending this file. You will only have to submit the final amended file (as per the instructions in Part v).

      Add a new function show_definition() to the program, which translates into Python the steps of the algorithm you wrote in Part i. You should insert the new function just after the show_flashcard() function.

      Make sure you write a suitable docstring for the function.

      Include your code that defines the function show_definition() in your Solution document.

    • iii.When you have written the show_definition() function test it by calling it several times in the shell. Remember to first run the program and only after that use the shell to call the function.

      Debug the code and/or algorithm as necessary. If you need to make modifications you should record them in your notebook.

      Copy and paste an example test into your Solution Document. This should demonstrate a definition being shown, the user being asked to enter return, and then the program showing the word concerned.

      Alternatively, if you were unable to get the function working correctly, you should still paste in an example test, and explain briefly how the results are different from what you were expecting.

    • iv.Now you need to make changes to the part of the program that implements the interactive loop, so the user is offered the additional option of seeing a definition, and if they choose this option the show_definition() function is called.

      Once you have made the changes, run the whole program. Copy a test dialogue into your Solution document to show the user selecting the option to see a definition, then being asked what word it defines, and then been shown the word concerned.

      Include your amended code for the interactive loop in your Solution document.

      Alternatively, if you were unable to produce a test dialogue because you could not get the program to function as intended, you should briefly explain how a successful test dialogue would look.

    • v.Next modify the docstring for the program as a whole to reflect the changes you have made.

      Save your final version of the Python program and submit it as Q2_OUCU.py (where OUCU is your OU computer username, e.g. abc123) in your TMA zip file.

      Also paste a copy of your final Python program into your solution document as text.

    • vi.Finally, copy the notebook you have kept for this question into the corresponding part of your Solution Document.

  • b.Suggest one further small extension or improvement of your own to the modified flashcard program. Outline what the extension does and include any additional algorithm step(s) needed, either in the functions, or in the interactive loop. Note that you are only required to describe the extension, as specified above, and do not need to implement it in code.

In: Computer Science