Questions
Write a Java application with a JavaFXGUI that takes a String input by the user and...

Write a Java application with a JavaFXGUI that takes a String input by the user and shows whether the string contains all 26 letters of the (English version of the Latin) alphabet. For example, "Pack my box with five dozen liquor jugs" contains all 26 letters, but "The quick frown box jumps over the hazy log" does not contain a d. It does not matter whether one or more letters appear more than once.

The GUI needs, at minimum, a label to say "Enter String: ", a TextBox to take input for the String, a label to show the answer ("String contains all 26 letters" or "String does not contain all 26 letters", and a button to trigger the method to determine the outcome.

Hints:

  • Use toLowerCase() or toUpperCase() on the characters from the String so that you do not have to worry about case.
  • *Absolutely don't* write 26 different statements to test all 26 letters. You can use a loop and cast (int) the loop counter to a char; upper case A is Unicode character 65.
  • String has a contains() method much like the one in List.

In: Computer Science

The librarian at the local school claims that, on average, the books in the library are...

The librarian at the local school claims that, on average, the books in the library are more than 20 years old. To test this claim, a student takes a sample of 30 books, and records the publication date. The sample of 30 books produce an average age of M = 23.86 years with a standard deviation of 8.82 years. Conduct a one-tailed test with α = .01 to determine whether the average age of the library books is significantly greater than 20 years.

Show all your work. Full marks will not be given unless all steps and all calculations are shown. For all hypothesis tests, include all steps. Remember to provide concluding statements in the proper format.

In: Statistics and Probability

1. In a certain school district, it was observed that 30% of the students in the...

1.

In a certain school district, it was observed that 30% of the students in the element schools were classified as only children (no siblings). However, in the special program for talented and gifted children, 136 out of 392 students are only children. The school district administrators want to know if the proportion of only children in the special program is significantly different from the proportion for the school district. Test at the α=0.02 level of significance.

What is the hypothesized population proportion for this test?
p=
(Report answer as a decimal accurate to 2 decimal places. Do not report using the percent symbol.)

Based on the statement of this problem, how many tails would this hypothesis test have?

  • one-tailed test
  • two-tailed test



Choose the correct pair of hypotheses for this situation:

(A) (B) (C)
H0:p=0.3


Ha:p<0.3

H0:p=0.3


Ha:p≠0.3

H0:p=0.3


Ha:p>0.3

(D) (E) (F)
H0:p=0.347


Ha:p<0.347

H0:p=0.347


Ha:p≠0.347

H0:p=0.347


Ha:p>0.347

(A)

(B)

(C)

(D)

(E)

(F)



Using the normal approximation for the binomial distribution (without the continuity correction), what is the test statistic for this sample based on the sample proportion?
z=
(Report answer as a decimal accurate to 3 decimal places.)

You are now ready to calculate the P-value for this sample.
P-value =
(Report answer as a decimal accurate to 4 decimal places.)

This P-value (and test statistic) leads to a decision to...

  • reject the null
  • accept the null
  • fail to reject the null
  • reject the alternative



As such, the final conclusion is that...

  • There is sufficient evidence to warrant rejection of the assertion that there is a different proportion of only children in the G&T program.
  • There is not sufficient evidence to warrant rejection of the assertion that there is a different proportion of only children in the G&T program.
  • The sample data support the assertion that there is a different proportion of only children in the G&T program.
  • There is not sufficient sample evidence to support the assertion that there is a different proportion of only children in the G&T program.

2.

In a certain school district, it was observed that 29% of the students in the element schools were classified as only children (no siblings). However, in the special program for talented and gifted children, 122 out of 374 students are only children. The school district administrators want to know if the proportion of only children in the special program is significantly different from the proportion for the school district. Test at the α=0.01 level of significance.

What is the hypothesized population proportion for this test?
p=


(Report answer as a decimal accurate to 2 decimal places. Do not report using the percent symbol.)

Based on the statement of this problem, how many tails would this hypothesis test have?

  • one-tailed test
  • two-tailed test



Choose the correct pair of hypotheses for this situation:

(A) (B) (C) H0:p=0.29


Ha:p<0.29

H0:p=0.29


Ha:p≠0.29

H0:p=0.29


Ha:p>0.29

(D) (E) (F) H0:p=0.326


Ha:p<0.326

H0:p=0.326


Ha:p≠0.326

H0:p=0.326


Ha:p>0.326

(A)

(B)

(C)

(D)

(E)

(F)



Using the normal approximation for the binomial distribution (without the continuity correction), was is the test statistic for this sample based on the sample proportion?
z=
(Report answer as a decimal accurate to 3 decimal places.)

You are now ready to calculate the P-value for this sample.
P-value =
(Report answer as a decimal accurate to 4 decimal places.)

This P-value (and test statistic) leads to a decision to...

  • reject the null
  • accept the null
  • fail to reject the null
  • reject the alternative



As such, the final conclusion is that...

  • There is sufficient evidence to warrant rejection of the assertion that there is a different proportion of only children in the G&T program.
  • There is not sufficient evidence to warrant rejection of the assertion that there is a different proportion of only children in the G&T program.
  • The sample data support the assertion that there is a different proportion of only children in the G&T program.
  • There is not sufficient sample evidence to support the assertion that there is a different proportion of only children in the G&T program.

In: Statistics and Probability

- You are not happy with the performance of the leadership in your school and you...

- You are not happy with the performance of the leadership in your school and you decided to start change to better improve the leadership practices and qualities. Use Lewin's Management Change Model to briefly implement this change.

In: Advanced Math

If the quality of teaching is similar in a school, the scores on a standardized test...

If the quality of teaching is similar in a school, the scores on a standardized test will have a standard deviation of 15. The superintendent wants to know if there is a disparity in teaching quality, and decides to investigate whether the standard deviation of test scores has changed. She samples 26 random students and finds a mean score of 152 with a standard deviation of 5.7079. Is there evidence that the standard deviation of test scores has decreased at the α=0.025 level? Assume the population is normally distributed.

Step 1 of 5: State the null and alternative hypotheses. Round to four decimal places when necessary.

Step 2 of 5: Determine the critical value(s) of the test statistic. If the test is two-tailed, separate the values with a comma. Round your answer to three decimal places.

Step 3 of 5: Determine the value of the test statistic. Round your answer to three decimal places.

Step 4 of 5: Make the decision.

In: Statistics and Probability

In a certain school district, it was observed that 33% of the students in the element...

In a certain school district, it was observed that 33% of the students in the element schools were classified as only children (no siblings). However, in the special program for talented and gifted children, 152 out of 386 students are only children. The school district administrators want to know if the proportion of only children in the special program is significantly different from the proportion for the school district. Test at the α=0.01α=0.01 level of significance.

What is the hypothesized population proportion for this test?
p=
(Report answer as a decimal accurate to 2 decimal places. Do not report using the percent symbol.)

Based on the statement of this problem, how many tails would this hypothesis test have?

  • one-tailed test
  • two-tailed test



Choose the correct pair of hypotheses for this situation:

(A) (B) (C)
H0:p=0.33H0:p=0.33
Ha:p<0.33Ha:p<0.33
H0:p=0.33H0:p=0.33
Ha:p≠0.33Ha:p≠0.33
H0:p=0.33H0:p=0.33
Ha:p>0.33Ha:p>0.33
(D) (E) (F)
H0:p=0.394H0:p=0.394
Ha:p<0.394Ha:p<0.394
H0:p=0.394H0:p=0.394
Ha:p≠0.394Ha:p≠0.394
H0:p=0.394H0:p=0.394
Ha:p>0.394Ha:p>0.394

(A)

(B)

(C)

(D)

(E)

(F)



Using the normal approximation for the binomial distribution (without the continuity correction), what is the test statistic for this sample based on the sample proportion?
z=
(Report answer as a decimal accurate to 3 decimal places.)

You are now ready to calculate the P-value for this sample.
P-value =  
(Report answer as a decimal accurate to 4 decimal places.)

This P-value (and test statistic) leads to a decision to...

  • reject the null
  • accept the null
  • fail to reject the null
  • reject the alternative



As such, the final conclusion is that...

  • There is sufficient evidence to warrant rejection of the assertion that there is a different proportion of only children in the G&T program.
  • There is not sufficient evidence to warrant rejection of the assertion that there is a different proportion of only children in the G&T program.
  • The sample data support the assertion that there is a different proportion of only children in the G&T program.
  • There is not sufficient sample evidence to support the assertion that there is a different proportion of only children in the G&T program.

In: Statistics and Probability

1) Which of the following is a not a key assumption of the Keynesian school of...

