The formula for the trajectory of a ball is given by f(x)=xtanθ−12v20gx2cos2θ+y0 where x is a coordinate along the ground, g=9.81 is the acceleration due to gravity, v0 is the magnitude of the initial velocity which makes an angle θ with the x-axis, and (0,y0) is the initial position of the ball. Write a program to calculate the trajectory y=f(x) for 0≤x≤16, with y0=10, v0=10, θ=50∘. (Do Python trigonometric functions accept radians or degrees?) Let x vary between 0 and 16 with 101 points. You will need to:

Answers

Answer 1

Answer:

The program in python is as follows:

import math

def traj ect ory(th e ta,x,y,v):

   t = ma th . tan(m ath . radians(theta))

   c = math . cos(math . radians(theta))

   g = 9 . 8

   fx = x * t - (1/(2*v**2)) * ((g*x**2)/(c**2))+y

   return round(fx,3)

   

print("x\t f(x)")

for x in range(0,17):

   theta = 50

   y= 10

   v = 10

   print(str(x)+"\t"+str(tr aje ctory (the ta,x,y,v)))

Explanation:

The question is incomplete. However, I have written the program to calculate the trajectory values f(x).

See attachment for complete program where comments were used as explanation


Related Questions

A python program that asks the user for four numbers and prints out the first and last number. It must have an array used in it.

Answers

Answer:

numbers = []

for i in range(4):

 z = int(input("enter a number: "))

 numbers.append(z)

print("First is {} and last is {}".format(numbers[0], numbers[-1]))

Explanation:

Now I understand your other question as well! ;-)

In a well-developed paragraph - using domain-specific vocabulary and academic writing - address the following writing prompt:
Explain the concepts of GIGO—garbage in, garbage out. Why do you think it’s a helpful concept in coding? How do you think it can be a helpful concept outside of coding?

Answers

Answer:

GIGO is a computer science acronym that implies bad input will result in bad output. Good programming practice dictates that functions should check for valid input before processing it. ... A well-written program will avoid producing garbage by not accepting it in the first place.

Explanation:

programming in https

Answers

what?? explain your question

3.5 Code Practice: Question 1 edhesive

Answers

Answer:

x = int(input("What grade are you in? "))

if(x == 9):

  print("Freshman")

 

elif(x == 10):

  print("Sophomore")

 

elif(x == 11):

  print("Junior")

 

elif(x == 12):

  print("Senior")

 

else:

  print("Not in High School")

Explanation:

9.) A principle of visual message use to present results gathered from survey data.
A. Comparison
C. Presenting survey data
B. Explaining how things work
D. Simplifying a complicated concept
bias​

Answers

Answer:

. Presenting survey data

Explanation:

Given that Presenting survey data involves the display of data in a graphical representation such as charts, video infographics, tables, and many more.

Therefore, a principle of the visual message is used to present results gathered from survey data is known as "Presenting Survey Data."

The data presented can then later be analyzed and eventually explained to the readers or the audience.

--concept mapping--
importance of trees for people:
1.
2.
3.
4.
5.
importance of trees for animals
1.
2.
3.
4.
5.​

Answers

Answer:

-Both need oxygen from the trees to breathe

-Without trees the population of animals and people would be dying

Explanation:

Thats all I can think of

Does a Laser Printer use its beam to attach dry powdered ink to a sheet of paper?​

Answers

Answer: A laser printer is different only in terms of ink heads. Hile Traditional Printers use physical contact to embed ink onto the paper laser jets use laser beams with inks to forms impressions into papers. They require no special paper to print. So probably not.

What should a user do to find and replace text throughout a field? Use the drop-down menus to complete the steps
1. Put the cursor in the field to search
2. In the Home tab, open the dialog box
3. On the
tab, enter the text to search for and the replacement text
4. After a few instances to make sure the text is being replaced correctly, you can then click
to
change all instances

Answers

The thing that a user should do to find and replace text throughout a field  are:

1. Put the cursor in the field to search.

2. Open the  find  dialog box.

3. On the Replace tab, enter the text to search for and the replacement text.

4. Click  Replace All  to change all instances.

How do you search for and replace text across an entire field?

The keys on the keyboard CTRL+F is often used  to find. The dialog window for Find and Replace appears. Click the Find tab in the Find and Replace dialog box to search for data. Click the Replace tab to perform a find-and-replace operation.

The operations are:

1. Click Find and Select in the Editing group on the Home tab, then select Replace from the drop-down list.

