Questions
Write a JavaFX application that presents a button and a circle. Every time the button is...

Write a JavaFX application that presents a button and a circle. Every time the button is pushed, the circle should be moved to a new random location within the window.

This must only be one .java file. I cannot use

import javafx.geometry.Insets;

import javafx.scene.canvas.Canvas;

import javafx.scene.canvas.GraphicsContext;

import javafx.scene.layout.HBox;

This is what I have so far:

import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Pos;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.shape.Circle;
import javafx.scene.paint.Color;
import javafx.stage.Stage;

public class CircleJumper extends Application
{
public double circlePositionX = 300;
public double circlePositionY = 300;
  
@Override
   public void start(Stage primaryStage)
{
Circle circle = new Circle(circlePositionX, circlePositionY, 70);
circle.setFill(Color.BLUE);

//create button to create new circle
Button push = new Button("PRESS!");
push.setOnAction(this::processButtonPress);
  
  
Group root = new Group(circle, push);
Scene Scene = new Scene(root, 700, 500, Color.WHITE);
  
       primaryStage.setTitle("Circle Jumper"); // Set the stage title
       primaryStage.setScene(Scene); // Place the scene in the stage
       primaryStage.show(); // Display the stage
   }
  
public void processButtonPress(ActionEvent event)
{   
Circle circle = new Circle(Math.random(), Math.random(), 50);
circle.setFill(Color.BLUE);
Group root = new Group(circle);
Scene Scene = new Scene(root, 700, 500, Color.WHITE);
}
  
public static void main(String[] args)
{
launch(args);
}

In: Computer Science

Assignment Description Write a program that will have a user guess whether a person is a...

Assignment Description

Write a program that will have a user guess whether a person is a musician or a writer. You will create a

group of four names, two musicians and two writers, and show the user a name randomly selected from

the four. The user will then guess whether they think the name belongs to a musician or writer. After a

guess, the program will tell the user whether they are correct, repeat the name, and reveal the correct

answer.

Tasks

1) The program needs to contain the following

a.

A comment header containing your name and a brief description of the program

b. At least 5 comments besides the comment header explaining what your code does

c.

Four string variables, two musicians and two writers

d. A way to randomly display one of the four names to the user

e. Output asking the user whether the name displayed is a musician or a writer

i. If the user guesses correctly, congratulate them before outputting the displayed

name and the correct answer

ii. If the user guesses incorrectly, output the displayed name and the correct

answer

f.

Press enter to continue” and Console.Read(); at the end of your code

2) Upload the completed .cs file onto the Assignment 3 submission folder. To access the .cs file:

a.

Right click on your program tab

b. Click “Open containing folder”

c.

The file you are working on will be there with a .cs extention, upload the .cs file


please code in C#- (C Sharp)

In: Computer Science

Create a C++ project called RobberyLanguage. Ask the user to enter a word. Write a function...

Create a C++ project called RobberyLanguage. Ask the user to enter a word. Write a function that will receive the word, use the word to compile a new word in Robbery language and return the new Robbery language word. In the function: Use a while loop and a newline character (‘\0’) to step through the characters in the original string. How to compile a word in Robbery language: Double each consonant and put the letter ‘o’ between the two consonants. For example:" ENTER THE WORD: Welcome

original word is welcome , Robbery language: wowelolcocomome

process returned 0 (0*0) execution time :

press any key to continue "

Example of the definition of the function: string compileRobLanWord(char word[50]) Hints: Declare a new character string for the Robbery language word. A word in Robbery language has more characters than the original word. Therefor the new string must have its own index value. How it looks like in memory: Original word: S a m \0 2 0 1 2 3 Robbery language: S o S a m o m \0 0 1 2 3 4 5 6 7 Note: Remember to add the \0 character as the last character of the new word. In the main function: Example of the call statement in the main function: newWord = compileRobLanWord(word); Display the original word and the Robbery language word.

C#(VISUAL STUDIO)

In: Computer Science

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

Item 1

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

