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
lesya692 [45]
2 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]2 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
Raktida is the manager a popular Italian Restaurant on Mott Street. She wants to predict her guest counts for the first week of
AfilCa [17]

Answer:

The advantage of recording daily guest counts is that the information is more accurate, and it can help help Raktida to better forecast the number of guests during the current year. It's all about the quality of the information and not just the total data available. Total numbers would have been the same, but the use that could be given to them would be limited. The same applies if instead of weekly guests, the information was for monthly guests. Weekly numbers would be more useful than monthly numbers.

Having daily numbers allows Raktida to forecast a much more accurate serving schedule.

8 0
2 years ago
Alejandro Alvera of Alvear Corp was reading the financial statements of Olivas Medical Supply Company to decide whether he wante
Arte-miy333 [17]

Answer:

$400

Explanation:

The computation of the corrected operating income is shown below:

= Sales revenue - costs of goods sold - SG&A Expense

= $1,600 - $800 - $400

= $400

The gross profit would be

= Sales revenue - costs of goods sold

And the operating income would be

= Gross profit - SG&A Expense

For computing the operating income, we deduct the costs of goods sold and the SG&A Expense from the sales revenue

6 0
2 years ago
Jules Sylvester had always loved reptiles. When he was asked by a movie producer if he could locate some anaconda snakes for a m
PSYCHO15rus [73]

Answer:

The correct answer is letter "B": Sole proprietorship.

Explanation:

A Sole proprietorship is a type of business with a single owner who runs the business and is fully liable for all the transactions of the company. Sole proprietorships are typically self-funded by the owners and are easy to create since there are not many government regulations on this type of organization and are easy to dissolve as well.

6 0
2 years ago
Tangshan mining has 100,000 shares outstanding and just declared a 3-for-2 stock split. before the announcement, the firm's shar
Kazeer [188]
I<span>n this problem, the market net worth of the stocks of Tangshan mining is $5,000,000 (100,000 shares x $50.00 per share). The stock split would not affect the price of the stock. This transaction would only affect the number of shares of the company. Since this is a 3-for-2 stock split, this is clearly a split </span>up.<span> Therefore, this transaction would increase the number of shares while reducing its price per share. The shares would become 150,000 shares now ({100,000 shares/2} x 3). To get the current price of the share, you just need to divide $5,000,000 by the new number of shares which </span>is<span> 150,000 shares. You would then get $33.33 per share.</span>
4 0
2 years ago
During the month, Cellum, Inc. sold 100 cells at a price of $100 each. Each cell was sold at a 1% sales discount. Cellum had ret
gavmur [86]

Answer:

Net Sales for the month ended is equal to $9,702.

Explanation:

Sale = 100 x $100 = $10,000

Discount = $10,000 x 1% = $100

Sales Return = $198

Net Sales = Sales Price - Sales Discount - Sales Return

Net Sales = $10,000 - $100 - $198

Net Sales = $9,702

Net Sales for the month ended is equal to $9,702.

$20 is an expense and it is not an contra revenue account. So, it is not considered in net sales calculation.

6 0
2 years ago
Other questions:
  • ________ is a nondedicated revenue account and is the state's primary operating fund.
    8·1 answer
  • Peter wants to help improve the world around him, but doesn't know who he could make a difference. describe at least 5 conservat
    10·1 answer
  • Improving interpersonal effectiveness and building relationships often require a reduction in the size of the ____ in your Johar
    7·2 answers
  • A manager hires labor and rents capital equipment in a very competitive market. Currently the wage rate is $12 per hour and capi
    15·1 answer
  • Nicholas initially invested $2,400 in a technology company. The company recently paid annual dividends of $22 and his year-end i
    14·1 answer
  • Recent medical research revealed that the presence of gluten in oats can cause celiac disease in the elderly. Since the elderly
    13·1 answer
  • If a student attends every management science class, the probability of passing the course is 0.80; but if the student only atte
    10·1 answer
  • After eating four slices of pizza, you are offered a fifth slice for free. You turn down the fifth slice.
    10·1 answer
  • Company X has 2 million shares of common stock outstanding at a book value of $2 per share. The stock trades for $3 per share. I
    14·1 answer
  • Barbara Muller Services (BMS) pays its employees monthly. The payroll information listed below is for January 2021, the first mo
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!