Questions
Using C language, and describe the algorithm design All the sample is correct Q3 Problem description...

Using C language, and describe the algorithm design
All the sample is correct

  • Q3 Problem description

Tim was born in a leap year, so he would like to know when he could have his birthday party. Could you tell him? Given a positive integers Y indicating the starting year, and a positive integer N, your task is to tell the N-th leap year from year Y. Note: if year Y is a leap year, then the 1st leap year is year Y.

  • Input & output requirements

The input contains several test cases. The first line of the input is a single integer T which is the number of test cases. T test cases follow. Each test case contains two positive integers Y and N(1<=N<=10000). For each test case, you should output the Nth leap year from year Y.

  • Sample input

3

2005 25

1855 12

2004 10000

  • Sample output

2108

1904

43236

In: Computer Science

A national newspaper reported that the state with the longest mean life span is Hawaii, where...

A national newspaper reported that the state with the longest mean life span is Hawaii, where the population mean life span is 74 years. A random sample of 20 obituary notices in the Honolulu Advertizer gave the following information about life span (in years) of Honolulu residents.

72 68 81 93 56 19 78 94 83 84
77 69 85 97 75 71 86 47 66 27

(i) Use a calculator with sample mean and standard deviation keys to find x and s. (Round your answers to two decimal places.)

x = yr
s = yr


(ii) Assuming that life span in Honolulu is approximately normally distributed, does this information indicate that the population mean life span for Honolulu residents is less than 74 years? Use a 5% level of significance.

(a) What is the level of significance?


State the null and alternate hypotheses.

H0: μ = 74 yr; H1: μ > 74 yrH0: μ = 74 yr; H1: μ < 74 yr    H0: μ = 74 yr; H1: μ ≠ 74 yrH0: μ > 74 yr; H1: μ = 74 yrH0: μ < 74 yr; H1: μ = 74 yr


(b) What sampling distribution will you use? Explain the rationale for your choice of sampling distribution.

The Student's t, since we assume that x has a normal distribution and σ is unknown.The standard normal, since we assume that x has a normal distribution and σ is known.    The standard normal, since we assume that x has a normal distribution and σ is unknown.The Student's t, since we assume that x has a normal distribution and σ is known.


What is the value of the sample test statistic? (Round your answer to three decimal places.)


(c) Estimate the P-value.

P-value > 0.2500.100 < P-value < 0.250    0.050 < P-value < 0.1000.010 < P-value < 0.050P-value < 0.010


Sketch the sampling distribution and show the area corresponding to the P-value.


(d) Based on your answers in parts (a) to (c), will you reject or fail to reject the null hypothesis? Are the data statistically significant at level α?

At the α = 0.05 level, we reject the null hypothesis and conclude the data are statistically significant.At the α = 0.05 level, we reject the null hypothesis and conclude the data are not statistically significant.    At the α = 0.05 level, we fail to reject the null hypothesis and conclude the data are statistically significant.At the α = 0.05 level, we fail to reject the null hypothesis and conclude the data are not statistically significant.


(e) Interpret your conclusion in the context of the application.

There is sufficient evidence at the 0.05 level to conclude that the population mean life span of Honolulu residents is less than 74 years.There is insufficient evidence at the 0.05 level to conclude that the population mean life span of Honolulu residents is less than 74 years.    

In: Statistics and Probability

Note: This problem is for the 2018 tax year. Lance H. and Wanda B. Dean are...

Note: This problem is for the 2018 tax year.

Lance H. and Wanda B. Dean are married and live at 431 Yucca Drive, Santa Fe, NM 87501. Lance works for the convention bureau of the local Chamber of Commerce, while Wanda is employed part-time as a paralegal for a law firm.

During 2018, the Deans had the following receipts:

Salaries ($60,000 for Lance, $41,000 for Wanda) $101,000
Interest income—
   City of Albuquerque general purpose bonds $1,000
   Ford Motor company bonds 1,100
   Ally Bank certificate of deposit 400 2,500
Child support payments from John Allen 7,200
Annual gifts from parents 26,000
Settlement from Roadrunner Touring Company 90,000
Lottery winnings 600
Federal income tax refund (for tax year 2017) 400

Wanda was previously married to John Allen. When they divorced several years ago, Wanda was awarded custody of their two children, Penny and Kyle. (Note: Wanda has never issued a Form 8332 waiver.) Under the divorce decree, John was obligated to pay alimony and child support—the alimony payments were to terminate if Wanda remarried.