Darwin's theory of evolution by natural selection is satisfying because it shows us a way in which simplicity could change into complexity, how unordered atoms could group themselves into ever more complex patterns until they ended up manufacturing people.

References:
Dawkins, R. (1989). The selfish gene (3rd ed.). Oxford, England: Oxford University Press.

There is a range of perspectives on Darwin's ideas about evolution. His theory of evolution shows us a way in which simplicity could change into complexity that many find appealing. When Dawkins (1989) states that "Darwin's theory of evolution by natural selection is satisfying" (p. 12), he points to the ability of the theory to explain complex phenomenon.



References:
Dawkins, R. (1989). The selfish gene (3rd ed.). Oxford, England: Oxford University Press.


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

Word-for-Word plagiarism

Paraphrasing plagiarism

This is not plagiarism

Hints

Item 2

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

Murdoch's own moral philosophy has a great deal in common with the work of philosophers like Richard Rorty, Stanley Cavell and Martha Nussbaum. She shares with them not only the attempt to work out a chastened, usable, non-metaphysical discourse and vocabulary for a qualified humanist ethics but also their conception of the novel as an embodiment of moral philosophy.

References:
Bényei, T. (2003). Angelic omissions: Iris Murdoch's angels and ethical criticism. European Journal of English Studies, 7(2), 151-163.

Murdoch and number of other philosophers all tried to establish a subdued, non-metaphysical, and operational lexicon and discourse for a humanist ethics. According to Bényei (2003) "Murdoch's own moral philosophy has a great deal in common with the work of philosophers like Richard Rorty, Stanley Cavell and Martha Nussbaum" (p. 151). However, I have several points of contention with their assertions.

References:
Bényei, T. (2003). Angelic omissions: Iris Murdoch's angels and ethical criticism. European Journal of English Studies, 7(2), 151-163.


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

Word-for-Word plagiarism

Paraphrasing plagiarism

This is not plagiarism

Hints

Item 3

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

Suppose you study a group of successful companies and you find that they emphasize customer focus, or quality improvement, or empowerment; how do you know that you haven't merely discovered the management practice equivalent of having buildings? How do you know that you've discovered something that distinguishes the successful companies from other companies? You don't know. You can't know--not unless you have a control set, a comparison group.

References:
Collins, J. C., & Porras, J. I. (2002). Built to last: Successful habits of visionary companies. New York, NY: Harper Paperbacks.

One has to ask oneself how you know that you've discovered something that distinguishes the successful companies from other companies? Otherwise, you can fall into a trap that is the same as identifying "the management practice equivalent of having buildings" (Collins & Porras, 2002, p. 14).

References:
Collins, J. C., & Porras, J. I. (2002). Built to last: Successful habits of visionary companies. New York, NY: Harper Paperbacks.


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

Word-for-Word plagiarism

Paraphrasing plagiarism

This is not plagiarism

Hints

Item 4

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

Participant motivation to engage in these activities can also be enhanced by providing students with an opportunity to help generate the solutions to tactical problems that exist within net/wall games and have input into game creation. The principles provide a framework of tactical solutions that range from simple to complex (i.e., tactical complexity) and promote understanding of these solutions through creating games that exaggerate their importance and relevance in game settings.

References:
Mandigo, J. L., & Anderson, A. T. (2003). Using the pedagogical principles in net/wall games to enhance teaching effectiveness. Teaching Elementary Physical Education, 14(1), 8-11.

If tactics don't matter and a game is all about pure physical skill, it can become rather boring. The tactical dynamic, especially between players, can lead to unexpected outcomes as a result of player innovation. Furthermore, giving players an opportunity to contribute to creating solutions to problems that are tactical in net/wall games can contribute to enhancing player engagement.


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

Word-for-Word plagiarism

Paraphrasing plagiarism

This is not plagiarism

Hints

Item 5

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

Educational processes and systems are complex, and any attempt to measure them, especially at this level of aggregation, can only lead to broad and general discussions. However, we contend that this discussion is necessary. Further, attempting to measure global processes in education may provide another puzzle piece to theoreticians as well as national and local policy-makers, who are working at understanding and, in the latter case, steering educational systems.

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.

