Questions
Write two classes Class A and Class B in class A you should read from the...

Write two classes Class A and Class B in class A you should read from the keyboard a number and you should call a public method of the class B that will print on the screen whether the number that was read from the keyboard in class A is multiple of 7 and has the last digit 5.

In: Computer Science

Activity 6. Write a Prolog definition of the greatest common divisor of two numbers. Then use...

Activity 6. Write a Prolog definition of the greatest common divisor of two numbers. Then use it to compute gcd(4, 10), gcd(15, 36), and gcd(25, 55).

Activity 7. Write a Prolog program to find the last item in a list.

give me the screenshot pls

In: Computer Science

Dataset ex0315 is available here. The National Survey on Drug Use and Health, conducted in 2002...

Dataset ex0315 is available here.
The National Survey on Drug Use and Health, conducted in 2002 and 2003 by the Office of Applied Studies, led to the following state estimates of the total number of people (ages 12 and older) who had smoked within the last month). Fill in the following stem-and-leaf table using hundreds (of thousands) as the stems and truncating the leaves to the tens (of thousands) digit. (Enter solutions from smallest to largest. Separate the numbers with spaces.)

State Number of People (in thousands) State Number of People (in thousands)
Alabama 976 Alaska 129
Arizona 1215 Arkansas 730
California 5508 Colorado 985
Connecticut 678 Delaware 174
District of Columbia 125 Florida 3355
Georgia 1779 Hawaii 217
Idaho 260 Illinois 2754
Indiana 1427 Iowa 647
Kansas 573 Kentucky 1178
Louisiana 1021 Maine 297
Maryland 1039 Massachusetts 1207
Michigan 2336 Minnesota 1122
Mississippi 680 Missouri 1472
Montana 212 Nebraska 367
Nevada 543 New Hampshire 281
New Jersey 1662 New Mexico 363
New York 4052 North Carolina 2010
North Dakota 145 Ohio 2865
Oklahoma 858 Oregon 735
Pennsylvania 2858 Rhode Island 246
South Carolina 907 South Dakota 188
Tennessee 1343 Texas 4428
Utah 304 Vermont 134
Virginia 1487 Washington 1172
West Virginia 452 Wisconsin 1167
Wyoming 111
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55

In: Statistics and Probability

1.) Seasonal affective disorder (SAD) is a type of depression during seasons with less daylight (e.g.,...

1.) Seasonal affective disorder (SAD) is a type of depression during seasons with less daylight (e.g., winter months). One therapy for SAD is phototherapy, which is increased exposure to light used to improve mood. A researcher tests this therapy by exposing a sample of SAD patients to different intensities of light (low, medium, high) in a light box, either in the morning or at night (these are the times thought to be most effective for light therapy). All participants rated their mood following this therapy on a scale from 1 (poor mood) to 9 (improved mood). The hypothetical results are given in the following table.

Light Intensity
Low Medium High
Time of
Day
Morning 5 5 7
6 6 8
4 4 6
7 7 9
5 9 4
6 8 8
Night 4 6 9
8 8 7
6 7 6
7 5 8
4 9 7
3 8 6

(a) Complete the F-table and make a decision to retain or reject the null hypothesis for each hypothesis test. (Round your answers to two decimal places. Assume experimentwise alpha equal to 0.05.)

Source of
Variation
SS df MS F
Time of day
Intensity
Time of
day ×
Intensity
Error
Total

(b) Compute Tukey's HSD to analyze the significant main effect.

The critical value is  for each pairwise comparison.


Summarize the results for this test using APA format.

In: Statistics and Probability

(Be sure to paste the R Console Output and code!!!) Using the following data and R,...

(Be sure to paste the R Console Output and code!!!) Using the following data and R, write a brief paragraph about whether the in-home treatment is equally effective as the out-of-home treatment for two separate groups. Here are the data. The outcome variable is level of anxiety after treatment on a scale from 1 to 10.