1) Which of the following is a not a key assumption of the Keynesian school of macroeconomics?

Select one:

A. Prices and wages are relatively inflexible

B. Expectations are relatively slow to adjust

C. Demand management can be used to smooth the business cycle

D. The main role of government policy should be to remove impediments to free markets

2) The idea that some economic changes are difficult to reverse is called:

Select one:

A. Stagflation

B. Deflation

C. The expectations-augmented Phillips curve

D. Hysteresis

In: Economics

This is my last assignment in a programming class I had to take as a prerequisite...

This is my last assignment in a programming class I had to take as a prerequisite for a database course (seems odd). The instructor has been awful and I haven't learned much of anything. I use VBA at work and just can't follow C++. I'm stuck on this assignment and have no idea what I'm doing. I'm a database guy at work, I'm not a programmer. Please help.

In C++, a program that performs the following tasks:

1.      Design a Book class that has three data members:

string title

int   pages

double price

2.      Add constructors and methods (as well as method parameters when necessary):

Book()         // constructor(s)

getBookInfo()   // print title, pages, price

setPrice()     // change price

3.      In the main() function, create two Book objects:

b1("C++ Programming", 834, 93.53)

b2("Data Structures", 217, 64.42)

4.      Change the price of b2 to 55.46 using the setPrice() method.

