define the following
functional plans
MBO
mission
In: Accounting
I am new to python, and i used python 3. i have to make a new program can anyone give tell mw how to do this.
A) Write a function with the name doubler. The function should take an integer parameter and return twice the value of the integer.
Test the function with the following code:
print(“Double of 6 is”,doubler(6))
The printout should be:
Double of 6 is 12
B) Write a function with the name scoreToLetter. The function should take an integer parameter and give out a letter grade according to the following grade table:
|
Score >=90 |
A |
|
80<=score<90 |
B |
|
70<=score< 80 |
C |
Test the function with the following code:
X = 85
Print (“Your grade is”,scoreToLetter(x))
This should print:
Your grade is B
C) Write a function ‘sumOfThrows’ that takes two parameters ‘throws’ and ‘sides’. ‘sides’ should have a default values of 6. The function should return the sum from doing however many random throws specified for a die with ‘sides’ number of sides.
Test the function.
For example sumOfThrows(1,6) should show the outcome of throwing one six-sided die.
sumOfThrows(3,8) should show the outcome of throwing three dice with sides numbered 1 through 8.
sumOfThrows(2) should show the outcome of throwing two six-sided dice.
D) Move all functions to a module with name myFunctions.py. Import the myFunctions module and test all functions.
E) Submit both myFunction.py and the file with your tests named tests.py
In: Computer Science
The December 31, 20X8, balance sheets for Pint Corporation and
its 70 percent-owned subsidiary Saloon Company contained the
following summarized amounts:
| PINT CORPORATION AND SALOON COMPANY | |||||||
| Balance Sheets December 31, 20X8 |
|||||||
| Pint Corporation | Saloon Company | ||||||
| Assets | |||||||
| Cash & Receivables | $ | 98,000 | $ | 40,000 | |||
| Inventory | 150,000 | 100,000 | |||||
| Buildings & Equipment (net) | 310,000 | 280,000 | |||||
| Investment in Saloon Company | 242,000 | ||||||
| Total Assets | $ | 800,000 | $ | 420,000 | |||
| Liabilities & Equity | |||||||
| Accounts Payable | $ | 70,000 | $ | 20,000 | |||
| Common Stock | 200,000 | 150,000 | |||||
| Retained Earnings | 530,000 | 250,000 | |||||
| Total Liabilities & Equity | $ | 800,000 | $ | 420,000 | |||
Pint acquired the shares of Saloon Company on January 1, 20X7. On
December 31, 20X8, assume Pint sold inventory to Saloon during 20X8
for $100,000 and Saloon sold inventory to Pint for $300,000. Pint’s
balance sheet contains inventory items purchased from Saloon for
$95,000. The items cost Saloon $55,000 to produce. In addition,
Saloon’s inventory contains goods it purchased from Pint for
$25,000 that Pint had produced for $15,000. Assume Saloon reported
net income of $70,000 and dividends of $14,000.
Required:
a. Prepare all consolidation entries needed to complete a
consolidated balance sheet worksheet as of December 31, 20X8.
(If no entry is required for a transaction/event, select
"No journal entry required" in the first account field. Do not
round intermediate calculations.)
Record the basic consolidation entry.
Record the entry to defer this year's unrealized profit on inventory transfers.
In: Accounting
plot this data into a bar graph: PYTHON
data=pandas.read_csv(r'data/tv_shows.txt', low_memory=False)
print((data))
print((data.columns))
TV Shows : Rating 0 --------------------- 1 A Discovery of Witches : 100% 2 Barry : 100% 3 Unforgotten : 100% 4 Veep : 98% 5 Killing Eve : 97% 6 Billions : 96% 7 Les Misérables : 96% 8 Supergirl : 89% 9 Call the Midwife : 80% 10 Game of Thrones : 77% 11 Now Apocalypse : 77% 12 The Red Line : 69% 13 Lucifer : No Score Yet 14 Chernobyl : 95% 15 Dead to Me : 85% 16 Better Things : 100% 17 Brooklyn Nine-Nine : 100% 18 Tuca & Bertie : 100% 19 State of the Union : 100% 20 The Twilight Zone : 75% 21 Happy! : 100% Index(['TV Shows : Rating'], dtype='object')
In [9]:
display(data)
In: Computer Science
At 25 degrees celsius only .0640 mol of the generic salt AB2 is soluble in 1.00 L of water. What is the Ksp of the salt at 25 degrees celsius. I got 1.0 X 10^-3 but the computer says its wrong. Plse help
In: Chemistry
In: Economics
S Company reported the following account balances on its After Closing Trial Balance
(DR = Debit/CR = Credit)
Bonds Payable $7,000 CR
Supplies $7,000 DR
Accounts Receivable $1,000 DR
Accounts Payables $5,000 CR
Building & Land $13,000 DR
Retained Earnings $4,000 DR
Cash $5,000 DR
Discount-Bonds Payable $2,000 DR
If $4,000 of the Accounts Payable were paid using cash, what would be the debt ratio taking into account the payment of the Accounts Payable?
(Round to the nearest 3rd decimal place in your answer format)
In: Accounting
A.) A 700- kg car collides with a 1300- kg car that was initially at rest at the origin of an x-y coordinate system. After the collision, the lighter car moves at 15.0 km/h in a direction of 30 o with respect to the positive x axis. The heavier car moves at 18 km/h at -41 o with respect to the positive x axis. What was the initial speed of the lighter car (in km/h)?
B.) What was the initial direction (as measured counterclockwise from the x-axis)?
I found the answer for A but can't seem to find the answer for B
In: Physics
My industry is Optometry:
7. What are the impacts of the macroeconomic business cycle on demand in your industry? Is demand in your industry procyclical or countercyclical? Explain. If demand in your industry is insensitive to the business cycle, explain why this is so?
8. What are any major impacts of the macroeconomic business cycle on supply for your industry – i.e. how might different phases of the business cycle impact your industry’s ability to acquire inputs such as labor, capital or materials? Explain. Note: Do not discuss responses to demand side changes but look for impacts that are independent of demand changes.
In: Economics
Compute Bond Proceeds, Amortizing Discount by Interest Method, and Interest Expense
Boyd Co. produces and sells aviation equipment. On the first day of its fiscal year, Boyd Co. issued $40,000,000 of five-year, 10% bonds at a market (effective) interest rate of 12%, with interest payable semiannually. Compute the following:
a. The amount of cash proceeds from the sale of
the bonds. Use the tables of present values in Exhibit 5 and
Exhibit 7. Round to the nearest dollar.
$
b. The amount of discount to be amortized for
the first semiannual interest payment period, using the interest
method. Round to the nearest dollar.
$
c. The amount of discount to be amortized for
the second semiannual interest payment period, using the interest
method. Round to the nearest dollar.
$
d. The amount of the bond interest expense for
the first year. Round to the nearest dollar.
$
In: Accounting
Which of the following is a typical characteristic of human traits that follow an X-linked recessive inheritance pattern?
Group of answer choices
more males than females are affected
more females than males are affected
it is passed from father to all sons
affected sons must have an affected mother
In: Biology
In: Math
Drug money extract in the 5.0 mL methanol containing cocaine gave a signal of 4.27 mV in a GC-FID experiment. Then 500 L of 20.0 ppm cocaine were added to the 5.0 mL methanolic extract. This spiked solution sample gave a signal of 7.98 mV. Find the concentration of cocaine in the original extract, in ppm, in mol/L, in g.
In: Chemistry
(a) Suppose you are given the following (x, y) data pairs. x: 1 2 6 y: 4 3 9 Find the least-squares equation for these data (rounded to three digits after the decimal). ŷ = + x
(b) Now suppose you are given these (x, y) data pairs. x 4 3 9 y 1 2 6 Find the least-squares equation for these data (rounded to three digits after the decimal). ŷ = + x
(c) In the data for parts (a) and (b), did we simply exchange the x and y values of each data pair? Yes No
(d) Solve your answer from part (a) for x (rounded to three digits after the decimal). x = + y Do you get the least-squares equation of part (b) with the symbols x and y exchanged? Yes No
(e) In general, suppose we have the least-squares equation y = a + bx for a set of data pairs (x, y). If we solve this equation for x, will we necessarily get the least-squares equation for the set of data pairs (y, x), (with x and y exchanged)? Explain using parts (a) through (d).
In general, switching x and y values produces the same least-squares equation.
In general, switching x and y values produces a different least-squares equation.
Switching x and y values sometimes produces the same least-squares equation and sometimes it is different.
In: Math
Many people have different concepts or ideas about the study of economics.
It would be interesting to know what are your thoughts as it relates to the study of economics and its importance in society.
In: Economics