Questions
A JavaFX question a method called generate2Num(Pane, pane){}; A botton "botton1" that botton.setOnAction(e-> {}); calling generate2Num...

A JavaFX question

a method called generate2Num(Pane, pane){};

A botton "botton1" that botton.setOnAction(e-> {}); calling generate2Num method and show the numbers on Scene.

Every time the user clicks botton1, the updated number will show on the Scene.

I just wanna know how can I update my data by click the button.

Please show the code , thank you

In: Computer Science

Shelly's Boutiques and Crafts had revenue of $5,700,000 this year on sales of 575,000 units. Variable...

Shelly's Boutiques and Crafts had revenue of $5,700,000 this year on sales of 575,000 units. Variable costs were 35% and fixed costs totaled $3,150,000. Although the first five years were relatively profitable, increases in competition have led to a negative trend in profitability that has led them to the point where they have to make some changes to stay afloat. The company is evaluating two options to stay afloat.

Option 1:Purchase machinery to automate their operations. This machinery costs $625,000, but will decrease variable costs by 9%.

Option 2:Outsource the production of one of their main components that requires a substantial amount of machinery and skilled labor. This will reduce fixed costs by $425,000, but increases variable costs from their current 35% of sales to 40% of sales.

c.) Calculate the operating leverage before applying any of the options: What is the contribution margin in Total? What is the operating income in total? What is the operating leverage factor?

In: Accounting

The School District of Philadelphia wants to encourage teachers to fill out an “end-of-year” survey designed...

The School District of Philadelphia wants to encourage teachers to fill out an “end-of-year” survey designed to elicit their feedback about various issues affecting schools. The survey is one of the primary channels through which the school district learns about what is happening in schools across the city, and increasing engagement is a key policy priority for the city. The School District has already created the survey and plans to send out the survey in an email to its 8,062 teachers. The District is willing to manipulate the messaging content in the email that will be sent out and/or provide rewards and incentives for survey completion. (They have up to $3,000 to spend.) Using your knowledge of behavioral economics, what would you suggest they do to maximize survey response rates? Be as specific as possible and justify your choices.  

In: Economics

Explain how globalization process can alleviate poverty form the stand point of Aid?

Explain how globalization process can alleviate poverty form the stand point of Aid?

In: Economics

A multinational firm wants to estimate the average number of hours in a month that their...

A multinational firm wants to estimate the average number of hours in a month that their employees spend on social media while on the job. A random sample of 83 employees showed that they spent an average of 21.5 hours per month on social media, with a standard deviation of 2.5. Construct and interpret a 95% confidence interval for the population mean hours spent on social media per month.

In: Math

Write a program to sort the student’s names (ascending order), calculate students’ average test scores and...

Write a program to sort the student’s names (ascending order), calculate students’ average test scores and letter grades (Use the 10 point grading scale). In addition, count the number of students receiving a particular letter grade. You may assume the following input file data :


Johnson 85 83 77 91 76

Aniston 80 90 95 93 48

Cooper 78 81 11 90 48

Gupta 92 83 30 69 87

Muhammed 23 45 96 38 59

Clark 60 85 45 39 67

Patel 77 31 52 74 83

Abara 93 94 89 77 97

Abebe 79 85 28 93 82

Abioye 85 72 49 75 63

  1. (40%) Use four arrays: a one-dimensional array to store the students’ names, a (parallel) two dimensional array to store the test scores, a one-dimensional array to store the student’s average test scores and a one-dimensional array to store the student’s letter grades.

  2. (60%) Your program must contain at least the following functions :

    1. A function to read and store data into two arrays,

    2. A function to calculate the average test score and letter grade,

    3. A function to sort all the arrays by student name, and

    4. A function to output all the results (i.e. sorted list of students and their corresponding grades)  

    5. Have your program also output the count of the number of students receiving a particular letter grade.  

NOTE : No non-constant global variables are to be used. You can name the arrays and functions anything you like. You can use the operator >= to sort the strings.

In C++

In: Computer Science

The hexademical number system uses base 16 with digits 0, 1, 2, 3, 4, 5, 6,...

The hexademical number system uses base 16 with digits 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F. Hexadecimal is often used in computer systems programming. Write a Python program, in a file called convertHex.py, to request a decimal number from the user and output the hexadecimal value. To compute the hexadecimal value we have to find the hexadecimal digits hn, hn-1, hn-2, ..., h2, h1, and h0, such that

  d = hn x 16n + hn-1 x 16n-1 + hn-2 x 16n-2 + ... + h2 x 162 + h1 x 161 +  h0 x 160

These hexadecimal digits can be found by successively dividing d by 16 until the quotient is 0; the remainders are h0, h1, ..., hn-1, hn.

For example, if d=589:

  • 589/16 is 36 with a remainder of 13 - 13 in hexadecimal is 'D' - this is h0
  • 36/16 is 2 with a remainder of 4 - 4 in hexadecimal is '4' - this is h1
  • 2/16 is 0 with a remainder of 2 - 2 in hexadecimal is '2' - this is h2