2. In the dialog box, select the objects you want to Find and Replace by clicking the Options button.

3. Press the Replace or Replace All button.

Therefore, If you want to replace all occurrences of a word or format in a document, use the Ctrl+H Find and Replace function. This is very useful for lengthy papers.

Learn more about Editing  from

https://brainly.com/question/15768529
#SPJ1

See full question below

What are the steps to replace one piece of text with another throughout a field? Use the drop-down menus to

complete the statements.

1. Put the cursor in the field to search.

2. Open the _____

dialog box.

3. On the Replace tab, enter the text to search for and the replacement text.

4. Click -------to change all instances.

Using a microphone to record a sound on your computer is an example of:​

Answers

It is an example of an "Input device". A further explanation is provided below.

Audio input communication devices enable the user customer to transmit audio information to a technology to examine or evaluate, track record as well as execute controls.The microphones connect towards the computer's microphones connection mostly on rear of PC's. There may have been a microphones port at the very front of various PC's casings.

Learn more about input devices here:

https://brainly.com/question/11046738

The word add is used to add another item to a list.
True
False
A list is a data structure used to organize data.
True
False
Which tag would you use to end a section of bolded text?




The body tag is used to indicate the actual content of a webpage.
True
False
Planning can help reduce logic errors in programs.
True
False
When creating a list in Python, you should enclose each item in the list in parentheses.
True
False
Which tag should be placed after a link to another webpage?




Which tag provides information about the document as well as links to other scripts?




The World Wide Web and the internet are two different terms that refer to the same thing.
True
False
Every HTML document needs to begin with which of the following tags?




Fatima is creating a program. She wants to ask the user a question and then have a 30-second pause before the user is allowed to input an answer. Which line of code should Fatima use?
time.wait(30)
sleep.time(30)
time.pause(30)
time.sleep(30)
The internet existed before the World Wide Web.
True
False
If you are using an incrementing variable to iterate over a list, the variable should be set to zero before the loop begins.
True
False
Which of the following shows the correct way to make an image display at 50% of its original size?
img (height:50%;width:50%;)
img [height:50%;width:50%;]
img {height:50%width:50%}
img {height:50%;width:50%;}
Mark

What is the type of data in the list [103, 405, 527, 396, 503]?
Booleans
strings
integers
alphanumeric

Which of the following is an example of a membership operator?
%
IN
IF
=

Which of the following statements allows you to check on whether a certain item is in a list?
within
query
IN
included
What would be the result of running these three lines of code?

lunch = [“pizza”, “salad”, “sandwich”, “soup”, “tacos”]

# print(lunch[0])

print(lunch[1])

soup or salad
salad
pizza
pizza salad
A program should end if the number of the player’s lives is equal to zero. Which of the following lines of code would do that?

if lives = 0:
exit()
if lives == 0:
exit()
if lives < 0:
exit()
if lives == 0:
end()
Lei is creating a webpage that includes this line of code: The Universe of Skateboarding . Lei runs it and realizes that the entire page (not just the header) is in very large letters. How can Lei change this?
Remove the second .
Change the first to .
Change the second to .
Add a / to the final tag.

Answers

Answer:

WORD PROBLEMS

1. False

2. True

3. </b> or </strong>

4. True

5. True

6. False (unless the items are strings)

7. </a>

8. <head></head>

9. False (World Wide Web are the websites which communicate via the Internet. The Internet is a network that allows websites to communicate with each other)

10. <html>

11. time.sleep(30)

12. True

13. True

14. img {height:50%;width:50%;}

15. Integers

16. IN

17. IN

18. salad

19. if lives == 0:

     exit()

20. maybe you can post a picture of it? I'm not quite understanding.

PICTURE PROBLEMS

1. + 1

2. gold -= 100

3. skill = skill - 2

4. time.sleep(60)

5. treasures.remove("silver")

Explanation:

Hope this helps

PLZ HELP ASAP

Jaelyn is working late at night on a project that is due the next day. She is not sure how to add a picture to her document, and it is too late to call or text her teacher or friends. What is the best option for Jaelyn?
1-Decide not to use a border.
2-Provide negative feedback to Office Online.
3-Type a question in the “Tell me what you want to do” box.
4-View accessibility options.

Answers

Answer:

its accessibility options

Explanation:

because on office that's were you go to view what you can do

Answer:

its accessibility

Explanation:

I took the test

what is the fullform of COMPUTER?​

Answers

