Questions
In a file called Conversions.java, write a program that: Asks the user to enter a double...

In a file called Conversions.java, write a program that:

Asks the user to enter a double number.

Stores that number into a variable called z.

Casts variable z into an integer, and stores the result into a variable called z1.

Creates a variable z2, and sets it equal to the integer closest to z.

Creates a variable z3, and sets it equal to the floor of z.

Creates a variable z4, and sets it equal to the ceiling of z.

Prints out the values of z1, z2, z3, z4, using the same format as shown below.

For example: if the user enters 3.9, your program output should look like this:

Please enter a double number: 3.9

z cast into an int becomes 3.

z rounded becomes 4.

The floor of z is 3.

The ceiling of z is 4.

In: Computer Science

Describe why a person organization fit is important?

Describe why a person organization fit is important?

In: Operations Management

Please answer in 300 words: The federal government and the Fed usually try to coordinate their...

Please answer in 300 words:

The federal government and the Fed usually try to coordinate their efforts in order to keep the economy stable. However, there are times when the government and the Fed work against each other without intending to. For example, in 2012, Congress passed a universal healthcare plan called The Patient Protection and Affordable Care Act. This law was passed during a time when the Fed was working to stimulate economic spending through monetary policy. However, taxpayers knew that the new law would eventually result in higher taxes. Some economists argued that the passage of the law was one of the reasons that monetary policies had little effect as businesses and consumers continued to hold their money in anticipation of increased taxes.

  • In what ways do you think The Patient Protection and Affordable Care Act might affect the economy? Explain your answer.
  • In what ways do you think this type of program affects the aggregate-demand curve? The aggregate-supply curve? Explain your answers.

In: Economics

1. Write the balanced equation (not the mechanism) for the protonation of nitric acid by sulfuric...

1. Write the balanced equation (not the mechanism) for the protonation of nitric acid by sulfuric acid, represented as an equilibrium expression.

2. Write the equilibrium constant expression for the reaction shown in question 1 above.

3. Consider the pKa values shown below:

H2SO4: -3

HSO4!: +2

HNO3: -1.3

H2NO3+: -13

Based on these pKa values, determine the equilibrium constant for the reaction that you wrote down for question 1.

4. The proton NMR spectrum of chlorobenzene was examined by Hiyamizu and coworkers in 1968. Their analysis revealed the following chemical shifts. The hydrogens ortho to the chlorine are at 7.28 ppm. The hydrogens meta to the chlorine are at 7.23 ppm. The hydrogen para to the chlorine is at 7.16 ppm.

A) Use arrow formalisms to draw resonance structures of chlorobenzene using the chlorine as an electron donor.

B) One might expect that the positions that have negative charges (and hence excess electron density) in the resonance structures would be the most upfield, but this is not the case. Explain why, and explain why the chemical shifts appear where they do relative to each other.

In: Chemistry

1. Describe the difference between a workstation from a server. The reading material is provide on...

1. Describe the difference between a workstation from a server. The reading material is provide on the link below. You must use your own keywords to make your point. DO NOT COPY THE CONTENT ON THE LINK. Limit your writing to maximum of 300 words.

https://www.diffen.com/difference/Server_vs_Workstation

In: Computer Science

The Scientific Store received an invoice for $6710.00 dated July 13, terms 5/10, 2/30, n/90, for...

The Scientific Store received an invoice for $6710.00 dated July 13, terms 5/10, 2/30,
n/90, for a shipment of skis. Calculate the partial payments made 20 July to reduce the
balance to $4000.00 Round to nearest 100th.

Written please.

In: Finance

Question 1 options: Below is a table of times for Taxis (A to H) to reach...

Question 1 options:

Below is a table of times for Taxis (A to H) to reach Customers (1 to 8) who need a ride home after a night on the town. The goal is to Minimize the time it takes for all of the Taxis to reach their Customers. Only one Taxi will be sent to each Customer and each Customer needs only one Taxi.

Taxi / Cust

1

2

3

4

5

6

7

8

A

15

6

19

15

17

15

8

17

B

4

7

9

17

3

17

3

12

C

5

17

18

3

15

5

13

11

D

14

2

10

13

11

16

11

2

E

19

17

18

11

8

11

13

16

F

11

19

2

14

9

17

3

8

G

16

10