So 589 in decimal is 24D in hexadecimal.

Your program should include the following functions:

  • decToHex(dec_value) - returns the hexadecimal equivalent of dec_value (as a string)
  • getHexChar(dec_digit) - returns the hexadecimal digit for dec_digit (note that 10 in decimal is 'A' in hex, 11 in decimal is 'B', etc)

Sample output:

Enter decimal value: 589
589 is equal to 24D in hexadecimal

In: Computer Science

On Apollo Moon missions, the lunar module would blast off from the Moon's surface and dock...

On Apollo Moon missions, the lunar module would blast off from the Moon's surface and dock with the command module in lunar orbit. After docking, the lunar module would be jettisoned and allowed to crash back onto the lunar surface. Seismometers placed on the Moon's surface by the astronauts would then pick up the resulting seismic waves.

Find the impact speed of the lunar module, given that it is jettisoned from an orbit 170 km above the lunar surface moving with a speed of 1550 m/s

Thanks!

In: Physics

WEEK 3 DISCUSSION# 4 ANSWER THE FOLLOWING : 1: Fully explain how to use one of...

WEEK 3 DISCUSSION# 4

ANSWER THE FOLLOWING :

1: Fully explain how to use one of the threat modeling tools

2: What are the benefits or issues with Microsoft’s Threat Modeling process and tool?

In: Computer Science

Patrick Ntini holds 500 shares in Aloes Processing Co. The firm has 50 000 shares outstanding...

Patrick Ntini holds 500 shares in Aloes Processing Co. The firm has 50 000 shares outstanding and R100 000 earnings available to common shareholders. Shares are currently selling at R25 per share. The firm decides to retain earnings and rather issue a 10% share dividend.

Based on the above, answer the following questions:

1.1 Determine the current EPS value. (3)

1.2 What proportion of the firm does Patrick currently hold? (3)

1.3 What proportion of the firm will Patrick hold after the share dividend? (4)

1.4 At what market price should the stock sell after the share dividend? (5) 1.5 Discuss how Patrick is affected by the share dividend (5)

In: Accounting

Consider the titration of a 38.0mL sample of 0.170M  HBr with 0.205M KOH. Determine each of the...

Consider the titration of a 38.0mL sample of 0.170M  HBr with 0.205M KOH. Determine each of the following:

Part A: the initial pH

Part B: the volume of added base required to reach the equivalence point

Part C: the pH at 11.0mL of added base

Part D: the pH at the equivalence point

Part E: the pH after adding 5.0 mL of base beyond the equivalence point

In: Chemistry

C++Design and implement a program (name it LinearBinarySearch) to implement and test the linear and binary...

C++Design and implement a program (name it LinearBinarySearch) to implement and test the linear and binary search algorithm discussed in the lecture slides. Define method LinearSearch() to implement linear search of an array of integers. Modify the algorithm implementation to count number of comparisons it takes to find a target value (if exist) in the array. Define method BinarySearch() to implement binary search of an array of integers. Modify the algorithm implementation to count number of comparisons it takes to find a target value (if exist) in the array. Now, develop a test method to read integer values from the user in to an array and then call methods LinearSearch() and BinarySearch() and printout the number of comparison took to find the target values using each search method. Document your code and organized your outputs as follows: Arrays Values: Target value: Linear Search Comparisons: Binary Search Comparisons:

In: Computer Science

(1) What is the needle of a compass attracted to? (2) What is the difference between...

(1) What is the needle of a compass attracted to?

(2) What is the difference between ferromagnetic  and magnetic?

(3) In terms of electrons, what causes permanent magnetism?

(4) What is the technique in making synthetic magnets?                                                      

In: Physics

Part 1: evolutionary speaking with respect to life-history traits of longevity and reproductive, what do bats,...

Part 1: evolutionary speaking with respect to life-history traits of longevity and reproductive, what do bats, seals, and tsetse flies have in common (what factors have favored the evolution of long life)?

part 2: what are 3 life-history traits of mayflies that are required for their very short adult lives?

In: Biology

Exercises for Probability Exercise 2-17 Evertight, a leading manufacturer of quality nails, produces 1-, 2-, 3-,...

Exercises for Probability

Exercise 2-17

Evertight, a leading manufacturer of quality nails, produces 1-, 2-, 3-, 4-, and 5-inch nails for various uses. In the production process, if there is an over- run or the nails are slightly defective, they are placed in a common bin. Yesterday, 651 of the 1-inch nails, 243 of the 2-inch nails, 41 of the 3-inch nails, 451 of the 4-inch nails, and 333 of the 5-inch nails were placed in the bin.

  1. What is the probability of reaching into the bin and getting a 4-inch nail?
  2. What is the probability of getting a 5-inch nail?
  3. If a particular application requires a nail that is 3 inches or shorter, what is the probability of getting a nail that will satisfy the requirements of the application?