Answer:

COMPUTER stands for Common Operating Machine Purposely Used for Technological and Educational Research

Explanation:

Which WYSIWYG editor keeps the code clean and validates HTML code
?

A. MS Word

B. Kompozer

C. Gedit

D. Notepad

E. BlueGriffon

Answers

Answer:

E. BlueGriffon

Explanation:

Answer:

b. KompoZer

Explanation:

KompoZer is free software. You can use it on Windows, Mac OS, and Linux. It has a customizable interface with modified toolbars. It validates HTML against the current web standard and keeps the code clean.

PLEASEEE HELPPP im gonna cry
What’s the name for the array of buttons that provides quick access to commonly used commands?

A.
menu bar
B.
toolbar
C.
ruler
D.
scroll bar

Answers

Your answer is:

B. toolbar

Answer:

B) Toolbar

_______________

This is your code.
>>> A = [21. 'dog', 'red']
>>> B = [35, 'cat', 'blue']
>>> C = [12, 'fish', 'green']
>>> E = [A, B, C
What is the value of E[2][1]
Ofish
green
cat
O blue

Answers

the value of E[2][1] is fish

Answer: Fish

Explanation: Edge 2022

1.Two robots start out at 426c cm. apart and drive towards each other. The first robot drives at 5 cm per second and the second robot drives at 7 cm. per second. How long will it take until the robots meet?

In your response below, please answer each of the following questions:
a. What is the question being asked?
b. What are the important numbers?
c. Are their any variables?
d. Write an equation.
e. Solve the equation.
f. Do you think your answer is reasonable? Explain.

Answers

Answer:

a. The time it will take for the two robots meet

b. The important numbers are;

426 (cm), 5 (cm/second) and 7 (cm/second)

c. Yes, there are variables

d. The equation is 5 cm/s × t + 7 cm/s × t = 426 cm

e. The solution of the equation is, t = 35.5 seconds

f. Yes, the answer is reasonable

Explanation:

a. The question being asked is the time duration that will elapse before the two robots meet

b. The important numbers are;

The distance apart from which the two robots start out, d = 426 cm

The  speed of the first robot, v₁ = 5 cm/second

The  speed of the second robot, v₂ = 7 cm/second

c. The variables are;

The distance apart of the two robots = d

The  speed of the first robot = v₁

The  speed of the second robot = v₂

The time it takes for the two robots to meet = t

d. The equation is;

v₁ × t + v₂ × t = d

Plugging in the known values of v₁, v₂, we have;

5 cm/s × t + 7 cm/s × t = 426 cm...(1)

e. Solving the equation (1) above gives;

5 cm/s × t + 7 cm/s × t = t × (5 cm/s + 7 cm/s) = t × 12 cm/s = 426 cm

∴ t = 426 cm/(12 cm/s) = 35.5 s

t = 35.5 seconds

f. The time it would take the two robots to meet, t = 35.5 seconds

The answer is reasonable, given that the distance moved by each robot in the given time are;

The distance moved by the first robot, d₁ = 35.5 s × 5 cm/s = 177.5 cm

The distance moved by the second robot, d₂ = 35.5 s × 7 cm/s = 248.5 cm

d₁ + d₂ = 177.5 cm + 248.5 cm = 426 cm.

Using more than one array to store related data is called _____________ arrays.

Answers

Answer:

Using more than one array to store related data is called parallel arrays.

Explanation:

I just did it and got 100% on the quiz

Using more than one array to store related data is called parallel arrays.

What is array?

An array is a type of data structure used in computer science that holds a set of elements that are all uniquely recognised by at least one array index or key.

An array is stored in a way that allows a mathematical formula to determine each element's position given its index tuple.

In parallel arrays, a collection of data is represented by two or more arrays, where each corresponding array index represents a field that matches a particular record.

For instance, the array items at names and ages would explain the name and age of the third person if there were two arrays, one for names and one for ages.

Thus, the answer is parallel array.

For more details regarding parallel array, visit:

https://brainly.com/question/27041014

#SPJ6

what would be the most appropriate data type of variable that stores the weight of a baby​

Answers

Answer:

THIS IS THE ANSWER

Explanation:

BIOSTATISTICS

GUYSSSS ITS AN EMERGENCY!!
how do I remove the search bar that's on top of my screen?

Answers

Answer:

IF you installed it go into your files and look for downloads the most recent download is what's up there. if its a windows then you need to go into settings-apps then select filter in which shows your most recent. delete the one in your downloads. After that run virus defender. After that then you need to restart computer.

IF it was already there then there is no removing it.

Oh and next time don't install anything without taking 30 seconds to understand what it is.

Which of the following database object hold data?

Reports


Tables


Forms


All of the above

Answers

Answer:

tables

Explanation:

In Access, all data is stored in tables, which puts tables at the heart of any database. You might already know that tables are organized into vertical columns and horizontal rows. In Access, rows and columns are referred to as records and fields

Answer:

B. Tables

Explanation:

In Access, tables, reports, queries and forms are in entering and storing data. Primarily, tables hold data. They are organized as rows and columns. Rows are also known as records while columns are known as fields. Every column contains data that runs vertically along the table. Rows hold strings of information following the same pattern and usually with the same ID number.

Information about specific subjects can all be collectively held in tables.  Obtaining and compiling information is done with queries. Reports are a representation of the data in a printed format. Forms are used to input, view and edit data.

Gerald Roberts has already finished his pattern for a pajama; he wants to add an allowance for cutting what tall will he need to use to measure the allowance? A.Seam Gauge B.Pins C.Ruler D.Tape Measure​

Answers

Answer:

D. Tape Measure​

Explanation:

Given that Pajamas is nightwear made of clothing materials, hence in this case, the correct answer is a "Tape Measure​."

This is because a Tape Measure is a measuring instrument used in measuring sizes and distances. It is often used in tailoring particularly the one made of ribbon of cloth.

Hence, in this case, the correct answer is TAPE MEASURE.

Which of the following steps is NOT part of the Design Process?
A)Explore
B)Improve
C)Identify the problem
D)None of the above