After presenting their results the authors recognize that the nature of the data they have provided "can only lead to broad and general discussions" but also suggest "that this discussion is necessary" (Rutkowski & Rutkowski, 2009, p. 150).

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

In: Psychology

A well-researched effect in the criminal justice literature is that mock jurors in research studies are...

A well-researched effect in the criminal justice literature is that mock jurors in research studies are more likely to convict an African-American defendant than a White defendant when they are accused of the same crime. For this study, we wanted to know whether a measure of self-reported racial bias was correlated with or could be used to predict harshness of sentencing recommendations for an African-American defendant. Participants read a vignette where an African American defendant was tried and convicted of a crime, and they were then asked to indicate how long of a prison sentence they felt he deserved (options ranged from 0 years – 7 years). They then completed a measure of self-reported racial bias, which had a minimum score of 0 (least biased) to 20 (most biased)

Enter the following data set into SPSS.

ID

Racial Bias

Sentencing Recommendation

ID

Racial Bias

Sentencing Recommendation

1

11

4

21

12

6

2

5

2

22

10

4

3

14

7

23

4

2

4

16

6

24

6

2

5

9

4

25

14

6

6

11

4

26

6

3

7

14

5

27

12

6

8

13

5

28

10

6

9

4

2

29

1

2

10

2

2

30

2

3

11

10

4

12

6

2

13

13

6

14

10

5

15

3

2

16

5

2

17

3

6

18

5

3

19

12

6

20

3

0

  1. Create a scatterplot in SPSS to look at the relationship between the two variables and include it with your output. What would you say the relationship between the two variables is? (strength and direction) __________________________________  
  2. Now run an analysis to determine whether there is a significant correlation between the two variables. Which type of SPSS analysis is appropriate to use to answer the question above? _____________________
  3. What is the mean for racial bias? __________ What is the mean for sentencing recommendations? _________
  4. What is the correlation between racial bias and sentencing recommendations? __________________ Is it significant at a = .05? ______________
  5. How would you describe this correlation? (strength and direction) ________________________________

In: Statistics and Probability

When twenty-seven-year-old Natasha Frechette learned that she had multiple sclerosis, she wondered whether she would not...

When twenty-seven-year-old Natasha Frechette learned that she had multiple sclerosis, she wondered whether she would not only need someone to take care of her but whether she would be able to keep her data manager job at the small research firm where she worked. After all, the disease with which Frechette was diagnosed could lead to numbness, blindness, and eventual paralysis. Not to mention she would need to take time off for physical and occupational therapy. In a related story, Joel Boswell could no longer work as a mechanic at United Airlines after he was treated for a brain tumor. The U.S. Equal Employment Opportunity Commission (EEOC) alleged in its class-action lawsuit against the airline that rather than hiring Boswell for other jobs for which he was qualified, United Airlines placed him on involuntary leave until he retired. According to the EEOC attorney, “They [disabled workers] shouldn’t have to compete with everybody else. If they can do these jobs, they should try to work out an accommodation with the disabled worker.”

Frechette and Boswell are not alone. Millions of U.S. workers grapple with similar issues. In fact, over 7.4 million workers received Social Security Administration (SSA) disability benefits in 2008. Many of these workers suffer from serious or chronic illnesses that interfere with their ability to perform the work that brings so much meaning to their lives. Yet, many disabled employees do not let their employers know for fear of being perceived as cop-outs or of being discriminated against. Failure to disclose one’s illness, regardless of the reason, is risky. First, employers could mistake disability-related behaviors as dysfunctional behavior. For example, career coach Rosalind Joffe speaks of a client who, by not disclosing his illness to his employer, was accused of being a drug abuser. Most importantly, employers won’t know if and in what ways to adjust the disabled employee’s work if they don’t know that an adjustment is required.

  1. 1. As a manager, how would you balance a disabled employee’s needs for a work adjustment to your need to design jobs that meet organizational performance goals?
  1. 2. Do you believe United Airlines was justified in placing Boswell on involuntary leave? Explain.

