Questions
Please note that for all problems in this course, the standard cut-off (alpha) for a test...

Please note that for all problems in this course, the standard cut-off (alpha) for a test of significance will be .05, and you always report the exact power unless SPSS output states p=.000 (you’d report p<.001). Also, remember that we divide the p value in half when reporting one-tailed tests with 1 – 2 groups.

Problem Set 2: Two-way mixed design ANOVA (8 pts)

Research Scenario: A researcher is attempting to determine the effects of age and sleep deprivation on a reaction time task. Participants (5 “old”; 5 “young”) in an experiment are given a computerized search task. They search a computer screen of various characters and attempt to find a particular character on each trial. When they find the designated character, they press a button to stop a timer. Their reaction time (in ms) on each trial is recorded (note, so the lower the number, the faster the time). Participants each underwent all three sleep conditions across three days - after having 0, 4, or 8 hours of sleep (times were counterbalanced). The reaction time data for the 10 participants appear below. Using this table, enter the data into a new SPSS data file and run the appropriate test to assess whether sleep deprivation and/or age affect performance on reaction time. Remember that between subjects variables such as “Age” will be represented using a single column in SPSS. Within subjects variables such as sleep would be represented in multiple columns – one per level. Hint: for this data entry, you will end up for a total of four columns in SPSS.

Young

Old

0 hours

12

11

13

12

12

10

11

12

11

11

4 hours

10

11

10

12

10

10

8

10

7

9

8 hours

7

10

5

9

7

12

6

12

7

11

  1. Paste the relevant SPSS output, including post hocs if necessary. (2 pts)
  1. Create the most appropriate graph for this data given the results. (2 pts)
  1. Write an APA-style Results section based on your analysis. All homework “Results sections” should follow the examples provided in the presentations and textbooks. They should include the statistical statement within a complete sentence that mentions the type of test conducted, whether the test was significant, and if relevant, effect size and/or post hoc analyses. Don’t forget to include a decision about the null hypothesis. (4 pts)

In: Statistics and Probability

Can I get some assistance with this request. Right now the code that converts a hex...

Can I get some assistance with this request.

Right now the code that converts a hex character read on input into its decimal value is in the main routine. To make the main routine easier to read, make the conversion code concise and reusable, move it into a function named hex2Dec. The hex2Dec function should take a character parameter which is the character read from input. The function should return an integer which is the converted decimal value of the hexadecimal value represented by the character read from input and passed in as a parameter.

Tasks

  1. Copy the conversion code in the main() routine from the main() routine to lines of code just above.
  2. Next, wrap the conversion code in the function declaration code using the return type, name of the function, and the parameters.
  3. Next, add a call to the function in the main routine passing in the character that was read and assigning the return value to the resulting decimal value that you declared.
  4. Test your code in an identical fashion to that of Project 1B

Here is my project 1B. how can i change it to meet this requirement.

/******************************************************************************

Online C Compiler.
Code, Compile, Run and Debug C program online.
Write your code in this editor and press "Run" button to compile and execute it.

*******************************************************************************/

#include <stdio.h>

int main(void) {
   char input;
   while (1){
   scanf("%c", &input);
   if (input == 'X')
{
   break;}
   printf("You have entered %c\n", input);
      
   if (input >= '0' && input <= '9'){
   int ascii_decimal = (int)input;
   printf("Decimal value of the ASCII character %c = %d\n", input, ascii_decimal);
          
   int hexa = input - '0';
   printf("Decimal value of the Hexadecimal digit %c = %d\n", input, hexa);}
   else{
          
   int ascii_decimal = (int)input;
   printf("Decimal value of the ASCII character %c = %d\n", input, ascii_decimal);
          
   int hexa = input - 'A' + 10;
   printf("Decimal value of the Hexadecimal digit %c = %d\n", input, hexa);}

   if(input>='0'&&input<='9')
{
              
   int ascii_decimal = (int) input;
   printf("Decimal value of the ASCII character %c = %d\n",input,ascii_decimal);
              
   int hexa = input-'0';
   printf("Decimal value of the Hexadecimal digit %c = %d\n",input,hexa);}
          
   else if(input>='A'&&input<='F')
{
              
   int ascii_decimal = (int) input;
   printf("Decimal value of the ASCII character %c = %d\n",input,ascii_decimal);
              
   int hexa = input-'A'+10;
   printf("Decimal value of the Hexadecimal digit %c = %d\n",input,hexa);}
          
   else
{
   printf("you have entered invalid input!!\n");}
      
   fflush(stdin);}

   return 0;
}