4

7

2

10

19

3

H

10

19

4

7

15

10

18

15





The optimal solution to this problem requires the following:


Taxi A picks up Customer


Taxi B picks up Customer


Taxi C picks up Customer


Taxi D picks up Customer


Taxi E picks up Customer


Taxi F picks up Customer


Taxi G picks up Customer


Taxi H picks up Customer




Minimum Cost =

Hint: Your cost should be between 33 and 39

In: Operations Management

A 14.0 m uniform ladder weighing 490 N rests against a frictionless wall. The ladder makes...

A 14.0 m uniform ladder weighing 490 N rests against a frictionless wall. The ladder makes a 59.0°-angle with the horizontal. (a) Find the horizontal and vertical forces (in N) the ground exerts on the base of the ladder when an 810-N firefighter has climbed 4.10 m along the ladder from the bottom. horizontal force magnitude N direction vertical force magnitude N direction (b) If the ladder is just on the verge of slipping when the firefighter is 9.40 m from the bottom, what is the coefficient of static friction between ladder and ground? (c) What If? If oil is spilled on the ground, causing the coefficient of static friction to drop to half the value found in part (b), what is the maximum distance (in m) the firefighter can climb along the ladder from the bottom before the ladder slips?

m

In: Physics

You are considering two independent projects that have differing requirements. Project A has a required return...

You are considering two independent projects that have differing requirements. Project A has a required return of 12 percent compared to Project B's required return of 13.5 percent. Project A costs $75,000 and has cash flows of $21,000, $49,000, and $12,000 for Years 1 to 3, respectively. Project B has an initial cost of $70,000 and cash flows of $15,000, $18,000, and $41,000 for Years 1 to 3, respectively. Based on the NPV, you should:

In: Finance

10.7 When people make estimates, they are influenced by anchors to their estimates. A study was...

  • 10.7 When people make estimates, they are influenced by anchors to their estimates. A study was conducted in which students were asked to estimate the number of calories in a cheeseburger. One group was asked to do this after thinking about a calorie-laden cheesecake. A second group was asked to do this after thinking about an organic fruit salad. The mean number of calories estimated in a cheeseburger was 780 for the group that thought about the cheesecake and 1,041 for the group that thought about the organic fruit salad. (Data extracted from “Drilling Down, Sizing Up a Cheeseburger's Caloric Heft,” The New York Times, October 4, 2010, p. B2.) Suppose that the study was based on a sample of 20 people who thought about the cheesecake first and 20 people who thought about the organic fruit salad first, and the standard deviation of the number of calories in the cheeseburger was 128 for the people who thought about the cheesecake first and 140 for the people who thought about the organic fruit salad first.

  • a. State the null and alternative hypotheses if you want to determine whether the mean estimated number of calories in the cheeseburger is lower for the people who thought about the cheesecake first than for the people who thought about the organic fruit salad first.

  • b. In the context of this study, what is the meaning of the Type I error?

  • c. In the context of this study, what is the meaning of the Type II error?

  • d. At the 0.01 level of significance, is there evidence that the mean estimated number of calories in the cheeseburger is lower for the people who thought about the cheesecake first than for the people who thought about the organic fruit salad first?

SHOW EXCEL FUNCTIONS USED TO ANSWER.

In: Math

Trace the execution of the following program assuming the input stream contains the numbers 10, 3,...

Trace the execution of the following program assuming the input stream contains the numbers 10, 3, and 14.3. Use a table that shows the value of each variable at each step. Also show the output (exactly as it would be printed)

// FILE: Trace.java // PURPOSE: An exercise in tracing a program and understanding // assignment statements and expressions. import java.util.Scanner; public class Trace { public static void main (String[] args) { int one, two, three; double what; Scanner scan = new Scanner(System.in); System.out.print ("Enter two integers: "); one = scan.nextInt(); two = scan.nextInt(); System.out.print("Enter a floating point number: "); what = scan.nextDouble() ; three = 4 * one + 5 * two; two = 2 * one; System.out.println ("one " + two + ":" + three); one = 46 / 5 * 2 + 19 % 4; three = one + two; what = (what + 2.5) / 2 ; System.out.println (what + " is what!"); } }

In: Computer Science

A school psychologist wishes to determine whether a new antismoking film actually reduces the daily consumption...

A school psychologist wishes to determine whether a new antismoking film actually reduces the daily consumption of cigarettes by teenage smokers. The mean daily cigarette consumption is calculated for each eight teenage smokers during the month before and the month after the film presentation, with the following results:

MEAN DAILY CIGARETTE CONSUMPTION

SMOKER NUMBER

BEFORE FILM (X1)

AFTER FILM (X2)

1

28

26

2

29

27

3

31

31

4

44

44

5

35

35

6

20

16

7

50

47

8

25

23

(Note: when deciding on the form of the alternative hypothesis, H1, remember that a positive difference score (D=X1-X2) reflects a decline in cigarette consumption.)

Using t, test the null hypothesis at the .05 level of significance.

A)What is the research problem in this scenario?