In: Operations Management

As a manager, how would you balance a disabled employee’s needs for a work adjustment to your need to design jobs that meet organizational performance goals?

Making a Way for the Disabled Worker

When twenty-seven-year-old Natasha Frechette learned that she had multiple sclerosis, she wondered whether she would not only need someone to take care of her but whether she would be able to keep her data manager job at the small research firm where she worked. After all, the disease with which Frechette was diagnosed could lead to numbness, blindness, and eventual paralysis. Not to mention she would need to take time off for physical and occupational therapy. In a related story, Joel Boswell could no longer work as a mechanic at United Airlines after he was treated for a brain tumor. The EEOC alleged in its class-action lawsuit against the airline that rather than hire Boswell for other jobs for which he was qualified, United placed him on involuntary leave until he retired. According to the EEOC attorney, “They [disabled workers] shouldn’t have to be competing with everybody else. If they can do these jobs they should try to work out an accommodation with the disabled worker.”

Frechette and Boswell are not alone. Millions of U.S. workers grapple with similar issues. In fact, over 7.4 million workers received Social Security Administration (SSA) disability benefits in 2008. Many of these workers suffer with serious or chronic illnesses that interfere with their ability to perform the work that bring so much meaning to their lives. Yet, many disabled employees do not let their employers know for fear of being perceived as a cop-out or of being discriminated against. Failure to disclose one’s illness, regardless of the reason, is risky. First, employers could mistake disability-related behaviors as dysfunctional behavior. For example, career coach Rosalind Joffe tells of client who, by not disclosing his illness to his employer, was accused of being a drug abuser. Most importantly, employers won’t know if and in what ways to adjust the disabled employee’s work if they don’t know that an adjustment is required.

Questions

  1. As a manager, how would you balance a disabled employee’s needs for a work adjustment to your need to design jobs that meet organizational performance goals?

  2. Do you believe United Airlines was justified in placing Boswell on involuntary leave? Explain.

In: Operations Management

For each case study, discuss the ethics involved in the study using the ethical framework presented...

For each case study, discuss the ethics involved in the study using the ethical framework presented in your reading.

Case No. 1: A developmental psychologist is conducting research on physiological correlates of orienting responses in newborn infants. What is his obligation with respect to sharing each child's data with the child's parents? Does it make a difference if the data suggest the presence of neurological abnormality in some participants?

Case No. 2: A local business is interested in making better decisions about which employees should be encouraged to pursue a career track in management. They ask a psychologist to administer and interpret personality tests that include measures of creativity, ego strength, and introversion/extroversion to a group of new employees. Should the psychologist honor this request? What issues are raised if the instruments used by the psychologist were developed using samples of white, middle-class men? What if the psychologist also is asked to administer an integrity test to evaluate each new employee?

Case No. 3: A psychologist who conducts research on jury characteristics has reported that potential jurors with specific demographic characteristics are more likely to render verdicts that favor the defense in certain types of felony cases. An attorney who is defending an accused rapist offers her a position as a consultant. She is asked to advise the defense team about which potential jurors should be eliminated during the voir dire process. Should she accept the position? Why or why not?

Case No. 4: A psychologist is a guest in a weekly radio "call-in" program. Listeners are invited to ask questions. During a show on treatment of depression, a listener calls with a "question" about someone he knows who seems "down". He reports that this acquaintance has been missing work frequently, seems irritable most of the time, and has made comments about "getting out of the rat-race for good". The psychologist, concerned that the caller may be actually speaking about himself, tells the caller that the friend is clinically depressed, is a likely suicide risk, and should be seen by a mental health professional as soon as possible. The psychologist then offers an appointment time in her schedule the following morning if the caller will bring his "friend" to the office for evaluation and referral to a local physician. Has she followed ethical guidelines in handling this situation?

In: Psychology

After months of searching for a weekend job, Danté, who is Black, finally got an interview...