In: Computer Science

Electronic communication has all but replaced traditional means of communication in our lives and work. As...

Electronic communication has all but replaced traditional means of communication in our lives and work. As a result, we have experienced a great many rewards and time no longer has the same meaning as it once did. Now our thoughts and ideas can be transmitted almost instantaneously. CPA firms have no doubt reaped the benefits of being able to streamline communication between clients and the firm and marketing is facilitated through websites that contain volumes of information that can assist in gaining clients, recruiting talent and promoting the profession.

However, there are also many risks associated with social media and the CPA and firm are not immune to those. Therefore, it is of utmost importance if you as going into public accounting that you are aware of the risks that are involved in using social and digital media to perform your work as well as risks that your personal information could be used against if you were to become involved in litigation. The following are some examples of where you could run into problems:

Increased Risk for Break of Client Confidentiality – CPAs are given confidential information, such as W-2s, tax returns, social security numbers, credit and debit card information, in order to do their work. You could unintentionally disseminate this sensitive information to others if you press the wrong button or choose the wrong recipient on an email.

Boasting can threaten Credibility – If a CPA firm were to be involved in litigation, an attorney will first seek out the free information that can be found online. If the firm or CPA were to have posted information on Facebook, LinkedIn or some other site that could be shown to be indefensible or inflated, this could be used to call into question the integrity of the firm or CPA.

Independence and Objectivity Issues – If an attorney representing shareholders who lost money due to a company presenting false financial information due to fraud can find information to indicate that the CPA lacked objectivity or independence as required for an audit, then that could be used against the CPA in a legal case. Correspondence between a CPA and a client that shows too familiar a relationship, no matter how innocent it may have been, could be used to assert a claim against the CPA for not discovering fraud due to a lack of objectivity or independence.

Discuss some internet and digital policies that would be beneficial for a CPA or a firm to institute to avoid having their employees or the firm encounter the type of problems discussed above.

Source - http://www.journalofaccountancy.com/issues/2016/mar/social-media-risks.html?utm_source=mnl:twtcpa&utm_medium=email&utm_campaign=09Mar2016

In: Accounting

imagine you are the CEO of Salomon Brothers, where serious and terrible ethical breaches harmed their...

imagine you are the CEO of Salomon Brothers, where serious and terrible ethical breaches harmed their stakeholders, especially their employees. discuss what specific concrete steps you would take to restore your company’s reputation if it’s been sullied (dirtied)? why are these steps important?

Following is "Salomon Brothers" case