Answers

All of the above are part of the Design Process.

Design Process:

Design thinkers use creative and inquisitive activities like Brainstorming session and Worst Possible Idea to inspire ideas — in the form of answers to questions — in the Ideation stage.

Four lecturers together broke down the engineering design process into four primary phases: problem description, design exploration, design optimization, and design communication, via a deep and often rowdy conversation.

Find out more information about 'Design Process'.

https://brainly.com/question/4969056?referrer=searchResults

All types of sciences use the same steps of the scientific method.

True
False

Answers

the correct answer is true

I need help I have questions I need answers in coding html,css,js and python.Fast
The purpose of the sleep method is to reduce the amount of energy the program uses.
True
False
The _____ is a collection of webpages that use the internet.
pseudocode
World Wide Web
Python
server
Which of the following lines of code would correctly create a list called weapons?
weapons == [“sword”, “sling”, “knife”]
weapons = [“sword” or “sling” or “knife”]
weapons = (“sword”, “sling”, “knife”)
weapons = [“sword”, “sling”, “knife”]
Which of these lines of code would import both the random and the time modules?
import random, time
import random and time
time.import, random.import
import(random, time)
When using HTML, your text should be placed between the opening and the closing tags.
True
False

Answers

Answer:

1. True

2. World Wide Web

3. weapons = [“sword”, “sling”, “knife”]

4. import random, time

5. True.

Explanation:

For number 1  I'm not quite sure since I never personally used it, but it does reduce CPU usage when activated so it's very possible it's true.

when should a computer definitely have an ip address

Answers

What do you mean they all come with ip once you buy it
There are two types of IP addresses. PUBLIC IP is assigned by the ISP and PRIVATE IP address provided by your Router. When you are connected to network you definitely should have an IP address.

state 5 functions of an operating system ​

Answers

Answer:

Memory Management.

Processor Management.

Device Management.

File Management.

Security.

Explanation:

hope this helps mate.

Answer:

manages computer hardware. manages software resorces. provides common services for computer programs. scheduling tasks. running/opening processes/programs.

Explanation:

Use the drop-down tool to select the word or phrase that completes each sentence. Text within a document that is linked to other information available to the reader is called _______. A unique location for a computer on the network is its _______. The ________ is the ability of a network tor cover after any type of failure. The computer that responds to requests from the client computer is known as the ________. A ________ is an ordered list of tasks waiting to be performed.

Answers

Answer:

1. Hyperlink

2. IP address

3. Fault tolerance

4. Server

5. To do list

Explanation:

Text within a document that is linked to other information available to the reader is called HYPERLINK.

A unique location for a computer on the network is its IP ADDRESS.

The FAULT TOLERANCE is the ability of a network to cover after any type of failure.

The computer that responds to requests from the client computer is known as the SERVER.