B)Which of the following is the appropriate pair of statistical hypotheses for this study?

C)Compute the degrees of freedom for this scenario.

D)What is the decision rule in this scenario?

E)Calculate the value of the t test.

F)What is the decision about the null hypothesis in this scenario?

H)What is the interpretation in this scenario?

I)If appropriate (because the null hypothesis was rejected), construct a 95 percent confidence interval for the true population mean for all difference scores and use Cohen’s d to obtain a standardized of the effect size. Lower bound, upper bound, or 0 if null hypothesis is retained

J)Enter the estimate of the standardized effect size (Cohen’s d).

K)What might be done to improve the design of this experiment?

In: Math

How do operations management terminology like operations strategy, planning, organizational management, capacity, productivity, throughput, time, efficiency,...

How do operations management terminology like operations strategy, planning, organizational management, capacity, productivity, throughput, time, efficiency, technology, human resources, other resources, costs, backlogs, bottlenecks, quality, and supply chains relate to Covid19 testing?

In: Operations Management

in java Write a contacts database program that presents the user with a menu that allows...

in java

Write a contacts database program that presents the user with a menu that allows the user to select between the following options:

  • Save a contact.
  • Search for a contact.
  • Print all contacts out to the screen.
  • Quit

If the user selects the first option, the user is prompted to enter a person's name and phone number which will get saved at the end of a file named contacts.txt.
If the user selects the second option, the program prompts the user asking for the name of the contact. It then searches the contacts.txt for a matching name. If found, it displays the phone number on the screen. If not found, it will display an appropriate error message.
If the user selects the third option, the program displays all contacts stored in contacts.txt in a neat table.
The program is menu driven and will repeat presenting the menu and processing choices until the user selects the fourth option to quit.
If the user selects an invalid option, an appropriate error message should be displayed.
If the user selects to print all contacts to the screen with no stored contacts, an appropriate error message should be displayed.

You may use message dialogs or make it a purely console-based application

In: Computer Science

MATCHING! Amounts received from investors in exchange for stock Difference between amount received for stock and...

MATCHING!

Amounts received from investors in exchange for stock

Difference between amount received for stock and the par value

Amount assigned by company to share of stock

Stockholder has a right to maintain share of ownership in corporation

Receives dividends before common stock

Stock that has been issued and later reacquired

Maximum number of shares of stock that may be issued

Equity earned that is not distributed to stockholders

Increases the number of issued and outstanding shares, and decreases the par value per share

Distribution of earnings

stock dividend that has not been paid on cumulative preferred stock

Distribution of corporation’s own stock

Journal entry recording a restriction of a portion of retained earnings to limit the amount of dividends that can be paid

Stock that is held by stockholders

Credited when dividends are declared, but will be paid at a later date

Correction to retained earnings for an error made in a previous accounting period

shares of stock that have been transferred to stockholders that may or may not be held by stockholders

The price at which the stock is bought and sold

The amount of net income or loss for each share of outstanding common stock

Basic ownership of corporation

1.

Authorized stock

2.

Issued stock

3.

Outstanding stock

4.

Common stock

5.

Preferred stock

6.

Dividend

7.

Preemptive right

8.

Par value

9.

Market value

10.

Paid-in capital

11.

Retained earnings

12.

Paid-in capital in excess of Par

13.

Treasury stock

14.

Dividends Payable

15.

Dividends in arrears

16.

Stock dividends

17.

Stock split

18.

Earnings per share

19.

Appropriation of retained earnings

20.

Prior-period adjustment.

In: Accounting