Salomon Brothers Before its implosion in 1990, Salomon Brothers was one of the premier global investment banks—perhaps the most direct competitor of the mighty Goldman Sachs. In December 1990, however, the head of Salomon’s government bond trading desk, Paul Mozer, decided to test the regulatory resolve of the U.S. Treasury. Annoyed by the federal limits on the percentage of Treasury bonds any one firm could bid for in Treasury auctions—the ceiling was 35 percent—Mozer devised a plan to evade the regulation. He submitted a bid for Salomon Brothers, and he submitted an unauthorized bid in the name of one of his customers. The two bids combined represented 46 percent of the auction—a clear violation of the rules. Mozer repeated this several times and in April 1991, he described the tactic to four Salomon executives: Chairman John Gutfreund, President Thomas W. Strauss, Vice Chairman John W. Meriwether, and General Counsel Donald M. Feuerstein. These executives told Mozer to stop his scheme but did not report him to the Securities and Exchange Commission. In June, the SEC subpoenaed Salomon for its auction records. In August, Salomon finally alerted the SEC to Mozer’s activities. Immediately following the disclosure to the SEC, Mozer was suspended from his job; shortly afterward, the board of directors asked the four Salomon executives to resign from the firm and fired Salomon’s outside law firm. The board named one of its own members, Warren Buffett, as interim chairman.61 The publicity generated by the Salomon scandal was devastating to the firm and its shareholders. Its market value dropped by over one‐third—$1.5 billion—in the week following the disclosure. Its debt was downgraded by various rating agencies, and major banks reevaluated Salomon’s loan terms. Because of the firm’s decreased liquidity, its ability to trade was dramatically reduced. In addition to the immediate financial debacle, teams of Salomon Brothers personnel left the firm. Weakened by the bad press and the defections of talent, Salomon Brothers managed to remain independent until 1998, when it was acquired by the Travelers Group and eventually it became part of Citigroup. This is just one more example of how personal hubris (on the part of Mozer) and refusal to report such hubris to the regulators (on the part of the firm’s executive team) can result in a death sentence, especially in the financial industry where reputation is everything.

In: Operations Management

What is the opinion or perspective on this idea of assessing risk in the internal control...

What is the opinion or perspective on this idea of assessing risk in the internal control process? (See paragraph below to get an idea or answer the question.) Please raise thoughtful questions, analyze relevant issues, build on ideas, synthesize across readings and discussions, expanding the perspective, and appropriately challenging assumptions and perspectives.

Significance of assessing risk in the internal control process: In chapter 3, we learned that the purpose of the internal control process is “to provide reasonable assurance regarding the achievement of objectives relating to operations, reporting and compliance.” (Page 38, paragraph 3). One component of the internal control process is “Assessing Risk,” which requires an organization to determine, analyze and mitigate the risks inherent in achieving its goals and objectives. Without identifying, understanding and alleviating the risks involved in accomplishing it mission, an organization will both miss opportunities to improve operations and hinder its ability to achieve its goals and objectives.

According to our text on page 62, paragraph 3, “governments exist to protect the health, safety and welfare of its citizens;” to this definition, I would add the point that governments must also be as accountable and transparent as possible. For a government, therefore, assessing risks involves looking at the operations which allow the government to achieve this mission and assessing the risks inherent in these operations. Once the risks are identified, it is helpful for the government to prioritize resources so that the most significant risks are addressed first.

I work in the finance department of a Town, and the director of Finance is continually looking for risks in our business processes. If any red flags are raised, she will work quickly to adjust business processes to mitigate these risks. For example, we are currently working to reallocate or return a large portion of developer fees that were collected in the early 2000s. These fees are collected from developers to pay for the potential off-site improvements – such as road widening, or traffic lights – needed due to the impact of the new development. By law, these off-site exactions are to be returned to the payer if they are not used for the intended purpose within 6 years. Through lack of internal control –especially the component of assessing risk – the Town ended up holding onto many of these fees passed the 6 year deadline. Recently, with staff turnover, the issue of the developer fees came up and the risk of holding onto these fees any longer – namely litigation, other legal troubles, and bad press – was addressed. We are now in the process of returning the developer fees that should have already been returned. Moreover, new processes were put in place to prevent this from ever happening again, including monthly reporting and better record keeping.

In: Accounting

“This is really an odd situation,” said Jim Carter, general manager of Highland Publishing Company. “We...

“This is really an odd situation,” said Jim Carter, general manager of Highland Publishing Company. “We get most of the jobs we bid on that require a lot of press time in the Printing Department, yet profits on those jobs are never as high as they ought to be. On the other hand, we lose most of the jobs we bid on that require a lot of time in the Binding Department. I would be inclined to think that the problem is with our overhead rates, but we’re already computing separate overhead rates for each department. So what else could be wrong?”

