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
24 days 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 [2.9K]24 days 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
A company's unit costs based on 100,000 units are: Variable costs $75 Fixed costs 30 The normal unit sales price per unit is $16
Free_Kalibri [3151]

Answer:

Incremental profit = $30000

thus, the correct choice is a. $30,000

Explanation:

provided data

Variable costs = $75

Fixed costs = 30

Sales price = $165

to determine

incremental profit or loss  from approval

solution

The contribution per unit is calculated as follows:

Contribution per unit = $165 - $75

Contribution per unit = $90

Consequently, we determine the loss on contribution from forgoing regular sales:

Loss on contribution = $3000 × $90

Loss on contribution = $270000

Furthermore,

The incremental contribution for the special order is calculated as:

Incremental contribution = (135 - 75) × 5000

Incremental contribution = $300000

Thus, the incremental profit equates to:

Incremental profit = $300000 - $270000

Incremental profit = $30000

therefore, the correct option is a. $30,000

8 0
24 days ago
Jamison Company has the following obligations at December 31: For each obligation, indicate whether it should be classified as a
marusya05 [3091]

Answer:

Explanation:

Current liabilities refer to obligations due within one year or less.

The classification is as follows:

a. A note payable for $100,000 due in 2 years. = Not classified as a current liability, as it is due in 2 years and classified as long-term liability.

b. A 10-year mortgage of $300,000 to be paid in ten annual payments of $30,000. = Only the first payment is a current liability; the rest are long-term liabilities.

c. An interest payment of $15,000 on the mortgage. = This is a current liability since it is due within one year.

d. Accounts payable of $60,000. = This is also a current liability because it is due within one year.

Current liabilities are recorded on the liability side of the balance sheet.

7 0
1 month ago
Claire is the head of product design for her company. She has to create the layout for the next generation of smartphones. She h
Free_Kalibri [3151]

Response:

the choice is D

.

Reasoning:

I just completed this on plato

6 0
12 days ago
You have been working on a new entrepreneurial venture with a few friends for the past year. Everyone’s efforts are really start
Nady [2956]

Answer:

A. Identifying several key ideas and determining the best way to structure them.

Explanation:

Effective communication occurs when the speaker conveys his thoughts accurately to the audience. The panel of experienced entrepreneurs is keen on investing in the project. With only 15 minutes for the meeting, it's crucial to focus on essential points and articulate their advantages for potential investors. The entrepreneur needs to deliver the key messages and arrange them effectively to create a lasting impression on the panel.

4 0
1 month ago
ncome Statements under Absorption Costing and Variable Costing Gallatin County Motors Inc. assembles and sells snowmobile engine
Scilla [3255]

Answer:

Income statement prepared under the absorption costing method

Sales 2,600,000

Less: Cost of Goods Sold

Beginning Inventory 0

Add: Cost of Goods Produced

Materials Used 1,218,000

Labor Costs 522,000

Variable Overhead 87,000

Fixed Overhead 130,500

Less: Ending Inventory (1,957,500/4,350)×350 (157,500)  1,800,000

Gross Profit 800,000

Less: Operating Costs:

Selling and Administrative Expenses:

Variable Sales/Administrative Costs (60,000)

Fixed Sales/Administrative Costs (25,000)

Net Profit 715,000

Explanation:

Product/Manufacturing Cost under Absorption Costing = Direct Materials + Direct Labor + Variable Overheads + Fixed Overheads

Period Cost under Absorption Costing  = All Non-Manufacturing Expenses

7 0
24 days ago
Other questions:
  • Tunstall, Inc., a small service company, keeps its records without the help of an accountant. After much effort, an outside acco
    14·1 answer
  • On Saturday, December 31, the company's owner provided ten hours of service to a customer. The company bills $100 per hour for s
    11·1 answer
  • Determine whether each action is an example of saving or investing: Putting $20 per paycheck into an account to help pay for boo
    5·1 answer
  • A new restaurant has introduced a wildly popular macaroni and cheese dish made with goat cheese. however, at approximately the s
    10·2 answers
  • Explain why the credit industry wants you to believe that you need a credit score
    11·2 answers
  • Tyrion and Alchemist make a contract where Tyrion will pay $20,000 for 5.000 gallons of wild fire. Alchemist promises to deliver
    5·2 answers
  • On January 1, 2021, Ozark Minerals issued $10 million of 9%, 10-year convertible bonds at 101. The bonds pay interest on June 30
    7·1 answer
  • Omega Instruments has budgeted $300,000 per year to pay for certain ceramic parts over the next 5 years. If the company expects
    7·1 answer
  • Lupo Corporation uses a job-order costing system with a single plantwide predetermined overhead rate based on machine-hours. The
    5·2 answers
  • SDX Alliance is a large company that sells computers, computer components, and software. Ralph is hired as an entry-level softwa
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!