5.     Using cout, Print out book information using the getBookInfo() method as shown below:

C++ Programming 834 93.53

Data Structures 217 55.46

IN C++, a program that performs the following tasks:

1.      Derive a TextBook class (child) from the Book class (parent).

2.      Add new data members:

string school

double discount

3.      Add new constructors and methods (as well as method parameters when necessary):

TextBook()           // constructor(s)

compTextBookPrice()  // price = price - discount

4.      Override inherited methods:

getBookInfo()        // print title, pages, price, school, discount

5.      In the main() function, create two Book objects and two TextBook objects:

b1("C++ Programming", 834, 93.53)

b2("Data Structures", 217, 64.42)

tb1("Database", 365, 74.41, "YSU", 20.00)

tb2("Networks", 522, 92.58, "YSU", 20.00)

6.      Using cout, print out book information as shown below:

C++ Programming  834  93.53

Data Structures  217  64.42

Database         365  54.41 YSU 20.00

Networks         522  72.58 YSU 20.00

In: Computer Science

Assume that we want to construct a confidence interval. Do one of the​ following, as​ appropriate:...

Assume that we want to construct a confidence interval. Do one of the​ following, as​ appropriate: (a) find the critical value

t Subscript alpha divided by 2tα/2​,

​(b) find the critical value

z Subscript alpha divided by 2zα/2​,

or​ (c) state that neither the normal distribution nor the t distribution applies.Here are summary statistics for randomly selected weights of newborn​ girls:

nequals=243243​,

x overbarxequals=29.329.3

​hg,

sequals=6.56.5

hg. The confidence level is

9999​%.

Select the correct choice below​ and, if​ necessary, fill in the answer box to complete your choice.

A.

t Subscript alpha divided by 2tα/2equals=nothing

​(Round to two decimal places as​ needed.)

B.

z Subscript alpha divided by 2zα/2equals=nothing

​(Round to two decimal places as​ needed.)

C.

Neither the normal distribution nor the t distribution applies.

In: Statistics and Probability

Assume that we want to construct a confidence interval. Do one of the​ following, as​ appropriate:...

Assume that we want to construct a confidence interval. Do one of the​ following, as​ appropriate: (a) find the critical value

t Subscript alpha divided by 2tα/2​,

​(b) find the critical value

z Subscript alpha divided by 2zα/2​,

or​ (c) state that neither the normal distribution nor the t distribution applies.Here are summary statistics for randomly selected weights of newborn​ girls:

nequals=243243​,

x overbarxequals=29.329.3

​hg,

sequals=6.56.5

hg. The confidence level is

9999​%.

Select the correct choice below​ and, if​ necessary, fill in the answer box to complete your choice.

A.

t Subscript alpha divided by 2tα/2equals=nothing

​(Round to two decimal places as​ needed.)

B.

z Subscript alpha divided by 2zα/2equals=nothing

​(Round to two decimal places as​ needed.)

C.

Neither the normal distribution nor the t distribution applies.

In: Statistics and Probability