In July, while going to lunch in downtown Santa Fe, Wanda was injured by a tour bus. As the driver was clearly at fault, the owner of the bus, Roadrunner Touring Company, paid her medical expenses (including a one-week stay in a hospital). To avoid a lawsuit, Roadrunner also transferred $90,000 to her in settlement of the personal injuries she sustained.

The Deans had the following expenditures for 2018:

Medical expenses (not covered by insurance) $7,200
Taxes—
   Property taxes on personal residence $3,600
   State of New Mexico income tax (includes amount withheld
       from wages during 2018) 4,200 7,800
Interest on home mortgage (First National Bank) 6,000
Charitable contributions 3,600
Life insurance premiums (policy on Lance's life) 1,200
Contribution to traditional IRA (on Wanda's behalf) 5,000
Traffic fines 300
Contribution to the reelection campaign fund of the mayor of Santa Fe 500
Funeral expenses for Wayne Boyle 6,300

The life insurance policy was taken out by Lance several years ago and designates Wanda as the beneficiary. As a part-time employee, Wanda is excluded from coverage under her employer's pension plan. Consequently, she provides for her own retirement with a traditional IRA obtained at a local trust company. Because the mayor is a member of the local Chamber of Commerce, Lance felt compelled to make the political contribution.

The Deans' household includes the following, for whom they provide more than half of the support:

Social Security Number Birth Date
Lance Dean (age 42) 123-45-6786 12/16/1976
Wanda Dean (age 40) 123-45-6787 08/08/1978
Penny Allen (age 19) 123-45-6788 10/09/1999
Kyle Allen (age 16) 123-45-6789 05/03/2002
Wayne Boyle (age 75) 123-45-6785 06/15/1943

Penny graduated from high school on May 9, 2018, and is undecided about college. During 2018, she earned $8,500 (placed in a savings account) playing a harp in the lobby of a local hotel. Wayne is Wanda's widower father who died on January 20, 2018. For the past few years, Wayne qualified as a dependent of the Deans.

Federal income tax withheld is $5,200 (Lance) and $2,100 (Wanda). The proper amount of Social Security and Medicare tax was withheld.

Required:

Determine the Federal income tax for 2018 for the Deans on a joint return by providing the following information that would appear on Form 1040 and Schedule A. They do not want to contribute to the Presidential Election Campaign Fund. All members of the family had health care coverage for all of 2018. If an overpayment results, it is to be refunded to them.

Make realistic assumptions about any missing data.

Enter all amounts as positive numbers.

If an amount box does not require an entry or the answer is zero, enter "0".

When computing the tax liability, do not round your immediate calculations. If required round your final answers to the nearest dollar.

In: Accounting

This exercise focuses on the difference between Parametric and Nonparametric statistics. 1. Define parametric statistics. 2....

This exercise focuses on the difference between Parametric and Nonparametric statistics.
1. Define parametric statistics.
2. Define nonparametric statistics.
3. What is referred to by the term “scale of measurement”?
4. What are the four common scales of measurement?
5. Which scale(s) of measurement are associated with parametric statistics?
6. Which scale(s) of measurement are associated with nonparametric statistics?
7. Identify the scale that would be associated with each of the following measurements.
a. Gender
b. Percentiles on a standardized achievement test
c. Highest academic degree earned (e.g., B.S., Master’s, etc.)
d. Raw scores on a standardized test
e. Letter grades assigned in class
f. Ethnicity
8. List at least three common assumptions associated with parametric statistics?
9. For each of the following parametric statistics, indicate the corresponding nonparametric statistic:
a. Independent Samples t-test
b. Dependent Samples t-test
c. Oneway Analysis of Variance
10. Which statistic is commonly used when the data are reported in the form of frequencies?

In: Statistics and Probability

10.2 Suppose we a data set where each data point represents a single student's scores on...

10.2

Suppose we a data set where each data point represents a single student's scores on a math test, a physics test, a reading comprehension test, and a vocabulary test.

We find the first two principal components, which capture 90% of the variability in the data, and interpret their loadings. We conclude that the first principal component represents overall academic ability, and the second represents a contrast between quantitative ability and verbal ability.

What loadings would be consistent with that interpretation? Choose all that apply.

a) (0.5, 0.5, 0.5, 0.5) and (0.71, 0.71, 0, 0)

b) (0.5, 0.5, 0.5, 0.5) and (0, 0, -0.71, -0.71)

c) (0.5, 0.5, 0.5, 0.5) and (0.5, 0.5, -0.5, -0.5)

d) (0.5, 0.5, 0.5, 0.5) and (-0.5, -0.5, 0.5, 0.5)

e) (0.71, 0.71, 0, 0) and (0, 0, 0.71, 0.71)