Highland Publishing Company is a large organization that offers a variety of printing and binding work. The Printing and Binding departments are supported by three service departments. The costs of these service departments are allocated to other departments in the order listed below. The Personnel cost is allocated based on number of employees. The Custodial Services cost is allocated based on square feet of space occupied and the Maintenance cost is allocated based on machine-hours.

Department Total Labor-Hours Square Feet of Space Occupied Number of Employees Machine-Hours Direct Labor-Hours
Personnel 16,400 12,800 20
Custodial Services 8,500 3,100 49
Maintenance 14,200 10,800 62
Printing 30,400 41,000 110 165,000 12,000
Binding 105,000 20,800 304 50,000 71,000
174,500 88,500 545 215,000 83,000

Budgeted overhead costs in each department for the current year are shown below:

Personnel $ 330,000
Custodial Services 65,400
Maintenance 93,200
Printing 413,000
Binding 169,000
Total budgeted cost $ 1,070,600

Because of its simplicity, the company has always used the direct method to allocate service department costs to the two operating departments.

Required:

1. Using the step-down method, allocate the service department costs to the consuming departments. Then compute predetermined overhead rates in the two operating departments. Use machine-hours as the allocation base in the Printing Department and direct labor-hours as the allocation base in the Binding Department.

2. Repeat (1) above, this time using the direct method. Again compute predetermined overhead rates in the Printing and Binding departments.

3. Assume that during the current year the company bids on a job that requires machine and labor time as follows:

Machine-Hours Direct
Labor-Hours
Printing Department 2,200 1,200
Binding Department 500 14,000
Total hours 2,700 15,200

a. Determine the amount of overhead cost that would be assigned to the job if the company used the overhead rates developed in (1) above. Then determine the amount of overhead cost that would be assigned to the job if the company used the overhead rates developed in (2) above.

In: Accounting

As a group of engineers with basic Visual Basic skills, you are asked to provide your...

As a group of engineers with basic Visual Basic skills, you are asked to provide your client with a user-friendly macro-enabled Excel spreadsheet that can be used to calculate the deflection and bending moment of a simply supported beam and a cantilever beam. The spreadsheet will provide a user-friendly interface to allow the client to: i) define the type of beam (i.e. a simply supported beam or a cantilever beam); ii) define cross sectional properties of a given beam structure; iii) define structural parameters and materials. e.g. a main page will allow for a user friendly interface that lists all the individual regular shapes that form a complex shape with options to add more regular shapes to the composition via a button etc. This could lead to another interface that will allow the client to define the parameters of each individual shape (preferably in another sheet). Once the parameters are entered the client will be returned to the main sheet where the details of the newly defined shape will automatically be added to the list of shapes. Once the entire cross-section has been defined, the Excel spreadsheet will calculate the overall second moment of inertia via a button. Challenges (Optional): • An image will automatically be produced when the various shapes are added. • More than one material can be added to the shape in this Excel sheet. STAGE 2 – PART 2 (Maximum Bending Moment and Deflection) Similar to Stage 1 of the group project, this part builds on the information obtained from part 1. Your clients are bridge engineers who want to calculate the deflection and bending moment of their beams. A button on the main page will allow the users to open a new interface to define the load and properties of the beam so that they can calculate the deflection and bending moment of the beam. The user will be given the option to choose any of the following load configurations on the beam. • Concentrated point load • Uniformly distributed load • Uniformly varying load Once all this information is entered, Excel will automatically compute and present the results of the beam’s deflection and bending moment. Hint: Formulae for simply supported beam and cantilever beam can be found online. Challenge (Optional): Plot the shear force diagram and the bending moment diagram. STAGE 2 – PART 3 (Report) Once the cross section and the maximum bending moment and deflection of beam have been defined, the user will be given the choice to press a button to automatically generate an A4 printable report based on the input and calculations produced in this Excel sheet. This report will summarise the parameters that the user has put into Excel and display the results in a way that is simple for the client to interpret.