Exercise 2-18

Last year, at Northern Manufacturing Company, 200 people had colds during the year. One hundred fifty- five people who did no exercising had colds, and the remainder of the people with colds were involved in a weekly exercise program.  Half of the 1,000 employees were involved in some type of exercise.

  1. What is the probability that an employee will have a cold next year?
  2. Given that an employee is involved in an exercise program, what is the probability that he or she will get a cold next year?
  3. What is the probability that an employee who is not involved in an exercise program will get a cold next year?
  4. Are exercising and getting a cold independent events? Explain your answer.

Exercise 2-27

In a sample of 1,000 representing a survey from the entire population, 650 people were from Laketown, and the rest of the people were from River City. Out of the sample, 19 people had some form of cancer.  Thirteen of these people were from Laketown.

  1. Are the events of living in Laketown and having some sort of cancer independent?
  2. Which city would you prefer to live in, assuming that your main objective was to avoid having cancer?

Exercise 1

An engineering company advertises a job in three papers, A, B and C. It is known that these papers attract undergraduate engineering readerships in the proportions 2:3:1. The probabilities that an engineering undergraduate sees and replies to the job advertisement in these papers are 0.002, 0.001 and 0.005 respectively. Assume that the undergraduate sees only one job advertisement.

  1. If the engineering company receives only one reply to it advertisements, calculate the probability that the applicant has seen the job advertised in place A.
  2. If the company receives two replies, what is the probability that both applicants saw the job advertised in paper A?

Exercise 2-33

Gary Schwartz is the top salesman for his company.  Records indicate that he makes a sale on 70% of his sales calls. If he calls on four potential clients, what is the probability that he makes exactly 3 sales? What is the probability that he makes exactly 4 sales?

Exercise 2

A special five football matches series will be played between UAE and KSA. The probability that UAE will win a match against KSA is 0.6.              

            (i). What is the probability that UAE will win at least 3 matches in the series?        

            (ii). What is the probability that UAE will lose all the matches of the series?          

            (iii). What is the probability that UAE will win at most 2 matches in the series?     

Exercise 2-34

Trowbridge Manufacturing produces cases for personal computers and other electronic equipment. The quality control inspector for this company believes that a particular process is out of control. Normally, only 5% of all cases are deemed defective due to   discolorations. If 6 such cases are sampled, what is the probability that there will be 0 defective cases if the process is operating correctly? What is the probability that there will be exactly 1 defective case?

Exercise 2-34

If 10% of all disk drives produced on an assembly line are defective, what is the probability that there will be exactly one defect in a random sample of 5 of these? What is the probability that there will be no defects in a random sample of 5?

Exercise 2-38

Steve Goodman, production foreman for the Florida Gold Fruit Company, estimates that the average sale of oranges is 4,700 and the standard deviation is 500 oranges. Sales follow a normal distribution.

(a)  What is the probability that sales will be greater than 5,500 oranges?

(b)  What is the probability that sales will be greater than 4,500 oranges?

(c)  What is the probability that sales will be less than 4,900 oranges?

(d) What is the probability that sales will be less than 4,300 oranges?

Exercise 2-41

The time to complete a construction project is normally distributed with a mean of 60 weeks and a standard deviation of 4 weeks.

(a)  What is the probability the project will be finished in 62 weeks or less?

(b) What is the probability the project will be finished in 66 weeks or less?

(c)  What is the probability the project will take longer than 65 weeks?

Exercise 2-42

A new integrated computer system is to be installed worldwide for a major corporation.  Bids on this project are being solicited, and the contract will be awarded to one of the bidders. As a part of the proposal for this project, bidders must specify how long the project will take. There will be a significant penalty for finishing late. One potential contractor determines that the average time to complete a project of this type is 40 weeks with a standard deviation of 5 weeks. The time required to complete this project is assumed to be normally distributed.

  1. If the due date of this project is set at 40 weeks, what is the probability that the contractor will have to pay a penalty (i.e., the project will not be finished on schedule)?
  2. If the due date of this project is set at 43 weeks what is the probability that the contractor will have to pay a penalty (i.e., the project will not be finished on schedule)?
  3. If the bidder wishes to set the due date in the proposal so that there is only a 5% chance of being late (and consequently only a 5% chance of having to pay a penalty), what due date should be set?

Exercise 2-43

Patients arrive at the emergency room of Costa   Valley Hospital at an average of 5 per day. The demand for emergency room treatment at Costa Valley follows a Poisson distribution.

(a)  Using Appendix C, compute the probability of exactly 0, 1, 2, 3, 4, and 5 arrivals per day.

(b)  What is the sum of these probabilities, and why is the number less than 1?

Exercise 2-44

Using the data in Problem 2-43, determine the probability of more than 3 visits for emergency room service on any given day.

In: Math