f) (0.71, 0, -0.71, 0) and (0, 0.71, 0, -0.71)

In: Statistics and Probability

Assignment- [ A4]:  For this assignment you need to answer all the questions: Every productive activity involves...

Assignment- [ A4]:  For this assignment you need to answer all the questions:

Every productive activity involves some combination of different categories of scarce resource. Think of your OWN business proposed to start in 2021.

Q1. Which among the following economic system would easily overcome the economic crisis that caused during Covid 19 pandemic?                

a.     Capitalist economy

b.     Socialist economy

c.     Mixed economy

You are required to build and justify three arguments in favor and against of the selected economic system.                             (6+6 Marks)

Q2. According to you which among these economic systems would be highly affected by pandemic? Justify.                              

Guidelines:

1.     Show a thorough understanding of the purpose of the activity.        2. Display knowledge of the major practices involved and an ability

to apply them effectively.         3. Provide evidence of wide reading, including academic journals.   4.  Demonstrate an ability to select critical points, evaluate them and communicate the conclusions effectively.    5. Provide approaches that are creative, practicable, and supported.   

In: Economics

Write a corporate management report in which you explore the factors that influence the valuation of...

Write a corporate management report in which you explore the factors that influence the valuation of the equity of a company. Be sure your report includes the following:

Assume the CAPM is used to form the weighted average cost of capital (WACC). Form a discussion on the CAPM in which you describe each of the following issues.

o Determine how diversification is important in the formation of the CAPM. The discussion should focus on the topics of total risk, systematic risk, and unsystematic risk.

o Define and provide numerical illustrations for the CAPM. Show how the model adjusts across different inputs and the consequence for valuation.

o Research and defend the validity of the CAPM given the academic literature. Based upon this model, explain the ways that managers can form initiatives to enhance the value of the corporation. Provide numerical illustrations of these initiatives based upon modifying the assumptions in the model and re-calculating the final value. For example, demonstrate how increasing or decreasing the sales growth rate will affect the bottom line valuation of common equity.

In: Finance

Write a corporate management report in which you explore the factors that influence the valuation of...

Write a corporate management report in which you explore the factors that influence the valuation of the equity of a company. Be sure your report includes the following:

Assume the CAPM is used to form the weighted average cost of capital (WACC). Form a discussion on the CAPM in which you describe each of the following issues.

o Determine how diversification is important in the formation of the CAPM. The discussion should focus on the topics of total risk, systematic risk, and unsystematic risk.

o Define and provide numerical illustrations for the CAPM. Show how the model adjusts across different inputs and the consequence for valuation.

o Research and defend the validity of the CAPM given the academic literature. Based upon this model, explain the ways that managers can form initiatives to enhance the value of the corporation. Provide numerical illustrations of these initiatives based upon modifying the assumptions in the model and re-calculating the final value. For example, demonstrate how increasing or decreasing the sales growth rate will affect the bottom line valuation of common equity.

In: Finance

research a recent accounting scandal within the last five (5) years where the SEC accused public...

research a recent accounting scandal within the last five (5) years where the SEC accused public companies of accounting irregularities.
Write a three to four (3-4) page paper in which you:

Analyze the audit report that the CPA firm issued. Ascertain the legal liability to third parties who relied on financial statements under both common and federal securities laws. Justify your response.

Speculate on which statement of generally acceptable auditing standards (GAAS) that the company violated in performing the audit.

Compare the responsibility of both management and the auditor for financial reporting, and give your opinion as to which party should have the greater burden. Defend your position.

Analyze the sanctions available under SOX, and recommend the key action(s) that the PCAOB should take in order to hold management or the audit firm accountable for the accounting irregularities. Provide a rationale for your response.

Use at least two (2) quality academic resources in this assignment.

In: Accounting

Interview a certified special education teacher at the educational level (PK- 12) of your program, about...

Interview a certified special education teacher at the educational level (PK- 12) of your program, about the following:

What are some similarities and differences among students with and without exceptionalities?
What are some characteristics of various exceptionalities and the educational implications for students with exceptionalities?
What is the effect an exceptionality can have on a student's academic and social development, attitudes, interests, and values?
How do you collaborate with general education teachers?
In what ways do you address the unique learning needs of the individuals with exceptionalities in the classroom, including for those students with culturally and linguistically diverse backgrounds?
How do you protect the privacy of students with exceptionalities? What are some dilemmas you have experienced with this?

In 250-500 words, summarize and reflect upon your interview and on the professionalism and integrity of protecting student privacy. In addition, be sure to explain how you will use your findings in your future professional practice, citing two recommended strategies for differentiating instruction based on learning differences.

In: Psychology