PYTHON PROGRAM
QUESTION 1
Briefly describe how a while loop works
QUESTION 2
Compare and contrast a while statement and an if statement ?
QUESTION 3
What is a loop body?
QUESTION 4
What is the value of variable num after the following code segment?
num = 10;
while num > 0:
num = num -1;
QUESTION 5
What is the value of variable num after the following code segment is executed?
var num = 1
while num >10:
num = num -1
QUESTION 6
Why the loop does not terminate?
n = 10
answer = 1
while n > 0:
answer = answer + n
n = n + 1
print(answer)
QUESTION 7
Convert the following for loop to a while loop.
total = 0
for i in range(10):
total = total + i
print(total)
QUESTION 8
Write a while loop to display from 0 to 100, step up 5 each time.
0, 5, 10, 15, 20, ... , 100
In: Computer Science
A010) One of the most
active (and best studied) earthquake-prone areas is the San Andreas
transform fault that forms a plate boundary
between the North American Plate and the Pacific Plate. Turn on the
San Andreas Major Ruptures folder to see rupture extents
for three major earthquakes that have affected the San Andreas–
Fort Tejon (1857, Mag. 7.9), San Francisco (1906, Mag. 7.8), and
Loma Prieta (1989, Mag. 6.9). Also, in the Layers panel,
turn on Gallery > Earthquakes.
Plate Boundary Earthquakes - San Andreas Fault, Wallace
Creek, CA. What is the sense of offset along the San
Andreas Fault? (i.e., Walk along either segment of Wallace
Creek toward the fault. At the fault, determine the direction you
turn to find the offset segment of the stream across the
fault.)
right lateral (rocks on the west side of the San Andreas Fault move to the NW) |
|
left lateral (rocks on the west side of the San Andreas Fault move to the SE) |
A011) Plate Boundary Earthquakes - San Andreas Fault, Wallace Creek, CA. Use the Ruler tool to determine the distance (m) that Wallace Creek has been offset by recent motion along the San Andreas Fault (measure between the Problem 11 placemarks).
~75 m |
|
~100 m |
|
~303 m |
|
~160 m |
A012) Plate Boundary Earthquakes - San Andreas Fault, Wallace Creek, CA. Assuming that slip accumulates along the fault at about 6 cm/yr, how many years might it have taken to accumulate the slip that was released to produce the observed offset of the stream?
~2667 yrs |
|
~5033 yrs |
|
~1010 yrs |
|
~10,100 yrs |
A015) Plate Boundary Earthquakes - San Andreas Fault, CA. Keep the San Andreas Major Ruptures folder turned on to show the extents of segments of the San Andreas Fault that have slipped during major seismic events. Using seismic gap analysis (where segments of a fault that have not recently slipped form "gaps" of accumulating strain transferred from adjacent slipped fault segments that highlight areas of greater potential for a "seismic" event), which placemark highlights a segment of the San Andreas Fault that has a high risk for an earthquake?
Question 13 options:
Problem 15a |
|
Problem 15b |
|
Problem 15c |
|
Problem 15d |
In: Other
Required information
[The following information applies to the questions displayed below.]
Beech Corporation is a merchandising company that is preparing a master budget for the third quarter of the calendar year. The company’s balance sheet as of June 30th is shown below:
Beech Corporation | ||
Balance Sheet | ||
June 30 | ||
Assets | ||
Cash | $ | 85,000 |
Accounts receivable | 141,000 | |
Inventory | 83,250 | |
Plant and equipment, net of depreciation | 226,000 | |
Total assets | $ | 535,250 |
Liabilities and Stockholders’ Equity | ||
Accounts payable | $ | 87,000 |
Common stock | 350,000 | |
Retained earnings | 98,250 | |
Total liabilities and stockholders’ equity | $ | 535,250 |
Beech’s managers have made the following additional assumptions and estimates:
Estimated sales for July, August, September, and October will be $370,000, $390,000, $380,000, and $400,000, respectively.
All sales are on credit and all credit sales are collected. Each month’s credit sales are collected 45% in the month of sale and 55% in the month following the sale. All of the accounts receivable at June 30 will be collected in July.
Each month’s ending inventory must equal 20% of the cost of next month’s sales. The cost of goods sold is 75% of sales. The company pays for 30% of its merchandise purchases in the month of the purchase and the remaining 70% in the month following the purchase. All of the accounts payable at June 30 will be paid in July.
Monthly selling and administrative expenses are always $50,000. Each month $7,000 of this total amount is depreciation expense and the remaining $43,000 relates to expenses that are paid in the month they are incurred.
The company does not plan to borrow money or pay or declare dividends during the quarter ended September 30. The company does not plan to issue any common stock or repurchase its own stock during the quarter ended September 30.
Required:
1. Prepare a schedule of expected cash collections for July, August, and September. Also compute total cash collections for the quarter ended September 30.
2-a. Prepare a merchandise purchases budget for July, August, and September. Also compute total merchandise purchases for the quarter ended September 30.
2-b. Prepare a schedule of expected cash disbursements for merchandise purchases for July, August, and September. Also compute total cash disbursements for merchandise purchases for the quarter ended September 30.
3. Prepare an income statement for the quarter ended September 30.
4. Prepare a balance sheet as of September 30.
In: Accounting
For this problem, carry at least four digits after the decimal in your calculations. Answers may vary slightly due to rounding. In a marketing survey, a random sample of 996 supermarket shoppers revealed that 272 always stock up on an item when they find that item at a real bargain price. (a) Let p represent the proportion of all supermarket shoppers who always stock up on an item when they find a real bargain. Find a point estimate for p. (Round your answer to four decimal places.) 0.273 Incorrect: Your answer is incorrect. (b) Find a 95% confidence interval for p. (Round your answers to three decimal places.) lower limit 0.273 Incorrect: Your answer is incorrect. upper limit 0.028 Incorrect: Your answer is incorrect. Give a brief explanation of the meaning of the interval. 95% of all confidence intervals would include the true proportion of shoppers who stock up on bargains. 95% of the confidence intervals created using this method would include the true proportion of shoppers who stock up on bargains. 5% of all confidence intervals would include the true proportion of shoppers who stock up on bargains. 5% of the confidence intervals created using this method would include the true proportion of shoppers who stock up on bargains. Incorrect: Your answer is incorrect. (c) As a news writer, how would you report the survey results on the percentage of supermarket shoppers who stock up on items when they find the item is a real bargain? Report the confidence interval. Report p̂ along with the margin of error. Report the margin of error. Report p̂. Incorrect: Your answer is incorrect. What is the margin of error based on a 95% confidence interval? (Round your answer to three decimal places.)
In: Math
Describe the Sarbanes-Oxley Act. Why was the act enacted? What is the impact? Do you think it will stop accounting corruption? Why or why not?
Writing assignment 500 words (NO PLAGIARIZE). Please help I know nothing about this topic.
In: Accounting
Choose any 3 questions.
1.) What effect does N have on accurately determining the value of the period? What considerations keep one from allowing N to be very large, for example 1000?
2.) What does it mean for the pendulum to have a small angle? How far does the period (T) of the pendulum differ from the linear model that we used to describe the pendulum as a function of initial angle? Note that for this one you will need to measure the period of a single swing of the pendulum. How can you / did you do this?
3.) How can you investigate the pendulum under the effect of reduced gravity? How might you dilute the effect of gravity on the pendulum?
4.) What are the effects of air friction on the mechanical energy of the pendulum? Study the drop in amplitude of oscillation of the pendulum as a function of time, length, mass, period and initial amplitude.
5.) Define the terms amplitude, frequency, angular frequency, and period as they apply to the pendulum.
In: Physics
assume the following instruction frequencies/composition in the
program:
load (lw) 22%
sub / compare 21%
conditional branch 20%
store (sw) 12%
add / move 12%
and 6%
4.
How long would it take to run a 100 instruction program on a single cycle datapath architecture, assuming a cycle time of 50ns?
(14)
5.
How long would it take to run the same 100 instruction program
on a multi-cycle datapath architecture, assuming a cycle time of
8ns. Further assume that “lw” takes 6 cycles, “sw” takes 4 cycles,
and all other instructions take 3 cycles to execute.
(14)
In: Computer Science
Latestech Equipment Ltd operates an equipment rental business. The equipment has an internal computer that enables remote monitoring of usage:
Casual equipment hire at a rate of $25 per machine hour, with a minimum charge of $200 per day, e.g., if a customer hires a machine on Monday, collecting it at 5.00 p.m. and returns it by 5.00 p.m. Tuesday, after using it for 10 machine hours, the customer will be charged $250, but if the customer used the machine for only 4 hours, the charge would be $200, being the minimum daily charge.
Extended equipment hire agreement for a fixed fee of $12,000 payable in advance, which entitles the customer to the following:
o possession of the equipment for one year
o use of the equipment for up to 500 machine hours
o additional machine hours are charged at $25 per hour.
The equipment has a useful life of five years.Big Plans Ltd is a customer of Latestech Equipment Ltd. Big Plans Ltd entered into an extended equipment hire agreement on 1 March 20X3. The initial payment of $12,000 was debited to Prepayments. The equipment was used for 200 machine hours in the first four months of the extended hire agreement. Big Plans Ltd’s reporting date is 30 June.
a) Identify the relevant facts in relation to the transaction with Latestech Ltd.
b) What is the major accounting policy issue from the perspective of Big Plans Ltd in relation to the extended equipment hire agreement in preparing the financial statements for the year ended 30 June 20X3?
c) List the accounting standards, interpretations and other pronouncements (such as the Conceptual Framework) that are relevant to the accounting problem described in part b). Identify and describe two principles from these pronouncements.
d) The trainee bookkeeper suggests that $12,000 payment should be treated as an expense in the current period. Propose an alternative accounting policy that differs in terms of definition, recognition or measurement from that suggested by the trainee bookkeeper. In this question you are required to describe the policy only. You are not required to evaluate or justify it (save that for part e)
e) Based on the principles you identified in part c) evaluate
i) the policy suggested by the trainee bookkeeper and
ii) the policy that you suggested in part d) f) Recommend a policy.
g) Prepare a note to describe how the extended hire agreement has been accounted for, and disclosing the amount, if any, included in profit or loss in the current period.
In: Accounting
In the annual battle of the dorms, students gather on the roofs of Jackson and Walton dorms to launch water balloons at each other with slingshots. The horizontal distance between the buildings is 38.0 m, and the heights of the Jackson and Walton buildings are, respectively, 15.0 m and 22.0 m. The first balloon launched by the Jackson team hits Walton dorm 2.20 s after launch, striking it halfway between the ground and the roof. Ignore air resistance. (a) Find the direction of the balloon's initial velocity. Give your answer as an angle (in degrees) measured above the horizontal. (b) A second balloon launched at the same angle hits the edge of Walton's roof. Find the initial speed of this second balloon.
In: Physics
Light weight charged bodies stick to neutral matter. Why?
In: Physics
A QL = -22 ?C charge is placed on the x-axis at x = - 0.4 m. A QR = 22 ?C charge is placed at x = +0.4 m. (for all answers below assume that the unit vector x^ points toward positive x, and y^ points towards positive y.).
a.What is the x-component of the electric field at x = 0 m and y = 0.4m? (N/C)
b. What is the y-component of the electric field at x = 0 m and y = 0.4m? (N)
c What is the x-component of the electric field at x = 0 m and y = -0.4m? (N/C)
d. What is the y-component of the electric field at x = 0 m and y = -0.4m? (N/C)
B and D are 0 but I can't figure out A and C
In: Physics
Calculate the molar solubility of lead(II) chloride in a 0.10 M calcium chloride solution.
I keep getting 0.0017, but that is incorrect.
In: Chemistry
Waterway Industries has equipment with a carrying amount of $2510000. The expected future net cash flows from the equipment are $2545000, and its fair value is $2043000. The equipment is expected to be used in operations in the future. What amount (if any) should Waterway report as an impairment to its equipment? No impairment should be reported. $502000. $467000. $35000.
In: Accounting
The following is a partial trial balance for General Lighting
Corporation as of December 31, 2021:
Account Title | Debits | Credits |
Sales revenue | 3,000,000 | |
Interest revenue | 93,000 | |
Loss on sale of investments | 29,000 | |
Cost of goods sold | 1,320,000 | |
Loss on inventory write-down (obsolescence) | 330,000 | |
Selling expense | 430,000 | |
General and administrative expense | 215,000 | |
Interest expense | 92,000 | |
There were 300,000 shares of common stock outstanding throughout
2021. Income tax expense has not yet been recorded. The income tax
rate is 25%.
Required:
Prepare a single-step income statement for 2021, including EPS disclosures.
Prepare a multiple-step income statement for 2021, including EPS disclosures.
In: Accounting
1. The following probability distribution represents the number of people living in a Household (X), and the probability of occurrence (P(X)). Compute the Expected Value (mean), the Variance and the Standard Deviation for this random variable. Show Your Calculations for the Mean.
X 1 2 3 4 5
P(X) .30 .33 .24 .08 .05
2. Use the binomial formula to compute the probability of a student getting 7 correct answers on a 10 question Quiz, if the probability of answering any one question correctly is 0.84. SHOW YOUR WORK.
3. Submit your answers to the following binomial questions. You may use the appendix table B #5 to answer parts (a) and (b). According to a government study, 15% of all children live in a household that has an income below the poverty level. If a random sample of 15 children is selected:
a) what is the probability that 5 or more live in poverty?
b) what is the probability that 5 live in poverty?
c) what is the expected number (mean) that live in poverty? What is the variance? What is the standard deviation?
In: Math