Questions
Is psychology common sense? Why study psychology? *** Provide information from one or more scholarly sources...

Is psychology common sense?
Why study psychology?

*** Provide information from one or more scholarly sources with an in-text citation and match referencing to support your discussion. Wikipedia is not a scholarly source. Discussion without a source will receive zero (0) point.

*** Responses to Discussion Question should be 200 words or more and substantive-this does not include assignment or references. A good practice to produce a response in Word Document to monitor word count, copy and paste into the message area. Please be sure to include proper APA an in-text citation and reference for all information.

In: Psychology

Infile and getline - how can I change this code to get the whole line from...

Infile and getline - how can I change this code to get the whole line from a text file? Right now it only gets the first word each time it reads. NUMBER can be any integer. This code gets strings that are in multiple lines from a text file. Some words are separated by whitespace and that makes the input wrong. It only works if there is only one word.

infile >> arrayOne[dive] >> arrayTwo[dive];

while (infile && dive< NUMBER)
{
dive++;
infile >> arrayOne[dive] >> arrayTwo[dive];
}

infile >> arrayOne[dive] >> arrayTwo[dive];
}

In: Computer Science

Scenario: The IT leadership team has determined that the college will add another satellite campus. Students...

Scenario: The IT leadership team has determined that the college will add another satellite campus.

Students will be allowed to connect to the network from personally-owned mobile devices. Troubleshooting services will be limited for the students so you must provide a Bring Your Own Device (BYOD) best practice guideline for students to help them manage their personal mobile devices. Your task is creating document demonstrating how to configure the mobile device settings as followstaking screenshotsto demonstrate your knowledge:

Android or Apple:

  1. Update your operating system and applications
  2. Back up your data
  3. Limit ad tracking under "Privacy, Advertising"
  4. Set up SIM card lock
  5. Disable Bluetooth and/or WIFI when not in use
  6. Set up email on your mobile device

Paste screenshots into a Microsoft® Word document to demonstrate you applied appropriate configurations, and provide a 350-word narrative using Microsoft® Word to assist the student in applying appropriate settings to their device.

In: Computer Science

Find a word, number or name.The only restrictions are that it must have at least four...

  • Find a word, number or name.The only restrictions are that it must have at least four characters, and must include at least one horizontal, vertical, angled, and curved segment each  [ example: LOVE ].
  • Find parameterizations for the each characters in your word, in the xy-plane. At any time the "plotter" can only be at one location and hence the different curves making up your characters must utilize distinct time intervals!
  • If F(x,y) = (xy2) i + (x2y) j is the force field acting on the plotter tip as it traces out your characters, calculate the total work done in plotting your word
  • Draw typical velocity and acceleration vectors at various points along the curves of each character (on print-out).
  • Calculate and graph the speed (as a function of time) along each character.
  • Calculate and graph the Normal and Tangential component of the acceleration vectors (as a function of time), at least 2 locations on each character.
  • Calculate and graph the curvature (as a function of time) along each character.

In: Mechanical Engineering

Can you please write this in python and comment as well so I can understand what...

Can you please write this in python and comment as well so I can understand what yo are doing. Thank you.

1)Loop through list A, at each iteration, show the square root result of that element. Add proper text to your print function.

A = [-4, 1, -16, 36, -49, 64, -128]

2)Create a counter variable, name it i and initialize it to 0. Using a for loop, count how many numbers are divisible by 3 in range of 1 to 50.

3)Consider a string called S. Convert S into a list of words using split method. Then use a for loop to iterate over the list of words, only if letter c is in a word, print it. For example:

if ‘x’ in word: print(word).

S = “This class has three credits”


4) Create a for loop that iterates over list C and only prints an element if it’s a number (int or float).


C = [13, ‘not me’, -4, ‘skip this one’, 6.1, 0.9, ‘NO’]

In: Computer Science

Background: As noted by Kirk (2016), working with data is one of the four stages of...

Background: As noted by Kirk (2016), working with data is one of the four stages of the visualization workflow. According to Kirk (2016), “A dataset is a collection of data values upon which a visualization is based.” In this course, we will be using datasets that have already been collected for us. Data can be collected by various collection techniques.

Reference: Kirk, Andy. Data Visualisation: A Handbook for Data Driven Design (p. 50). SAGE Publications.

Assignment: Summarize 3 data collection techniques (Interviews, Surveys, Observations, Focus Groups, etc.). Compare and contrast the 3 data collection techniques you selected. Lastly, what collection techniques do you prefer and why?

Your research paper should be at least 3 pages (800 words), double-spaced, have at least 4 APA references, and typed in an easy-to-read font in MS Word (other word processors are fine to use but save it in MS Word format).

Please provide the accurate answers for this question.

In: Computer Science

Create a 32-bit Linux-based assembler language program (nasm) which: 1. Defines these variables: A: A single...

Create a 32-bit Linux-based assembler language program (nasm) which:

1. Defines these variables:

A: A single byte

B: A word

C: A double word

D: A double word

2. Using the eax register (and its sub-registers), process the following equations (ONLY using the mov, add and sub assembly keywords):

I. A + (B + C) = D

II. (A + C) - B = D