After months of searching for a weekend job, Danté, who is Black, finally got an interview with the owner of a busy car wash and gas station. The owner seemed reluctant to hire him, but Danté managed to win him over. The owner gave him the job, saying that he would be working on a weekend shift with seven other young men, all students from the local area. The shift manager would train him on the car wash equipment.
On Danté's first day, the shift manager gave him only a few minutes of instruction on the equipment. Dante watched what the other men were doing, but when he asked questions, they were not very helpful.
Over the next few weekends, Danté concentrated on his work but because of certain events, he increasingly began to stay by himself. A few co-workers invited him to join their little group for lunch or breaks, but others consistently cracked ethnic and racial jokes, often within hearing of the shift manager. One day Danté overheard the manager say that Black people were responsible for increased violence in the community. This statement encouraged some co-workers, who had previously eaten lunch with Danté, to tell a couple of jokes about Black people. When they glanced at him as they told their jokes, he got up and walked away.
One busy Saturday afternoon, a whole section of the car wash equipment broke down because someone had allowed the system to become overheated. Danté had worked on that section until his break, when a co-worker took over. The system had broken down at some point after that.
The shift manager was furious and accused Danté of negligence. Danté replied that he believed the system was fine when he left for his break. Although Danté insisted that the equipment failure was not his fault, the shift manager fired him. Danté believed he was discriminated against because he is Black, while his co-workers and managers are White.

1. Did the shift manager have good reason for firing Danté? Why?
2. What factors would a human rights tribunal take into consideration?

In: Operations Management

Problem #1 You ask your graduate student to roll a die 5000 times and record the...

Problem #1

You ask your graduate student to roll a die 5000 times and record the results.

a)     Give the expected mean and standard deviation of the outcome.

P= 1/6 , Q= 5/6

NP= 5,000

NP X P= 5,000 *1/6 =

5,000/6

SD: Square root(5,000 * 1/6 * 5/6) = Square Root

b) The die roll experiment is repeated (though with a different graduate student – for some reason your previous student went to work with a different advisor). However in this case, the die is weighted so that a 6 shows up 11% of the time, a 1 shows up 21% of the time, and all remaining numbers show up 68% of the time (17% each). Now what is the expected mean and sd of 5000 rolls?

Problem #2

Part a: A product manager is evaluating production and inventory. In looking over the data, she decides that a product should be continued if it sold 23,000 over the previous year. In addition, the product is considered “popular” if it receives 50 mentions by the local press over the past year.

In selecting a product at random from the catalog, let C be the likelihood that this particular product sold 23,000 products the past year. Let P be the likelihood that the product received the 50 or more mentions by the local press.

The analyst determines that P(C) = 0.297, P(P) = 0.162, and the probability that a product has sold 8000 items, and was ‘popular’ is 0.083. What is the probability that a randomly selected product either sold the requisite 23,000 items, or that it is ‘popular’?

Part b: Where would the analyst have come up with the probaility values for P(C) andP(P)?

Problem #3

You are playing a game of backgammon, and realize that if either of the two dice on your next roll is a 4, you will win the game. (It’s also fine for both dice to be a 4, but you only need one). However, if you don’t get a 4 on either die, your opponent will win on their next move.

Just to restate: As long as you see a 4 on either of the dice, you will win, otherwise you lose. What is the probability that you will win the game?

Problem #4

You are a coach of a basketball team, and the final game of the season is on the line. Here are the current season’s data for your two best shooters, Lisa and Maggie. The {0, 1, 2, 3} represents the number of baskets they made out of the 3 throws. For example, Lisa makes all 3 baskets 10% of the time, and makes 0 (ie misses all 3) 16% of the time.

Lisa

0

1

2

3

Prob.

.16

.45

.29

.1

Maggie

0

1

2

3

Prob.

.17

.45

.25

.13

a)     You must pick one of the following two players to make 3 free-throw attempts. Which one is most likely to give you your best result? Be sure to explain why.

b)      Suppose you needed to make all 3 baskets in order to win, otherwise you would lose. Who would you pick? B

In: Statistics and Probability