A TO-DO LIST is an ordered list of tasks waiting to be performed.

Answer:

hypertext

IP address

fault tolerance

server

queue

Explanation:

just did it on edg

What is wrong with this?





Yosemite National Park
Yosemite National Park is located in central California. It is a World Heritage Site and has over 4 million visitors every year. Yosemite has beautiful granite cliffs, waterfalls, sequoia groves, hiking trails, and biological diversity. One of its most popular attractions is Half Dome, which people can hike and climb up.

Photo by David Iliff on Wikimedia Commons. License: CC BY-SA 3.0

Answers

can you explain what you mean by what is wrong with it?

Please help I suck in computer science ​

Answers

Answer:

print(5**3)

Explanation:

** is the exponentiation operator

Why do we use if statements?



To tell Tracy to stop our code if there’s an error


To have Tracy make decisions based on conditional statements


To tell Tracy to do something if we run our code


To have Tracy complete one function at a time

Answers

answer is 2 i’m pretty sure
Other Questions
Can someone tell me what 800/600+700-2300*32234 equals? What idea is emphasized by the connotations of the underlined words? Female artists live in an unhealthy, undesirable cultural environment. Male and female artists have access to different resources. All aspects of womens lives are affected by the poor treatment they receive. Women can change their circumstances by making different decisions. What did Miguel Hidalgo do in Mexican history? 12 He served as the nation's first president. 15 He discovered oil reserves in the country. He introduced Catholicism to the country. 18 He led a rebellion against Spanish rule. What is the coordinates after (x+2, y + 3) What is the equation of a circle with center (-3,-5) and radius 4? A. (x-3)2 + (7-5)2 = 16 B. (x+3)2 + (y + 5)2 = 16 C. (x-3)2 + (y- 5)2 - 4 D. (x + 3)2 + (y + 5)2 - 4 It's B 25 points!5(3x - 4) + 12 = 52Write the steps you will use to solve the equation and explain each step. Which is the smallest unit of life? A. AtomsB. OrganellesC. OrganismD. Cells Classify the quadrilateral by selecting its most specific name.(Choose one)trapezoidparallelogramkiterectanglesquarerhombus Segment XY is transformed using rigid transformation to get segment XY as shown in the graph.Which series of transformations correctly maps XY to XY?A. a reflection over the line y=x followed by a translation up 3 unitsB. a reflection over the line y=3 followed by a translation right 7 unitsC. a reflection over the x-axis followed by a translation right 11 units and up 2 unitsD. a reflection over the y-axis followed by a translation right 3 units and down 4 units Solve the inequality -8 - 1/3n < -25 The Heliocentric model is when the sun, planets, and stars are orbiting a stationary Earth.True or false So I need to write a poem so does anyone have any ideas of some poems I can do. Like topics? Thanks! what is number 9 if you leave a step by step ill mark you as best question A: 82 dollors per month B. 50 per month 8. What is the proper name of this starting system used on selected vertical crankshaft engines? Click here to enlarge image Super-Start Easy-Spin Auto-Start Ready-Start Write the objective from each sentencesA. I own three skateboard B. The new car is in the garage C. There was a small in the bathroom D. I am faster than BrettE. I like adventure stories Which treaty ended the United States' war with Mexico in 1848?A)Treaty of ParisB)Treaty of Vera CruzC)Treaty of VersaillesD)Treaty of Guadalupe Hidalgo based on the graph which period of history could best described as "the beginnings of the slave trade in North America A . 1701 - 1721 B . 1761 - 1770 C . 1721 - 1750 D . 1750 - 1761HELP ME PLEASE ASAP! Find the vertex of the function. ill mark brainlist Computer Wholesalers restores and resells notebook computers on eBay. It originally acquires the notebook computers from corporations upgrading their computer systems, and it backs each notebook it sells with a 90-day warranty against defects. Based on previous experience, Computer Wholesalers expects warranty costs to be approximately 4% of sales. By the end of the first year, sales and actual warranty expenditures are $490,000 and $17,500, respectively1. Does this situation represent a contingent liability? Yes No2. Record the necessary entries in Journal Entries3. What is the balance in the Warranty Liability account after the entries in Part 2? 5. Which of the following is an example of a powerful action taken by the United Nations (UN)?O A. Setting aside lands in Palestine for Jewish people and declaring it a nationO B. Preventing the United States and its allies from invading Vietnam C. Ending the Cold War with a truceO D. Declaring war on the USSR