In-Home Treatment

Out-of-Home Treatment

3

7

4

6

1

7

1

8

1

7

3

6

3

5

6

6

5

4

1

2

4

5

5

4

4

3

4

6

3

7

6

5

7

4

7

3

7

8

8

7

In: Statistics and Probability

Write a program 'Rectangle-Area.c' that inputs the length and width of a rectangle and outputs its...

Write a program 'Rectangle-Area.c' that inputs the length and width of a rectangle and outputs its area. The program consists of two functions: the main function and a function that computes and returns the area of a rectangle. The output of the program should be in the main program, not in the function.

     Sample Input: 5 8   Sample Output: The area of a 5 by 8 rectangle is 40.

In: Computer Science

Full answer needed with Excel formulas Lockheed, one of the largest defense contractors in the United...

Full answer needed with Excel formulas

Lockheed, one of the largest defense contractors in the United States, reported EBITDA of $1,290 million in a recent financial year, prior to interest expenses of $215 million and depreciation charges of $400 million. Capital expenditures amounted to $450 million during the year, and working capital was 7% of revenues (which were $13,500 million). The firm had debt outstanding of $3,068 billion (in book value terms), trading at a market value $3.2 billion, and yielding a pretax interest rate of 8%. There were 62 million shares outstanding, trading at $64 per share, and the most recent beta is 1.10. The tax rate for the firm is 40%. (The treasury bond rate is 7%.) The firm expects revenues, earnings, capital expenditures, and depreciation to grow at 9.5% a year for the next five years, after which the growth rate is expected to drop to 4%. (Even though this is unrealistic, you can assume that capital spending will offset deprecation in the stable-growth period.) The company also plans to lower its debt/equity ratio to 50% for the steady state (which will result in the pretax interest rate dropping to 7.5%.)

A. Estimate the value of the firm

B. Estimate the value of the equity in the firm and the value per share.

* risk premium 5.5% and the tax rate is 40%

In: Finance

Lauryn’s Doll Co. had EBIT last year of $44 million, which is net of a depreciation...

Lauryn’s Doll Co. had EBIT last year of $44 million, which is net of a depreciation expense of $4.4 million. In addition, Lauryn’s made $5.25 million in capital expenditures and increased net working capital by $3.3 million. Assume that Lauryn’s has a reported equity beta of 1.4, a debt-to-equity ratio of .7, and a tax rate of 21 percent. What is Lauryn’s FCF for the year?(Do not round intermediate calculations. Enter your answer in millions rounded to 2 decimal places.)

FCF million

In: Finance

C++ Create a class for working with fractions. Only 2 private data members are needed: the...

C++

Create a class for working with fractions. Only 2 private data members are needed: the int numerator of the fraction, and the positive int denominator of the fraction. For example, the fraction 3/7 will have the two private data member values of 3 and 7. The following methods should be in your class:

a. A default constructor that should use default arguments in case no initializers are included in the main. The fraction needs to be stored in reduced form. Make sure the denominator is not set to 0 or a negative value.
b. Add two fractions and store the sum in reduced form.
c. Subtract two fractions and store the difference in reduced form.
d. Multiply two fractions and store the product in reduced form.
e. Divide two fractions and store the quotient in reduced form.
f. Print a fraction.

g. Change a fraction to its reciprocal. For example, the reciprocal of the fraction 5/8 is 8/5

Your main should instantiate two fractions and call each of the class methods. The two fractions should be printed a long with the sum, difference, product, quotient, and after being changed to its reciprocal. (Please do not overload the operators for this program.)

In: Computer Science

one afternoon a couple walks 7/8 of the way around a circular lake, the radius of...

one afternoon a couple walks 7/8 of the way around a circular lake, the radius of which is 1.65km. they start at the west side of the lake and the head die south to begin with.
a. what is the distance they travelled?
b. what are the magnitude and direction (relative to due east) of the couples displacment?

In: Physics