1answer.
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
lesya692 [45]
3 years 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:
11Alexandr11 [23.1K]3 years ago
3 0

Answer:

CODE

import time #importing time module

import math #importing math module

pi = math.pi #defining the value of pi

u = 70 #initial velocity

g = 9.8 #gravitational acceleration

time_step = 0.01 #time step of 0.01 secs

time_elapsed = 0.0

maxAngle = 0

angle = 1

h = 5.0 #setting the initial height to to 5m

x = 0.0

maxRange = 0.0

for angle in range(1,91): #loop which angle takes value from 1 to 90

ux = u * math.cos((pi / 180) * angle) #velocity in x axis

uy = u * math.sin((pi / 180) * angle) #velocity in y axis

for i in range(1000): #running for 1000 steps

dragx = 0.5 * 1.225 * 1.4 * 0.8 * ux * ux #calculating the drag in x direction

dragy = 0.5 * 1.225 * 1.4 * 0.8 * uy * uy #calculating the drag in y direction

drag_ax = dragx / 65.0 #calculating drag acceleration in x axis

drag_ay = dragy / 65.0 #calculating drag acceleration in y axis

accelx = drag_ax #resultant acceleration in x axis

accely = g + drag_ay #resultant acceleration in y axis

vx = ux - accelx * time_step #velocity in the x axis at any instant

vy = uy - accely * time_step #velocity in the y axis at any instant

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

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

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

time.sleep(time_step) #waiting for 0.01 secs

time_elapsed += time_step #calculating the time elapsed

ux = vx #setting the final velocitites to new initial velocities

uy = vy

if h <= 0.0: #if a height 0 is reached

if x > maxRange:

maxRange = x #max angles are noted

maxAngle = angle

h = 5.0 #variables are initialized

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) #wait for 10 secs

time_elapsed = 0.0

break

print("The optimum angle for for Callista is {} degrees which will give her a range of {} metres".format(str(maxAngle),str(maxRange))) #the optimum angle is printed

Explanation:

You might be interested in
After retiring from Jones Corp., a partnership founded by Megan Jones and other partners, Megan grew tired of staying at home an
lana [24]

Answer:

The Correct option is <u>"B"</u>

Explanation:

Any person who by arguments verbal or written or by behavior characterize himself, or wittingly documents himself to be drawn, to be a companion in a very secure, is responsible as a companion in this organization to any person who has on the religion of one such illustration specified credit to the organization, whether or not the individual signifying himself or drawn to be a companion will or doesn't understand that the illustration has extended the individual therefore providing credit.

8 0
4 years ago
Read 2 more answers
Booker Petroleum Refiners (BPR) has an issue of 8-year, 11% annual coupon bonds outstanding. The bonds, which were originally is
Rzqust [24]

Answer:

$1,238.85

Explanation:

In this question, we use the present value formula which is shown in the spreadsheet.  

The NPER represents the time period.

Given that,  

Future value = $1,000

Rate of interest = 7%

NPER = 8 years

PMT = $1,000 × 11% = $110

The formula is shown below:

= -PV(Rate;NPER;PMT;FV;type)

So, after solving this, the answer would be $1,238.85

8 0
3 years ago
Every product manufactured by the maker of slim-fast carries the slim-fast brand name. this company uses __________.
butalik [34]
Your answer is A, multibranding.
4 0
3 years ago
Touchtech earns revenue when edison purchases 100 shares, even if he purchases them from an existing shareholder.
Strike441 [17]

Answer:

A. An increase in the perceived profitability of Touchtech will likely cause the value of Edison's shares to rise.

B. Expectations of a recession that will reduce economy-wide corporate profits will likely cause the value of Edison's shares to decline

Explanation:

The price of the stock changes only because of the changes in the profitability of the firm. If the company is earning lower profits then the prices of the stock will fall and vice versa. So the option A is correct because increase in profitability increases the value of the shares.

So the main thing here is the profitability of the firm which is affected by the recession in the economy because during the recession period the profitability of the firm decreases and so the value of the stock decreases. So the option B is correct

6 0
3 years ago
The 1950s were marked by great suspicion about advertisers and their potential persuasive powers. Do you see any lingering effec
Mars2501 [29]

Answer: Yes I do.

Explanation:

The 1950s were a time of great fear to people in the developed world. They feared that as the Cold War was just beginning, there were being watched by foreign powers and that they couldn't trust a lot of people because they didn't know who was who. Especially in America where the fear of Communism gripped the nation. They did not know if certain adverts were Communist Propaganda and they feared that sometimes the information government's had about them was used to Target them.

This fear is still quite evident today. Take the 2016 Election rumours for instance. Certain Social media platforms claimed that foreign powers used their sites to advertise the President and get him elected. The ease by which this was accepted showed that people do indeed still have fear advertising.

3 0
4 years ago
Read 2 more answers
Other questions:
  • Home Accessories’ bank statement showed a $120 NSF check. Which of the following shows how recognizing this check will affect Ho
    13·1 answer
  • Mirage Inc., a management consulting firm, plans to increase its profits by expanding its services to target new customers. It w
    15·1 answer
  • Describe Fiscal Policy. Consider an economy where government charges 20% of an individual’s income as taxes (i.e. T = 0.2Y). Con
    5·1 answer
  • Which of the following is not a benefit of a store channel shopping experience?
    14·1 answer
  • Actor Sissy Spacek once objected to a series of movie scenes that included her smoking a certain brand of cigarettes. She was pr
    15·1 answer
  • A reversing entry is ________. Group of answer choices a journal entry used to close the temporary accounts after preparation of
    15·1 answer
  • Some industries’ competition is much more intense than others. Retail grocery stores such as Kroger, Safeway, and Albertson’s in
    5·1 answer
  • Your broker suggests that the stock of DUH is a good purchase at $25. You do an analysis of the firm, determining that the recen
    14·1 answer
  • As environmental uncertainties increase, managers must develop techniques and methods for collecting, sorting through, and inter
    11·1 answer
  • Here are comparative statement data for Duke Company and Lord Company, two competitors. All balance sheet data are as of Decembe
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!