Based on A. Nilsson's (2016) 'The Psychology of Worldviews' what are some of the psychological characteristics of worldviews, and how do those affect us? How do those influence our cultural, social, political, and relational beings? How do we find out our own worldviews from Arthur Nilsson's (2016) Psychology of Worldviews?
In: Psychology
C Programming
Please modify this code to display the "guess" value from the calculation and the "iterations" it took to complete. Please also add the input to the program.
Input: Program will prompt the user to provide the desired decimal-place accuracy, in the range of [1-15], inclusive. User prompt must clearly indicate what is a valid input. User input must be validated - ensuring that the value entered is an integer in the above range.
Sample output for one perfect number would look something like:
This may take up to 30 seconds to complete...
Perfect number: 6 = 1 + 2 + 3;
Initial “guess” = 2.0
Expected square root of 6 = 2.4494897...
Computed square root of 6 = 2.4494897...
reached in 8 iterations
using threshold of 0.0000...
for 12 decimal-place accuracy
#include <stdio.h>
int square(int n)
{
int a = n;
int b = 1;
int count = 0;
int e = 0.000001;
while(a - b > e)
{
a = (a + b)/2;
b = n/a;
++count;
}
return a;
}
int main(void) {
// your code goes here
int sum=0,p,i,j =0;
int arr[4],k;
printf("\n Perfect numbers between 1 and 100 are: ");
for(i= 1; i<= 10000; i++){
p=1;
while(p<=(i/2)){
if(i % p == 0)
sum=sum+p;
p++;
}
if(sum==i)
{
arr[j] = i;
printf("%d\t",arr[j]);
++j;
}
sum=0;
}
k = sizeof(arr) / sizeof(int);
for(int l = 0;l<k;l++)
{
printf("\nthe perfect number is %d\n",arr[l]);
printf("expected squareroot is %lf\n",sqrt(arr[l]));
printf("computed square root is %lf\n",square(arr[l]));
}
return 0;
}
In: Computer Science
discuss technology convergence and content convergence
In: Operations Management
At an F-Stop of 22, will your image have deep focus, or shallow depth-of-field? (Cameras)
In: Computer Science
How much should you deposit into a bank account annually in order to buy a property that you expect to cost $231400 in 4 years if the account pays 3% annual interest? You are able to deposit $1355 quarterly into a bank account that is paying 14% annually. How much will you be able to accumulate after 8 years? (Express your answer as a positive number and to two decimal places.)
In: Finance
Outline one possible process for implementing a plan for environmental sustainability.
Please select no more than three significant phases in implementation.
using Process analysis.
1) one thesis statement
2) three-sentence outlines
3) 1 body paragraph
4) 1 conclusion
In: Psychology
In: Psychology
Measuring and evaluating performance is important to managers. They need to explore how individual and performance measures and other measures can be combined to create a better tool for measuring past performance and driving the future achievement of strategic goals. The book lists a few different methods of performance measures, which include Lagging indicators, Leading indicators, Non-financial measures, Bench-marking, and Best practices. If you had a choice, pick one of these 5 measures, explain why you would use it over the others, and how you would implement it.
In: Operations Management
Sam's Construction had a balance in its allowance for doubtful accounts at the end of 2014 of $44,500. Sam reported credit sales of $5,000,000 in 2014 and wrote off receivables of $43,000 during 2014. At the end of the year, Sam estimates un-collectible accounts receivable based on the year-end aging using the assumptions provided at left.
What should Sam report as bad debt expense for 2015?
As of December 31, 2015 | Estimated | |
Days Past Due | Receivables | Uncollectible |
0-30 days past due | 300,000 | 2.50% |
31-60 days past due | 125,000 | 9.00% |
61-90 days past due | 55,000 | 23.00% |
90+ days past due | 15,000 | 65.00% |
495,000 | ||
Allowance for doubtful accounts at 12/31/14 | 44,500 | |
Write-offs in 2015 | 43,000 | |
2015 Sales | 5,000,000 |
In: Accounting
(Programming: Counting threshold inversions)
You’ll be given an array (of integers) and a threshold value as input, write a program to return the number of threshold inversions in the array. An inversion between indices i < j is a threshold inversion if ai > t ∗ aj , where t is the threshold value given as input.
In: Computer Science
In PYTHON Write an algorithm for a function called removeAll which takes 3 parameters: an array of array type, a count of elements in the array, and a value. As with the remove method we discussed in class, elements passed the count of elements are stored as None. This function should remove all occurrences of value and then shift the remaining data down. The last populated element in the array should then be set to None. The function then returns the count of “valid” (i.e. non-removed) data elements left. This function should do the removal “by hand” and SHOULD NOT use the remove method. Hint: Consider what how you update your current position in an array when you don’t remove an element versus when you do remove an element. Python
In: Computer Science
The enthalpy of combustion, ΔH, for benzoic acid,
C6H5COOH, is -3226 kJ/mol. When a sample of
benzoic acid was burned in a calorimeter (at constant pressure),
the temperature of the calorimeter and contents rose from
23.20°C to 28.40°C. The heat
capacity of the calorimeter and contents was 12.41 kJ/ °C. What
mass of benzoic acid was burned?
In: Chemistry
In: Computer Science
Should high school athletes have to submit to random drug testing? What about students who participate in academic decathalons or cheerleading? There have been increased efforts to have all high school students complete drug testing, regardless of whether or not they play a sport. Do you think all high school students should be tested for illegal drug use? In addition do you think random drug testing will decrease illicit drug use in high school students? Why or why not? Be sure to support your position with information from your textbook, the article below, and other scholarly sources.
https://post.blackboard.com/bbcswebdav/pid-4295785-dt-content-rid-32063720_1/courses/PSY307.301086045304/Random_Drug_Testing.pdf
In: Psychology
Question 6
UML is a modeling language that enables software engineers to document and exchange their designs with colleagues. One of the Agile principles states that documentation should be barely good enough. In your opinion, do you feel that creating UML diagrams is a waste of time or contrary to the agile principles? Do we need to do UML diagramming at all in Agile? If not, why? If so, how much and how often should we leverage UML?
In: Computer Science