answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
nevsk
2 months ago
8

Callista "cherry bomb" davidson is a world-famous stunt woman, and she is trying to achieve the long distance world record human

cannonball. she needs your help, though, because she has no idea what angle is best to aim her cannon. you will need to simulate firing the cannon at all integer angles from 1 to 90 inclusive.
Business
1 answer:
Katen [3.5K]2 months ago
3 0

Answer:

CODE

import time #importing the time module

import math #importing the math module

pi = math.pi #setting the value of pi

u = 70 #initial velocity

g = 9.8 #acceleration due to gravity

time_step = 0.01 #defines the time increment as 0.01 seconds

time_elapsed = 0.0

maxAngle = 0

angle = 1

h = 5.0 #initial height set at 5m

x = 0.0

maxRange = 0.0

for angle in range(1, 91): #loop iterating angles from 1 to 90

ux = u * math.cos((pi / 180) * angle) #horizontal velocity component

uy = u * math.sin((pi / 180) * angle) #vertical velocity component

for i in range(1000): #executing for 1000 iterations

dragx = 0.5 * 1.225 * 1.4 * 0.8 * ux * ux #calculating the horizontal drag

dragy = 0.5 * 1.225 * 1.4 * 0.8 * uy * uy #calculating the vertical drag

drag_ax = dragx / 65.0 #computing drag acceleration in x

drag_ay = dragy / 65.0 #computing drag acceleration in y

accelx = drag_ax #acceleration yielding in the x direction

accely = g + drag_ay #total acceleration in the y direction

vx = ux - accelx * time_step #calculating x-axis velocity at each instant

vy = uy - accely * time_step #calculating y-axis velocity at each instant

h += uy * time_step - 0.5 * accely * time_step * time_step #height of the projectile at any instant

x += ux * time_step - 0.5 * accelx * time_step * time_step #horizontal range of the projectile at any instant

print("Height " + str(h) + " Range " + str(x)) #displaying current position

time.sleep(time_step) #pausing for 0.01 seconds

time_elapsed += time_step #updating time elapsed

ux = vx #assigning final velocities as initial velocities for the next iteration

uy = vy

if h <= 0.0: #when the projectile reaches ground level

if x > maxRange:

maxRange = x #recording maximum angles

maxAngle = angle

h = 5.0 #resetting variables

x = 0.0

u = 70.0

vx = 0.0

vy = 0.0

print("Wait till the next simulation starts.....")

time.sleep(10.0 - time_elapsed) #waiting for 10 seconds

time_elapsed = 0.0

break

print("The optimal angle for Callista is {} degrees which will yield a range of {} metres".format(str(maxAngle), str(maxRange))) #outputting the optimal angle

Explanation:

You might be interested in
Pixi Boutique will have cash receipts of​ $57,000 in December and cash disbursements of​ $51,000 for this month. If its beginnin
harina [3808]
The excess cash balance stands at $9000, and the correct option is C.
6 0
1 month ago
Gibson Energy Ltd.’s general ledger account for Cash in Bank showed the following at December 31, 2019:
Free_Kalibri [3773]

Answer:

1. Adjusted cash balance equals the adjusted balance from the bank statement, totaling $133,620.

2. Refer to the journal entries and details provided in section 2 below.

Explanation:

The data presented in the question has been compiled and organized in the attached Excel document prior to answering the questions as follows:

1. Complete the bank reconciliation for December 31, 2019.

The bank reconciliation is shown in two formats:

a) Based on cash book balance

Gibson Energy Ltd.

Bank Reconciliation  

as of December 31, 2019  

Details                                                                   Amount ($)    

Cash book balance at December 31 awaiting reconciliation         62,000

Add:

Note receivable collected from XYZ Corp                            80,000

Less:

Dishonored NSF check                                               (7,000)

Overdraft interest expense                                            (1,320)

Bank service charge                                                   (60)  

Adjusted cash balance as of December 31                             133,620  

b) Based on bank statement balance

Gibson Energy Ltd.

Bank Reconciliation  

as of December 31, 2019  

Details                                                                       Amount ($)    

Bank statement balance at December 31 awaiting reconciliation          131,620

Add:  

Cash deposited on December 9 yet to be recognized          85,000

Cash deposited on December 31 yet to be recognized            15,000

Check #52094 issued in error                                      62,000

Less:

Outstanding checks 233                                                    (83,000)

Outstanding checks 239                                                    (77,000)  

Adjusted bank statement balance as of December 31                 133,620  

2. Document the journal entries needed to align the Cash in Bank account with the adjusted cash balance on the December 31 bank reconciliation, including explanations.

Date      Account Title & Description              DR ($)           CR ($)  

31 Dec 19    Cash                                                80,000  

                   Note Receivable                                                     78,049

                   Interest on Note Receivable                                       1,951

                  (To record note receivable & interest collected from XYZ)    

31 Dec 19   Overdraft interest expense                1,320

                  Service charge                                        60

                  Cash                                                                           1,380

                   (To record interest expense and bank charges)                  

31 Dec 19   Accounts Receivable                           7,000

                    Cash                                                                           7,000

                  (To record NSF check that was dishonored)                                      

Download xlsx
3 0
2 months ago
Other questions:
  • 2. [5 pts] Consider the following events: Scientists reveal that eating oranges decreases the risk of diabetes, and at the same
    13·1 answer
  • The service sector has lower productivity improvements than the manufacturing sector because: the service sector uses less skill
    12·1 answer
  • Compare the results of your personal time allocation to your ideal time allocation. Are you close to your ideal allocation? If n
    10·1 answer
  • Brooks Brothers bought a suit that has a list price of $1,219, with a chain discount of 7/4/2. What is the net price of the suit
    5·1 answer
  • A fully global organization might set up a ________ with a foreign company to create a new, independent company that produces a
    6·1 answer
  • Modesto broker Killian Johnson has just received a money deposit and the related instructions from the buyer, Luis Alverez. Whic
    5·1 answer
  • When the supervisor-to-subordinate ratio exceeds manageable span of control, additional Teams, Divisions, Groups, Branches, or S
    7·2 answers
  • Tracy consumes dress shoes​ (D) and casual Crocs​ (C). Her marginal utility from consuming casual Crocs is MU Subscript Upper CM
    14·1 answer
  • Joan is a single individual who works for Big Petroleum, Inc. During all of 2019, she is stationed in West Africa. She pays West
    6·1 answer
  • The Vogt corporation paid a dividend of $4.20 on its stock in the year just ended. If the dividends are projected to grow at a r
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!