In: Civil Engineering

i keep getting return value ignored and and conversion from double to float , possible data...

i keep getting return value ignored and and conversion from double to float , possible data loss dont know how to fix the mistakes. if you could please fix it.

#define _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_DEPRECATE
#define _CRT_NONSTDC_NO_DEPRECATE
#include
#include


void O_Read_age_1()
{
   int sum = 0;
   int i;
   for (i = 1; i <= 2; i++)
   {

       int temp;
       printf("please enter the age of employee %d:", i);
       scanf("%d", &temp);
       sum += temp;
   }

   printf("\n");
   printf("The total age of all employees is%d\n", sum);
   return;
}
float O_Read_Salary_1()
{

   float sum = 0;
   int i;
   for (i = 1; i <= 2; i++)
   {
       printf("PLease enter the salary of the employee %d:", i);
       float temp;
       scanf("%f", &temp);
       for (; ((temp < 1000)) || ((temp > 6000));)
       {
           printf("Salary should be from 1000 to 6000:");
           scanf("%f", &temp);
       }
       if (temp <= 2150)
       {
           float inc = temp * 0.2;
           sum += temp;
           sum += inc;
       }
       else if ((temp > 2150) && (temp <= 4150))
       {

           float inc = temp * 0.15;
           sum += temp;
           sum += inc;
       }
       else if ((temp > 4150) && (temp <= 5150))
       {
           float inc = temp * 0.1;
           sum += temp;
           sum += inc;
       }
   }
   return sum;
}
void O_Read_Gender_1()
{
   int males = 0;
   int females = 0;
   int j = 0;
   char ch;
   for (j = 0; j < 2; j++)
   {
       printf("Enter the gender of employee %d (F or M):", j + 1);
       ch = getchar();
       scanf("%s",&ch);
       printf("\n");
       if (ch == 'F')
       {
           females++;
       }
       else if (ch == 'M')
       {
           males++;
       }
   }
   printf("The number of female employees is %d \n", females);
   printf("The number of male employees is %d \n", males);
  
   return;
}
void O_Calculate_Bonus_1()
{
   int bonus = 0;
   printf("Enter the rank of the company: %d");
   printf("\n");
   int Rank;
   scanf("%d", &Rank);
   printf("Enterr the ID of the company: ");
   int id;
   scanf("%d", &id);
   printf("\n");
   if (Rank == 1)
   {
       bonus = 15;
   }
   if (Rank == 2)
   {
       bonus = 10;
   }
   else
   {
       bonus = 5;
   }
   printf("Company ID = %d\n", id);
   printf("Rank= %d\n", Rank);
   printf("Bonus = %d", bonus);
   printf("Student: Bader Alostad Section:O1 ID:45191 - Semester Spring 2 online Press any button to continue...\n");
   return;
}


int main()
{
   float ans = O_Read_Salary_1();
   printf("\n");
   printf("The Function Read_Salary return the value %f \n", ans);
   O_Read_age_1();
   O_Read_Gender_1();
   O_Calculate_Bonus_1();
   return 0;

}

In: Computer Science

US History Freedom House was an organization that: a demanded American intervention in the European war....

US History

Freedom House was an organization that:

a demanded American intervention in the European war.

b Jewish refugees could flee to from Europe.

c believed the European war was not an American concern.

d raised funds for Japanese-Americans to use for legal fees to bring court cases against the United States for unlawful imprisonment.

e was located in Chicago and acted as a networking resource for blacks moving there from the South.

Which of the following best describes Nixon's foreign policy of "détente"?

a It meant a continuation of the status quo.

b The United States was not yet willing to sign arms-control treaties with the Soviet Union.