3. Using the linux function library, print a string describing each equation, then values in each variable, and then the answer in the resulting variable

4.Use the following values in your equation:

I. 10h

II. 2000h

III. 30000

Sample Output: The Result of A + (B + C) = D is: 32010

When printing out a string in NASM, use the linux function library call PrintString. Make sure your string is 00h terminated. • When printing out a Hexadecimal value in NASM, use the linux function library call Print32bitNumHex

In: Computer Science

Program description is given below!! Client and Server Online Game Jumble: In this assignment, you need...

Program description is given below!!

Client and Server Online Game Jumble: In this assignment, you need to use socket programming to implement an online game Jumble. Generate a random work in server and send it to client and ask for input and then client send the guessed word to server and server check whether its in a word.txt file and reply Win or lose.

Note:

  • Reading content of a text file to a list and generating random number, and game logic is already implemented in jumble.py
  • ONLY need modification in echo-client.py and thread-server.py to implement socket programming.

Test your code and make sure the server can serve multiple players simultaneously. Note the words should be generated independently for each client, so that normally different clients are guessing different words

-----------------------Code--------------------

"""-----------------thread-server.py----------------------
Server side: open a socket on a port, listen for a message from a client,
and send an echo reply; echoes lines until eof when client closes socket;
spawns a thread to handle each client connection; threads share global
memory space with main thread; this is more portable than fork: threads
work on standard Windows systems, but process forks do not;
"""

import time, _thread as thread # or use threading.Thread().start()
from socket import * # get socket constructor and constants
myHost = '' # server machine, '' means local host
myPort = 50007 # listen on a non-reserved port number

sockobj = socket(AF_INET, SOCK_STREAM) # make a TCP socket object
sockobj.bind((myHost, myPort)) # bind it to server port number
sockobj.listen(5) # allow up to 5 pending connects

def now():
return time.ctime(time.time()) # current time on the server

def handleClient(connection): # in spawned thread: reply
time.sleep(5) # simulate a blocking activity
while True: # read, write a client socket
data = connection.recv(1024)
if not data: break
reply = 'Echo=>%s at %s' % (data, now())
connection.send(reply.encode())
connection.close()

def dispatcher(): # listen until process killed
while True: # wait for next connection,
connection, address = sockobj.accept() # pass to thread for service
print('Server connected by', address, end=' ')
print('at', now())
thread.start_new_thread(handleClient, (connection,))

dispatcher()

"""------------------echo-client.py-------------------------
Client side: use sockets to send data to the server, and print server's
reply to each message line; 'localhost' means that the server is running
on the same machine as the client, which lets us test client and server
on one machine; to test over the Internet, run a server on a remote
machine, and set serverHost or argv[1] to machine's domain name or IP addr;
Python sockets are a portable BSD socket interface, with object methods
for the standard socket calls available in the system's C library;
"""

import sys
from socket import * # portable socket interface plus constants
serverHost = 'localhost' # server name, or: 'starship.python.net'
serverPort = 50007 # non-reserved port used by the server

message = [b'Hello network world'] # default text to send to server
# requires bytes: b'' or str,encode()
if len(sys.argv) > 1:   
serverHost = sys.argv[1] # server from cmd line arg 1
if len(sys.argv) > 2: # text from cmd line args 2..n
message = (x.encode() for x in sys.argv[2:])

sockobj = socket(AF_INET, SOCK_STREAM) # make a TCP/IP socket object
sockobj.connect((serverHost, serverPort)) # connect to server machine + port

for line in message:
sockobj.send(line) # send line to server over socket
data = sockobj.recv(1024) # receive line from server: up to 1k
print('Client received:', data) # bytes are quoted, was `x`, repr(x)

sockobj.close() # close socket to send eof to server

--------------------------jumble.py----------------------

import random
F = open('wordlist.txt')
words = F.readlines()
F.close()
while True:
word = words[random.randrange(len(words))]
while len(word) > 5 or len(word) == 0:
word = words[random.randrange(0, len(words))]
word = word.rstrip()
old_word = word
word = list(word)
while word:
print(word.pop(random.randrange(len(word))), end = ' ')
print('\nType your answer')
match_word = input()
new_word = match_word + '\n'
if new_word in words and set(match_word) == set(old_word):
print('You win.')
else:
print('The answer is ' + old_word)

-------------------wordlist.txt---------------------

ab
aba
abaca
abacist
aback
abactinal
abacus
abaddon
abaft
abalienate
abalienation
abalone
abampere
abandon
abandoned
abandonment
abarticulation
abase
abased
abasement
abash
abashed
abashment
abasia
abasic
abate
abatement
abating
abatis
abatjour
abattis
abattoir
abaxial
abba

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

Thank in advance! Please help me soon. I will UPVOTE!!

In: Computer Science

develop a decision concerning on economy (minimum 900) word 1. exchange rate , 2 fluctuation ,...

develop a decision concerning on economy (minimum 900) word 1. exchange rate , 2 fluctuation , 3traffic barrier and 4production cost difference.

In: Economics

According to Hayek’s article “The Use of Knowledge in Society,” Why does he use the word...

According to Hayek’s article “The Use of Knowledge in Society,” Why does he use the word "marvel" when he describes the price mechanism?

In: Economics