c As demonstrated by diplomatic visits to both China and the Soviet Union, Nixon sought a peaceful coexistence with communist nations.

d It meant a rejection of Henry Kissinger's "realist" approach to the Cold War.

e It meant Nixon had gone "soft" on communism.

"Americanization" was:

a the Viet Cong's policy of immediate execution of defectors recaptured from the South Vietnamese army.

b Nixon's term for the transformation of young people into "real" Americans when they refrained from protesting against the war.

c Nixon's Vietnam strategy to have American troops gradually withdraw and South Vietnamese troops assume more of the fighting.

d the State Department program offering fast-tracked political asylum for South Vietnamese military officials and their families.

e the spread of American culture in South Vietnam to display the benefits of capitalism.

What was the Contract with America?

a A press term for the Clinton reelection strategy.

b Clinton's 256-page proposal to overhaul the nation's welfare system.

c A 1994 Republican plan to steeply cut federal education, medical, and environmental programs.

d A speech delivered by Clinton that promised to continue to work on health care reform.

e what Democrats called Bill Clinton's victory in 1992.

Globalization:

a had little to do with the collapse of communism.

b was symbolized by corporations such as Microsoft and organizations like the WTO.

c is closely associated with the 1990s, although it was not a new phenomenon.

d promoted the free flow of goods and services across borders, but only with a strict regulatory apparatus in place.

e B and C

In the 1990s, the prison population:

a declined because there was little new prison construction.

b experienced shorter sentences and more rehabilitation programs than before.

c increased because crime rates increased in the 1990s.

d increased as state governments increased penalties for crimes and decreased parole.

e declined because states refused to fund the "prison-industrial complex."

In: Psychology

In the given instruction, I am to use while loops only. The goal is to prompt...

In the given instruction, I am to use while loops only. The goal is to prompt the user to select an acceptable input. If the wrong input is given, the program forces the user to select an appropriate input. The program also keeps running until the user chooses to exist by selecting a very specific input which in my case is the upper or lower case "E".

The problem is even after selecting upper or lower case "E", my program keeps running. I am using the "i" variable as the condition for my while loop. I initialized the variable to 2, for example, and set my while loop to 2 which means the condition is true and the while loop will keep running. I changed my "i" variable to 3 for example only when upper or lower case "E" is pressed. This according to my thinking should make the loop false and essentially not run the loop anymore but my loop keeps running

#include<stdio.h>

int main()
{
    char selection;
    float length, width, area, base, height, apothem, side;
    int i=2;
    while (i=2)
    {
    printf("Press R to calculate the area of a rectangle\nPress T to calculate the area of a right angled triangle\nPress M to calculate the area of a polygon\nPress E to exit the program\n");
    scanf(" %c", &selection);
    switch (selection)
    {
    case 'R':
    case 'r':
        printf("Enter the length of the rectangle\n");
        scanf("%f", &length);
        printf("Enter the width of the rectangle\n");
        scanf("%f", &width);
        area=length*width;
        printf("The area of the rectangle is %f\n", area);
        break;
    case 'T':
    case 't':
        printf("Enter the base of the triangle\n");
        scanf("%f", &base);
        printf("Enter the height of the triangle\n");
        scanf("%f", &height);
        area=(0.5)*base*height;
        printf("The area of the triangle is %f\n", area);
        break;
    case 'M':
    case 'm':
        printf("Enter the length of one side of the polygon\n");
        scanf("%f", &length);
        printf("Enter the apothem of the polygon\n");
        scanf("%f", &apothem);
        printf("Enter the number of sides of the polygon\n");
        scanf("%f", &side);
        area=0.5*length*side*apothem;
        printf("The area of the polygon is %f\n", area);
        break;
    case 'E':
    case 'e':
        printf("You are exiting the program\n");
        i=3;
        break;
    default:
        printf("You have selected an invalid input\n");
        break;
    }
    }
    return 0;
}

In: Computer Science